diff options
author | Remi Collet <remi@remirepo.net> | 2021-11-18 17:47:39 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@nginx.com> | 2022-10-21 11:48:08 +0200 |
commit | e096f19d47e45803d12a9c60ee51f79d2613281c (patch) | |
tree | 16a034657b7f541fdc1aa4448d1064d3c2a8d631 /src | |
parent | 93d24bb1144bebedb79bec8745c42aa0dc778aef (diff) | |
download | unit-e096f19d47e45803d12a9c60ee51f79d2613281c.tar.gz unit-e096f19d47e45803d12a9c60ee51f79d2613281c.tar.bz2 |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/nxt_openssl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_openssl.c b/src/nxt_openssl.c index 32904660..55611511 100644 --- a/src/nxt_openssl.c +++ b/src/nxt_openssl.c @@ -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; } |