| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 330e267 commit 6365bf8
220 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,12 +28,120 @@ breaking changes, and mappings for the large list of deprecated functions. | |||
| 28 | 28 | ||
| 29 | 29 | [Migration guide]: https://github.com/openssl/openssl/tree/master/doc/man7/migration_guide.pod | |
| 30 | 30 | ||
| 31 | - ### Changes between 3.0.2 and 3.0.2+quic [15 Mar 2022] | ||
| 31 | + ### Changes between 3.0.3 and 3.0.3+quic [3 May 2022] | ||
| 32 | 32 | ||
| 33 | 33 | * Add QUIC API support from BoringSSL. | |
| 34 | 34 | ||
| 35 | 35 | *Todd Short* | |
| 36 | 36 | ||
| 37 | + ### Changes between 3.0.2 and 3.0.3 [3 May 2022] | ||
| 38 | + | ||
| 39 | + * Fixed a bug in the c_rehash script which was not properly sanitising shell | ||
| 40 | + metacharacters to prevent command injection. This script is distributed by | ||
| 41 | + some operating systems in a manner where it is automatically executed. On | ||
| 42 | + such operating systems, an attacker could execute arbitrary commands with the | ||
| 43 | + privileges of the script. | ||
| 44 | + | ||
| 45 | + Use of the c_rehash script is considered obsolete and should be replaced | ||
| 46 | + by the OpenSSL rehash command line tool. | ||
| 47 | + (CVE-2022-1292) | ||
| 48 | + | ||
| 49 | + *Tomáš Mráz* | ||
| 50 | + | ||
| 51 | + * Fixed a bug in the function `OCSP_basic_verify` that verifies the signer | ||
| 52 | + certificate on an OCSP response. The bug caused the function in the case | ||
| 53 | + where the (non-default) flag OCSP_NOCHECKS is used to return a postivie | ||
| 54 | + response (meaning a successful verification) even in the case where the | ||
| 55 | + response signing certificate fails to verify. | ||
| 56 | + | ||
| 57 | + It is anticipated that most users of `OCSP_basic_verify` will not use the | ||
| 58 | + OCSP_NOCHECKS flag. In this case the `OCSP_basic_verify` function will return | ||
| 59 | + a negative value (indicating a fatal error) in the case of a certificate | ||
| 60 | + verification failure. The normal expected return value in this case would be | ||
| 61 | + 0. | ||
| 62 | + | ||
| 63 | + This issue also impacts the command line OpenSSL "ocsp" application. When | ||
| 64 | + verifying an ocsp response with the "-no_cert_checks" option the command line | ||
| 65 | + application will report that the verification is successful even though it | ||
| 66 | + has in fact failed. In this case the incorrect successful response will also | ||
| 67 | + be accompanied by error messages showing the failure and contradicting the | ||
| 68 | + apparently successful result. | ||
| 69 | + ([CVE-2022-1343]) | ||
| 70 | + | ||
| 71 | + *Matt Caswell* | ||
| 72 | + | ||
| 73 | + * Fixed a bug where the RC4-MD5 ciphersuite incorrectly used the | ||
| 74 | + AAD data as the MAC key. This made the MAC key trivially predictable. | ||
| 75 | + | ||
| 76 | + An attacker could exploit this issue by performing a man-in-the-middle attack | ||
| 77 | + to modify data being sent from one endpoint to an OpenSSL 3.0 recipient such | ||
| 78 | + that the modified data would still pass the MAC integrity check. | ||
| 79 | + | ||
| 80 | + Note that data sent from an OpenSSL 3.0 endpoint to a non-OpenSSL 3.0 | ||
| 81 | + endpoint will always be rejected by the recipient and the connection will | ||
| 82 | + fail at that point. Many application protocols require data to be sent from | ||
| 83 | + the client to the server first. Therefore, in such a case, only an OpenSSL | ||
| 84 | + 3.0 server would be impacted when talking to a non-OpenSSL 3.0 client. | ||
| 85 | + | ||
| 86 | + If both endpoints are OpenSSL 3.0 then the attacker could modify data being | ||
| 87 | + sent in both directions. In this case both clients and servers could be | ||
| 88 | + affected, regardless of the application protocol. | ||
| 89 | + | ||
| 90 | + Note that in the absence of an attacker this bug means that an OpenSSL 3.0 | ||
| 91 | + endpoint communicating with a non-OpenSSL 3.0 endpoint will fail to complete | ||
| 92 | + the handshake when using this ciphersuite. | ||
| 93 | + | ||
| 94 | + The confidentiality of data is not impacted by this issue, i.e. an attacker | ||
| 95 | + cannot decrypt data that has been encrypted using this ciphersuite - they can | ||
| 96 | + only modify it. | ||
| 97 | + | ||
| 98 | + In order for this attack to work both endpoints must legitimately negotiate | ||
| 99 | + the RC4-MD5 ciphersuite. This ciphersuite is not compiled by default in | ||
| 100 | + OpenSSL 3.0, and is not available within the default provider or the default | ||
| 101 | + ciphersuite list. This ciphersuite will never be used if TLSv1.3 has been | ||
| 102 | + negotiated. In order for an OpenSSL 3.0 endpoint to use this ciphersuite the | ||
| 103 | + following must have occurred: | ||
| 104 | + | ||
| 105 | + 1) OpenSSL must have been compiled with the (non-default) compile time option | ||
| 106 | + enable-weak-ssl-ciphers | ||
| 107 | + | ||
| 108 | + 2) OpenSSL must have had the legacy provider explicitly loaded (either | ||
| 109 | + through application code or via configuration) | ||
| 110 | + | ||
| 111 | + 3) The ciphersuite must have been explicitly added to the ciphersuite list | ||
| 112 | + | ||
| 113 | + 4) The libssl security level must have been set to 0 (default is 1) | ||
| 114 | + | ||
| 115 | + 5) A version of SSL/TLS below TLSv1.3 must have been negotiated | ||
| 116 | + | ||
| 117 | + 6) Both endpoints must negotiate the RC4-MD5 ciphersuite in preference to any | ||
| 118 | + others that both endpoints have in common | ||
| 119 | + (CVE-2022-1434) | ||
| 120 | + | ||
| 121 | + *Matt Caswell* | ||
| 122 | + | ||
| 123 | + * Fix a bug in the OPENSSL_LH_flush() function that breaks reuse of the memory | ||
| 124 | + occuppied by the removed hash table entries. | ||
| 125 | + | ||
| 126 | + This function is used when decoding certificates or keys. If a long lived | ||
| 127 | + process periodically decodes certificates or keys its memory usage will | ||
| 128 | + expand without bounds and the process might be terminated by the operating | ||
| 129 | + system causing a denial of service. Also traversing the empty hash table | ||
| 130 | + entries will take increasingly more time. | ||
| 131 | + | ||
| 132 | + Typically such long lived processes might be TLS clients or TLS servers | ||
| 133 | + configured to accept client certificate authentication. | ||
| 134 | + (CVE-2022-1473) | ||
| 135 | + | ||
| 136 | + *Hugo Landau, Aliaksei Levin* | ||
| 137 | + | ||
| 138 | + * The functions `OPENSSL_LH_stats` and `OPENSSL_LH_stats_bio` now only report | ||
| 139 | + the `num_items`, `num_nodes` and `num_alloc_nodes` statistics. All other | ||
| 140 | + statistics are no longer supported. For compatibility, these statistics are | ||
| 141 | + still listed in the output but are now always reported as zero. | ||
| 142 | + | ||
| 143 | + *Hugo Landau* | ||
| 144 | + | ||
| 37 | 145 | ### Changes between 3.0.1 and 3.0.2 [15 Mar 2022] | |
| 38 | 146 | ||
| 39 | 147 | * Fixed a bug in the BN_mod_sqrt() function that can cause it to loop forever | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,7 +60,7 @@ guidelines: | |||
| 60 | 60 | GitHub Actions and AppVeyor are required, and they are started automatically | |
| 61 | 61 | whenever a PR is created or updated. | |
| 62 | 62 | ||
| 63 | - [coding style]: https://www.openssl.org/policies/codingstyle.html | ||
| 63 | + [coding style]: https://www.openssl.org/policies/technical/coding-style.html | ||
| 64 | 64 | ||
| 65 | 65 | 5. When at all possible, patches should include tests. These can | |
| 66 | 66 | either be added to an existing test, or completely new. Please see | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,5 +25,5 @@ sub staticname { | |||
| 25 | 25 | return $in_libname | |
| 26 | 26 | if $unified_info{attributes}->{libraries}->{$_[1]}->{noinst}; | |
| 27 | 27 | ||
| 28 | - return platform::BASE->staticname($_[1]) . '_a'; | ||
| 28 | + return platform::BASE->staticname($_[1]) . ($disabled{shared} ? '' : '_a'); | ||
| 29 | 29 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,6 +18,17 @@ OpenSSL Releases | |||
| 18 | 18 | OpenSSL 3.0 | |
| 19 | 19 | ----------- | |
| 20 | 20 | ||
| 21 | + ### Major changes between OpenSSL 3.0.2 and OpenSSL 3.0.3 [3 May 2022] | ||
| 22 | + | ||
| 23 | + * Fixed a bug in the c_rehash script which was not properly sanitising shell | ||
| 24 | + metacharacters to prevent command injection ([CVE-2022-1292]) | ||
| 25 | + * Fixed a bug in the function `OCSP_basic_verify` that verifies the signer | ||
| 26 | + certificate on an OCSP response ([CVE-2022-1343]) | ||
| 27 | + * Fixed a bug where the RC4-MD5 ciphersuite incorrectly used the | ||
| 28 | + AAD data as the MAC key ([CVE-2022-1434]) | ||
| 29 | + * Fix a bug in the OPENSSL_LH_flush() function that breaks reuse of the memory | ||
| 30 | + occuppied by the removed hash table entries ([CVE-2022-1473]) | ||
| 31 | + | ||
| 21 | 32 | ### Major changes between OpenSSL 3.0.1 and OpenSSL 3.0.2 [15 Mar 2022] | |
| 22 | 33 | ||
| 23 | 34 | * Fixed a bug in the BN_mod_sqrt() function that can cause it to loop forever | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,12 +28,12 @@ For this option you can use Cygwin. | |||
| 28 | 28 | Native builds using Visual C++ | |
| 29 | 29 | ============================== | |
| 30 | 30 | ||
| 31 | - The native builds using Visual C++ have a VC-* prefix. | ||
| 31 | + The native builds using Visual C++ have a `VC-*` prefix. | ||
| 32 | 32 | ||
| 33 | 33 | Requirement details | |
| 34 | 34 | ------------------- | |
| 35 | 35 | ||
| 36 | - In addition to the requirements and instructions listed in INSTALL.md, | ||
| 36 | + In addition to the requirements and instructions listed in `INSTALL.md`, | ||
| 37 | 37 | these are required as well: | |
| 38 | 38 | ||
| 39 | 39 | ### Perl | |
@@ -64,22 +64,26 @@ Quick start | |||
| 64 | 64 | ||
| 65 | 65 | 4. Use Visual Studio Developer Command Prompt with administrative privileges, | |
| 66 | 66 | choosing one of its variants depending on the intended architecture. | |
| 67 | - Or run "cmd" and execute "vcvarsall.bat" with one of the options x86, | ||
| 68 | - x86_amd64, x86_arm, x86_arm64, amd64, amd64_x86, amd64_arm, or amd64_arm64. | ||
| 69 | - This sets up the environment variables needed for nmake.exe, cl.exe, etc. | ||
| 67 | + Or run `cmd` and execute `vcvarsall.bat` with one of the options `x86`, | ||
| 68 | + `x86_amd64`, `x86_arm`, `x86_arm64`, `amd64`, `amd64_x86`, `amd64_arm`, | ||
| 69 | + or `amd64_arm64`. | ||
| 70 | + This sets up the environment variables needed for `nmake.exe`, `cl.exe`, | ||
| 71 | + etc. | ||
| 70 | 72 | See also | |
| 71 | 73 | <https://docs.microsoft.com/cpp/build/building-on-the-command-line> | |
| 72 | 74 | ||
| 73 | 75 | 5. From the root of the OpenSSL source directory enter | |
| 74 | - perl Configure VC-WIN32 if you want 32-bit OpenSSL or | ||
| 75 | - perl Configure VC-WIN64A if you want 64-bit OpenSSL or | ||
| 76 | - perl Configure to let Configure figure out the platform | ||
| 76 | + - `perl Configure VC-WIN32` if you want 32-bit OpenSSL or | ||
| 77 | + - `perl Configure VC-WIN64A` if you want 64-bit OpenSSL or | ||
| 78 | + - `perl Configure VC-WIN64-ARM` if you want Windows on Arm (win-arm64) | ||
| 79 | + OpenSSL or | ||
| 80 | + - `perl Configure` to let Configure figure out the platform | ||
| 77 | 81 | ||
| 78 | - 6. nmake | ||
| 82 | + 6. `nmake` | ||
| 79 | 83 | ||
| 80 | - 7. nmake test | ||
| 84 | + 7. `nmake test` | ||
| 81 | 85 | ||
| 82 | - 8. nmake install | ||
| 86 | + 8. `nmake install` | ||
| 83 | 87 | ||
| 84 | 88 | For the full installation instructions, or if anything goes wrong at any stage, | |
| 85 | 89 | check the INSTALL.md file. | |
@@ -109,37 +113,37 @@ installation for examples), these fallbacks are used: | |||
| 109 | 113 | ALSO NOTE that those directories are usually write protected, even if | |
| 110 | 114 | your account is in the Administrators group. To work around that, | |
| 111 | 115 | start the command prompt by right-clicking on it and choosing "Run as | |
| 112 | - Administrator" before running 'nmake install'. The other solution | ||
| 116 | + Administrator" before running `nmake install`. The other solution | ||
| 113 | 117 | is, of course, to choose a different set of directories by using | |
| 114 | - --prefix and --openssldir when configuring. | ||
| 118 | + `--prefix` and `--openssldir` when configuring. | ||
| 115 | 119 | ||
| 116 | - Special notes for Universal Windows Platform builds, aka VC-*-UWP | ||
| 117 | - -------------------------------------------------------------------- | ||
| 120 | + Special notes for Universal Windows Platform builds, aka `VC-*-UWP` | ||
| 121 | + ------------------------------------------------------------------- | ||
| 118 | 122 | ||
| 119 | 123 | - UWP targets only support building the static and dynamic libraries. | |
| 120 | 124 | ||
| 121 | - - You should define the platform type to "uwp" and the target arch via | ||
| 122 | - "vcvarsall.bat" before you compile. For example, if you want to build | ||
| 123 | - "arm64" builds, you should run "vcvarsall.bat x86_arm64 uwp". | ||
| 125 | + - You should define the platform type to `uwp` and the target arch via | ||
| 126 | + `vcvarsall.bat` before you compile. For example, if you want to build | ||
| 127 | + `arm64` builds, you should run `vcvarsall.bat x86_arm64 uwp`. | ||
| 124 | 128 | ||
| 125 | 129 | Native builds using Embarcadero C++Builder | |
| 126 | 130 | ========================================= | |
| 127 | 131 | ||
| 128 | 132 | This toolchain (a descendant of Turbo/Borland C++) is an alternative to MSVC. | |
| 129 | 133 | OpenSSL currently includes an experimental 32-bit configuration targeting the | |
| 130 | - Clang-based compiler (bcc32c.exe) in v10.3.3 Community Edition. | ||
| 134 | + Clang-based compiler (`bcc32c.exe`) in v10.3.3 Community Edition. | ||
| 131 | 135 | <https://www.embarcadero.com/products/cbuilder/starter> | |
| 132 | 136 | ||
| 133 | 137 | 1. Install Perl. | |
| 134 | 138 | ||
| 135 | 139 | 2. Open the RAD Studio Command Prompt. | |
| 136 | 140 | ||
| 137 | 141 | 3. Go to the root of the OpenSSL source directory and run: | |
| 138 | - perl Configure BC-32 --prefix=%CD% | ||
| 142 | + `perl Configure BC-32 --prefix=%CD%` | ||
| 139 | 143 | ||
| 140 | - 4. make -N | ||
| 144 | + 4. `make -N` | ||
| 141 | 145 | ||
| 142 | - 5. make -N test | ||
| 146 | + 5. `make -N test` | ||
| 143 | 147 | ||
| 144 | 148 | 6. Build your program against this OpenSSL: | |
| 145 | 149 | * Set your include search path to the "include" subdirectory of OpenSSL. | |
@@ -166,32 +170,38 @@ MinGW offers an alternative way to build native OpenSSL, by cross compilation. | |||
| 166 | 170 | ||
| 167 | 171 | - Perl, at least version 5.10.0, which usually comes pre-installed with MSYS2 | |
| 168 | 172 | ||
| 169 | - - make, installed using "pacman -S make" into the MSYS2 environment | ||
| 173 | + - make, installed using `pacman -S make` into the MSYS2 environment | ||
| 170 | 174 | ||
| 171 | - - MinGW[64] compiler: mingw-w64-i686-gcc and/or mingw-w64-x86_64-gcc. | ||
| 175 | + - MinGW[64] compiler: `mingw-w64-i686-gcc` and/or `mingw-w64-x86_64-gcc`. | ||
| 172 | 176 | These compilers must be on your MSYS2 $PATH. | |
| 173 | 177 | A common error is to not have these on your $PATH. | |
| 174 | 178 | The MSYS2 version of gcc will not work correctly here. | |
| 175 | 179 | ||
| 176 | 180 | In the MSYS2 shell do the configuration depending on the target architecture: | |
| 177 | 181 | ||
| 178 | 182 | ./Configure mingw ... | |
| 183 | + | ||
| 179 | 184 | or | |
| 185 | + | ||
| 180 | 186 | ./Configure mingw64 ... | |
| 187 | + | ||
| 181 | 188 | or | |
| 189 | + | ||
| 182 | 190 | ./Configure ... | |
| 183 | 191 | ||
| 184 | 192 | for the default architecture. | |
| 185 | 193 | ||
| 186 | - Apart from that, follow the Unix / Linux instructions in INSTALL.md. | ||
| 194 | + Apart from that, follow the Unix / Linux instructions in `INSTALL.md`. | ||
| 187 | 195 | ||
| 188 | 196 | * It is also possible to build mingw[64] on Linux or Cygwin. | |
| 189 | 197 | ||
| 190 | - In this case configure with the corresponding --cross-compile-prefix= option. | ||
| 191 | - For example | ||
| 198 | + In this case configure with the corresponding `--cross-compile-prefix=` | ||
| 199 | + option. For example | ||
| 192 | 200 | ||
| 193 | 201 | ./Configure mingw --cross-compile-prefix=i686-w64-mingw32- ... | |
| 202 | + | ||
| 194 | 203 | or | |
| 204 | + | ||
| 195 | 205 | ./Configure mingw64 --cross-compile-prefix=x86_64-w64-mingw32- ... | |
| 196 | 206 | ||
| 197 | 207 | This requires that you've installed the necessary add-on packages for | |
@@ -203,18 +213,18 @@ Linking native applications | |||
| 203 | 213 | This section applies to all native builds. | |
| 204 | 214 | ||
| 205 | 215 | If you link with static OpenSSL libraries then you're expected to | |
| 206 | - additionally link your application with WS2_32.LIB, GDI32.LIB, | ||
| 207 | - ADVAPI32.LIB, CRYPT32.LIB and USER32.LIB. Those developing | ||
| 216 | + additionally link your application with `WS2_32.LIB`, `GDI32.LIB`, | ||
| 217 | + `ADVAPI32.LIB`, `CRYPT32.LIB` and `USER32.LIB`. Those developing | ||
| 208 | 218 | non-interactive service applications might feel concerned about | |
| 209 | - linking with GDI32.LIB and USER32.LIB, as they are justly associated | ||
| 219 | + linking with `GDI32.LIB` and `USER32.LIB`, as they are justly associated | ||
| 210 | 220 | with interactive desktop, which is not available to service | |
| 211 | 221 | processes. The toolkit is designed to detect in which context it's | |
| 212 | 222 | currently executed, GUI, console app or service, and act accordingly, | |
| 213 | 223 | namely whether or not to actually make GUI calls. Additionally those | |
| 214 | - who wish to /DELAYLOAD:GDI32.DLL and /DELAYLOAD:USER32.DLL and | ||
| 224 | + who wish to `/DELAYLOAD:GDI32.DLL` and `/DELAYLOAD:USER32.DLL` and | ||
| 215 | 225 | actually keep them off service process should consider implementing | |
| 216 | - and exporting from .exe image in question own _OPENSSL_isservice not | ||
| 217 | - relying on USER32.DLL. E.g., on Windows Vista and later you could: | ||
| 226 | + and exporting from .exe image in question own `_OPENSSL_isservice` not | ||
| 227 | + relying on `USER32.DLL`. E.g., on Windows Vista and later you could: | ||
| 218 | 228 | ||
| 219 | 229 | __declspec(dllexport) __cdecl BOOL _OPENSSL_isservice(void) | |
| 220 | 230 | { | |
@@ -233,7 +243,7 @@ See also the OPENSSL_Applink manual page. | |||
| 233 | 243 | Hosted builds using Cygwin | |
| 234 | 244 | ========================== | |
| 235 | 245 | ||
| 236 | - Cygwin implements a POSIX/Unix runtime system (cygwin1.dll) on top of the | ||
| 246 | + Cygwin implements a POSIX/Unix runtime system (`cygwin1.dll`) on top of the | ||
| 237 | 247 | Windows subsystem and provides a Bash shell and GNU tools environment. | |
| 238 | 248 | Consequently, a build of OpenSSL with Cygwin is virtually identical to the | |
| 239 | 249 | Unix procedure. | |
@@ -249,7 +259,7 @@ To build OpenSSL using Cygwin, you need to: | |||
| 249 | 259 | ||
| 250 | 260 | Apart from that, follow the Unix / Linux instructions in INSTALL.md. | |
| 251 | 261 | ||
| 252 | - NOTE: "make test" and normal file operations may fail in directories | ||
| 253 | - mounted as text (i.e. mount -t c:\somewhere /home) due to Cygwin | ||
| 262 | + NOTE: `make test` and normal file operations may fail in directories | ||
| 263 | + mounted as text (i.e. `mount -t c:\somewhere /home`) due to Cygwin | ||
| 254 | 264 | stripping of carriage returns. To avoid this ensure that a binary | |
| 255 | - mount is used, e.g. mount -b c:\somewhere /home. | ||
| 265 | + mount is used, e.g. `mount -b c:\somewhere /home`. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ What This Is | |||
| 4 | 4 | This is a fork of [OpenSSL](https://www.openssl.org) to enable QUIC. In addition | |
| 5 | 5 | to the website, the official source distribution is at | |
| 6 | 6 | <https://github.com/openssl/openssl>. The OpenSSL `README` can be found at | |
| 7 | - [README-OpenSSL.md](https://github.com/quictls/openssl/blob/openssl-3.0.2%2Bquic/README-OpenSSL.md) | ||
| 7 | + [README-OpenSSL.md](https://github.com/quictls/openssl/blob/openssl-3.0.3%2Bquic/README-OpenSSL.md) | ||
| 8 | 8 | ||
| 9 | 9 | This fork adds APIs that can be used by QUIC implementations for connection | |
| 10 | 10 | handshakes. Quoting the IETF Working group | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | MAJOR=3 | |
| 2 | 2 | MINOR=0 | |
| 3 | - PATCH=2 | ||
| 3 | + PATCH=3 | ||
| 4 | 4 | PRE_RELEASE_TAG= | |
| 5 | 5 | BUILD_METADATA=quic | |
| 6 | - RELEASE_DATE="15 Mar 2022" | ||
| 6 | + RELEASE_DATE="3 May 2022" | ||
| 7 | 7 | SHLIB_VERSION=81.3 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | /* | |
| 2 | - * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. | ||
| 2 | + * Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved. | ||
| 3 | 3 | * | |
| 4 | 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use | |
| 5 | 5 | * this file except in compliance with the License. You can obtain a copy | |
@@ -2367,7 +2367,7 @@ static char *make_revocation_str(REVINFO_TYPE rev_type, const char *rev_arg) | |||
| 2367 | 2367 | ||
| 2368 | 2368 | case REV_CRL_REASON: | |
| 2369 | 2369 | for (i = 0; i < 8; i++) { | |
| 2370 | - if (strcasecmp(rev_arg, crl_reasons[i]) == 0) { | ||
| 2370 | + if (OPENSSL_strcasecmp(rev_arg, crl_reasons[i]) == 0) { | ||
| 2371 | 2371 | reason = crl_reasons[i]; | |
| 2372 | 2372 | break; | |
| 2373 | 2373 | } | |
@@ -2584,7 +2584,7 @@ int unpack_revinfo(ASN1_TIME **prevtm, int *preason, ASN1_OBJECT **phold, | |||
| 2584 | 2584 | } | |
| 2585 | 2585 | if (reason_str) { | |
| 2586 | 2586 | for (i = 0; i < NUM_REASONS; i++) { | |
| 2587 | - if (strcasecmp(reason_str, crl_reasons[i]) == 0) { | ||
| 2587 | + if (OPENSSL_strcasecmp(reason_str, crl_reasons[i]) == 0) { | ||
| 2588 | 2588 | reason_code = i; | |
| 2589 | 2589 | break; | |
| 2590 | 2590 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1745,7 +1745,7 @@ static int handle_opt_geninfo(OSSL_CMP_CTX *ctx) | |||
| 1745 | 1745 | valptr[0] = '\0'; | |
| 1746 | 1746 | valptr++; | |
| 1747 | 1747 | ||
| 1748 | - if (strncasecmp(valptr, "int:", 4) != 0) { | ||
| 1748 | + if (OPENSSL_strncasecmp(valptr, "int:", 4) != 0) { | ||
| 1749 | 1749 | CMP_err("missing 'int:' in -geninfo option"); | |
| 1750 | 1750 | return 0; | |
| 1751 | 1751 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments