Commit 16f96c7
committed
Remove ability to independently select random number generator
Remove the ability to select random number generator independently from
SSL library. Instead, use the random number generator from the SSL
library (today only OpenSSL supported) if one is configured. If no SSL
library is configured, use the platform default (which means use
CryptoAPI on Win32 and /dev/urandom on Linux).
This also restructures pg_strong_random.c to have three clearly separate
sections, one for each implementation, with two functions in each,
instead of a scattered set of ifdefs throughout the whole file.
Author: Daniel Gustafsson, Magnus Hagander, Michael Paquier
Discussion: https://postgr.es/m/632623.1605460616@sss.pgh.pa.us1 parent b5acf10 commit 16f96c7
File tree
5 files changed
+114
-201
lines changed- src
- include
- port
- tools/msvc
5 files changed
+114
-201
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18055 | 18055 | | |
18056 | 18056 | | |
18057 | 18057 | | |
18058 | | - | |
18059 | | - | |
18060 | | - | |
18061 | | - | |
18062 | | - | |
18063 | | - | |
18064 | | - | |
18065 | | - | |
18066 | | - | |
18067 | | - | |
18068 | | - | |
18069 | | - | |
18070 | | - | |
| 18058 | + | |
| 18059 | + | |
| 18060 | + | |
| 18061 | + | |
| 18062 | + | |
| 18063 | + | |
| 18064 | + | |
| 18065 | + | |
| 18066 | + | |
| 18067 | + | |
| 18068 | + | |
| 18069 | + | |
| 18070 | + | |
| 18071 | + | |
| 18072 | + | |
18071 | 18073 | | |
18072 | 18074 | | |
18073 | 18075 | | |
| |||
18087 | 18089 | | |
18088 | 18090 | | |
18089 | 18091 | | |
18090 | | - | |
18091 | | - | |
18092 | | - | |
18093 | | - | |
18094 | | - | |
18095 | | - | |
18096 | | - | |
18097 | | - | |
18098 | | - | |
18099 | | - | |
18100 | | - | |
18101 | | - | |
18102 | | - | |
18103 | | - | |
18104 | | - | |
18105 | | - | |
18106 | | - | |
18107 | | - | |
18108 | | - | |
18109 | | - | |
18110 | | - | |
18111 | | - | |
18112 | | - | |
18113 | | - | |
18114 | | - | |
18115 | | - | |
18116 | | - | |
18117 | | - | |
| 18092 | + | |
| 18093 | + | |
18118 | 18094 | | |
18119 | | - | |
| 18095 | + | |
| 18096 | + | |
18120 | 18097 | | |
18121 | 18098 | | |
18122 | 18099 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2152 | 2152 | | |
2153 | 2153 | | |
2154 | 2154 | | |
2155 | | - | |
2156 | | - | |
2157 | | - | |
2158 | | - | |
2159 | | - | |
2160 | | - | |
2161 | | - | |
2162 | | - | |
2163 | | - | |
2164 | | - | |
2165 | | - | |
2166 | | - | |
2167 | | - | |
2168 | | - | |
2169 | | - | |
2170 | | - | |
2171 | | - | |
2172 | | - | |
2173 | | - | |
2174 | | - | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
2175 | 2158 | | |
2176 | | - | |
2177 | | - | |
| 2159 | + | |
2178 | 2160 | | |
2179 | | - | |
2180 | | - | |
| 2161 | + | |
2181 | 2162 | | |
2182 | | - | |
2183 | | - | |
2184 | | - | |
2185 | 2163 | | |
2186 | | - | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
2187 | 2169 | | |
2188 | | - | |
| 2170 | + | |
| 2171 | + | |
2189 | 2172 | | |
2190 | 2173 | | |
2191 | 2174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | 865 | | |
869 | 866 | | |
870 | 867 | | |
| |||
887 | 884 | | |
888 | 885 | | |
889 | 886 | | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | 887 | | |
894 | 888 | | |
895 | 889 | | |
| |||
914 | 908 | | |
915 | 909 | | |
916 | 910 | | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | 911 | | |
921 | 912 | | |
922 | 913 | | |
| |||
0 commit comments