From 57835c26f3f6c55308ff5c3927fd0b66657226f8 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 28 May 2018 18:25:35 +1000 Subject: src/openssl.c: Fix function vs method in error messages --- src/openssl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/openssl.c b/src/openssl.c index 70fc1f9..9c1619d 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -5456,7 +5456,7 @@ static int xe_text(lua_State *L) { size_t len; if (!X509V3_EXT_print(bio, ext, flags, indent)) - return auxL_error(L, auxL_EOPENSSL, "x509.extension.text"); + return auxL_error(L, auxL_EOPENSSL, "x509.extension:text"); len = BIO_get_mem_data(bio, &data); @@ -6696,7 +6696,7 @@ static int xr_getPublicKey(lua_State *L) { EVP_PKEY **key = prepsimple(L, PKEY_CLASS); if (!(*key = X509_REQ_get_pubkey(csr))) - return auxL_error(L, auxL_EOPENSSL, "x509.cert:getPublicKey"); + return auxL_error(L, auxL_EOPENSSL, "x509.csr:getPublicKey"); return 1; } /* xr_getPublicKey() */ @@ -8799,7 +8799,7 @@ static int ssl_setContext(lua_State *L) { SSL_CTX *ctx = checksimple(L, 2, SSL_CTX_CLASS); if (!SSL_set_SSL_CTX(ssl, ctx)) - return auxL_error(L, auxL_EOPENSSL, "ssl.setContext"); + return auxL_error(L, auxL_EOPENSSL, "ssl:setContext"); lua_pushboolean(L, 1); -- cgit v1.2.3-59-g8ed1b