aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar william <william@25tandclement.com> 2014-05-12 20:40:57 -0700
committerLibravatarLibravatar william <william@25tandclement.com> 2014-05-12 20:40:57 -0700
commitad5867b4c5c85ac4ade3cd2d4884ade0e1fae5a5 (patch)
treed187492a92d66941a841cecb98cc6e1b2968194a
parent85f5b3eb7a802984ef3f782faf2e0dcc790845c9 (diff)
downloadluaossl-ad5867b4c5c85ac4ade3cd2d4884ade0e1fae5a5.tar.gz
luaossl-ad5867b4c5c85ac4ade3cd2d4884ade0e1fae5a5.tar.bz2
luaossl-ad5867b4c5c85ac4ade3cd2d4884ade0e1fae5a5.zip
hookup explicit tostring methods for CRT and CSR objects (still need to refactor PKey to allow specifying public, private or both)
-rw-r--r--src/openssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openssl.c b/src/openssl.c
index d5c0122..c589d6c 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -2655,6 +2655,7 @@ static const luaL_Reg xc_methods[] = {
{ "getPublicKey", &xc_getPublicKey },
{ "setPublicKey", &xc_setPublicKey },
{ "sign", &xc_sign },
+ { "tostring", &xc__tostring },
{ NULL, NULL },
};
@@ -2860,6 +2861,7 @@ static const luaL_Reg xr_methods[] = {
{ "getPublicKey", &xr_getPublicKey },
{ "setPublicKey", &xr_setPublicKey },
{ "sign", &xr_sign },
+ { "tostring", &xr__tostring },
{ NULL, NULL },
};