diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/openssl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/openssl.c b/src/openssl.c index 5b17335..814d95c 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -1475,7 +1475,11 @@ static const char *auxL_pusherror(lua_State *L, int error, const char *fun) { if (!ERR_peek_error()) return lua_pushliteral(L, "oops: no OpenSSL errors set"); +#if OPENSSL_PREREQ(3,0,0) + code = ERR_get_error_all(&path, &line, NULL, NULL, NULL); +#else code = ERR_get_error_line(&path, &line); +#endif if ((file = strrchr(path, '/'))) { ++file; |