aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2018-05-28 18:25:35 +1000
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2018-05-28 18:25:35 +1000
commit57835c26f3f6c55308ff5c3927fd0b66657226f8 (patch)
tree290a2760684a6142f09bb582651cd09346c967a8 /src
parent4dab4738cd19412758c358e7444c98d3dd60fbed (diff)
downloadluaossl-57835c26f3f6c55308ff5c3927fd0b66657226f8.tar.gz
luaossl-57835c26f3f6c55308ff5c3927fd0b66657226f8.tar.bz2
luaossl-57835c26f3f6c55308ff5c3927fd0b66657226f8.zip
src/openssl.c: Fix function vs method in error messages
Diffstat (limited to 'src')
-rw-r--r--src/openssl.c6
1 files changed, 3 insertions, 3 deletions
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);