forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5ee180a
committed
Add pg_strong_random_init function to initialize random number generator
Currently only OpenSSL requires this initialization, but in the futureother SSL implementations are likely to need it as well. Abstractingthis functionality out into a separate function makes this cleaner andmore clear, and also removes the dependency on OpenSSL headers fromfork_process.c.OpenSSL is special in that we need to initialize this random numbergenerator even if we're not going to use it directly, until we dropsupport for everything prior to OpenSSL 1.1.1. (And of course also if weactually use it). All other implementations are left empty at this time,but more are expected to be added in the future.Author: Daniel Gustafsson <daniel@yesql.se>, Michael Paquier <michael@paquier.xyz>Reviewed-By: Magnus Hagander <magnus@hagander.net>Discussion:https://postgr.es/m/F6291C3C-747C-4C93-BCE0-28BB420B1FF5@yesql.se1 parent4f841ce commit5ee180a
File tree
3 files changed
+48
-12
lines changed- src
- backend/postmaster
- include
- port
3 files changed
+48
-12
lines changedLines changed: 2 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 | 19 |
| |
23 | 20 |
| |
24 | 21 |
| |
| |||
108 | 105 |
| |
109 | 106 |
| |
110 | 107 |
| |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 |
| - | |
117 |
| - | |
118 |
| - | |
| 108 | + | |
| 109 | + | |
119 | 110 |
| |
120 | 111 |
| |
121 | 112 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
513 | 513 |
| |
514 | 514 |
| |
515 | 515 |
| |
| 516 | + | |
516 | 517 |
| |
517 | 518 |
| |
518 | 519 |
| |
|
Lines changed: 45 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
| 27 | + | |
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
78 | 122 |
| |
79 | 123 |
| |
80 | 124 |
| |
|
0 commit comments
Comments
(0)