Commit fe0a1dc
committed
Revert "Change SHA2 implementation based on OpenSSL to use EVP digest routines"
This reverts commit e21cbb4, as the switch to EVP routines requires a
more careful design where we would need to have at least our wrapper
routines return a status instead of issuing an error by themselves to
let the caller do the error handling. The memory handling was also
incorrect and could cause leaks in the backend if a failure happened,
requiring most likely a callback to do the necessary cleanup as the only
clean way to be able to allocate an EVP context requires the use of an
allocation within OpenSSL. The potential rework of the wrappers also
impacts the fallback implementation when not building with OpenSSL.
Originally, prairiedog has reported a compilation failure, but after
discussion with Tom Lane this needs a better design.
Discussion: https://postgr.es/m/[email protected]1 parent 042d801 commit fe0a1dc
2 files changed
+19
-54
lines changed| 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 | | |
| 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