forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfe0a1dc
committed
Revert "Change SHA2 implementation based on OpenSSL to use EVP digest routines"
This reverts commite21cbb4, as the switch to EVP routines requires amore careful design where we would need to have at least our wrapperroutines return a status instead of issuing an error by themselves tolet the caller do the error handling. The memory handling was alsoincorrect and could cause leaks in the backend if a failure happened,requiring most likely a callback to do the necessary cleanup as the onlyclean way to be able to allocate an EVP context requires the use of anallocation within OpenSSL. The potential rework of the wrappers alsoimpacts the fallback implementation when not building with OpenSSL.Originally, prairiedog has reported a compilation failure, but afterdiscussion with Tom Lane this needs a better design.Discussion:https://postgr.es/m/20200928073330.GC2316@paquier.xyz1 parent042d801 commitfe0a1dc
2 files changed
+19
-54
lines changedLines changed: 14 additions & 49 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
| 23 | + | |
30 | 24 |
| |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
| 25 | + | |
54 | 26 |
| |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 | 27 |
| |
63 | 28 |
| |
64 | 29 |
| |
65 | 30 |
| |
66 | 31 |
| |
67 |
| - | |
| 32 | + | |
68 | 33 |
| |
69 | 34 |
| |
70 | 35 |
| |
71 | 36 |
| |
72 | 37 |
| |
73 |
| - | |
| 38 | + | |
74 | 39 |
| |
75 | 40 |
| |
76 | 41 |
| |
77 | 42 |
| |
78 | 43 |
| |
79 |
| - | |
| 44 | + | |
80 | 45 |
| |
81 | 46 |
| |
82 | 47 |
| |
83 | 48 |
| |
84 | 49 |
| |
85 | 50 |
| |
86 |
| - | |
| 51 | + | |
87 | 52 |
| |
88 | 53 |
| |
89 | 54 |
| |
90 | 55 |
| |
91 | 56 |
| |
92 |
| - | |
| 57 | + | |
93 | 58 |
| |
94 | 59 |
| |
95 | 60 |
| |
96 | 61 |
| |
97 | 62 |
| |
98 |
| - | |
| 63 | + | |
99 | 64 |
| |
100 | 65 |
| |
101 | 66 |
| |
102 | 67 |
| |
103 | 68 |
| |
104 | 69 |
| |
105 |
| - | |
| 70 | + | |
106 | 71 |
| |
107 | 72 |
| |
108 | 73 |
| |
109 | 74 |
| |
110 | 75 |
| |
111 |
| - | |
| 76 | + | |
112 | 77 |
| |
113 | 78 |
| |
114 | 79 |
| |
115 | 80 |
| |
116 | 81 |
| |
117 |
| - | |
| 82 | + | |
118 | 83 |
| |
119 | 84 |
| |
120 | 85 |
| |
121 | 86 |
| |
122 | 87 |
| |
123 | 88 |
| |
124 |
| - | |
| 89 | + | |
125 | 90 |
| |
126 | 91 |
| |
127 | 92 |
| |
128 | 93 |
| |
129 | 94 |
| |
130 |
| - | |
| 95 | + | |
131 | 96 |
| |
132 | 97 |
| |
133 | 98 |
| |
134 | 99 |
| |
135 | 100 |
| |
136 |
| - | |
| 101 | + | |
137 | 102 |
|
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
54 |
| - | |
| 54 | + | |
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
| |||
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
|
0 commit comments
Comments
(0)