TLS: Using ERR_get_error_all() with OpenSSL 3.
Link: <https://www.openssl.org/docs/man3.0/man7/migration_guide.html> Cc: Andy Postnikov <apostnikov@gmail.com> Cc: Andrew Clayton <a.clayton@nginx.com> Signed-off-by: Remi Collet <remi@remirepo.net> Signed-off-by: Alejandro Colomar <alx@nginx.com>
This commit is contained in:
parent
93d24bb114
commit
e096f19d47
2 changed files with 10 additions and 0 deletions
|
@ -43,6 +43,12 @@ prefer system crypto policy, instead of hardcoding a default.
|
|||
</para>
|
||||
</change>
|
||||
|
||||
<change type="feature">
|
||||
<para>
|
||||
compatibility with OpenSSL 3.
|
||||
</para>
|
||||
</change>
|
||||
|
||||
<change type="feature">
|
||||
<para>
|
||||
compatibility with PHP 8.2.
|
||||
|
|
|
@ -1777,7 +1777,11 @@ nxt_openssl_copy_error(u_char *p, u_char *end)
|
|||
clear = 0;
|
||||
|
||||
for ( ;; ) {
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||
err = ERR_get_error_all(NULL, NULL, NULL, &data, &flags);
|
||||
#else
|
||||
err = ERR_get_error_line_data(NULL, NULL, &data, &flags);
|
||||
#endif
|
||||
if (err == 0) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue