Commit 75a3e8b
authored
Windows 7 support (#2940)
### Issues:
Addresses #1997
### Description of changes:
`ProcessPrng` (from `bcryptprimitives.dll`) is only available on Windows
8+. So the current code fails at runtime on Windows 7 because
`GetProcAddress` returns `NULL` and causes an `abort()`.
This change defines `AWSLC_WINDOWS_7_COMPAT` when `_WIN32_WINNT <=
_WIN32_WINNT_WIN7`. Then uses the existing `BCryptGenRandom` logic when
it's is defined.
* Related: aws/aws-lc-rs#1000
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.1 parent 0b6fb3e commit 75a3e8b
1 file changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | | - | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
37 | | - | |
38 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
| |||
83 | 90 | | |
84 | 91 | | |
85 | 92 | | |
86 | | - | |
| 93 | + | |
87 | 94 | | |
0 commit comments