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:
committed by
Alejandro Colomar
parent
93d24bb114
commit
e096f19d47
@@ -43,6 +43,12 @@ prefer system crypto policy, instead of hardcoding a default.
|
|||||||
</para>
|
</para>
|
||||||
</change>
|
</change>
|
||||||
|
|
||||||
|
<change type="feature">
|
||||||
|
<para>
|
||||||
|
compatibility with OpenSSL 3.
|
||||||
|
</para>
|
||||||
|
</change>
|
||||||
|
|
||||||
<change type="feature">
|
<change type="feature">
|
||||||
<para>
|
<para>
|
||||||
compatibility with PHP 8.2.
|
compatibility with PHP 8.2.
|
||||||
|
|||||||
@@ -1777,7 +1777,11 @@ nxt_openssl_copy_error(u_char *p, u_char *end)
|
|||||||
clear = 0;
|
clear = 0;
|
||||||
|
|
||||||
for ( ;; ) {
|
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);
|
err = ERR_get_error_line_data(NULL, NULL, &data, &flags);
|
||||||
|
#endif
|
||||||
if (err == 0) {
|
if (err == 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user