Merge pull request #176 from linusg/fix-method-name

Fix meth_get_{sinagure => signature}_name function name
This commit is contained in:
Bruno Silvestre 2021-07-14 13:05:09 -03:00 committed by GitHub
commit eedebb2477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -658,7 +658,7 @@ static int meth_set_encode(lua_State* L)
/** /**
* Get signature name. * Get signature name.
*/ */
static int meth_get_sinagure_name(lua_State* L) static int meth_get_signature_name(lua_State* L)
{ {
p_x509 px = lsec_checkp_x509(L, 1); p_x509 px = lsec_checkp_x509(L, 1);
int nid = X509_get_signature_nid(px->cert); int nid = X509_get_signature_nid(px->cert);
@ -698,7 +698,7 @@ static luaL_Reg methods[] = {
{"digest", meth_digest}, {"digest", meth_digest},
{"setencode", meth_set_encode}, {"setencode", meth_set_encode},
{"extensions", meth_extensions}, {"extensions", meth_extensions},
{"getsignaturename", meth_get_sinagure_name}, {"getsignaturename", meth_get_signature_name},
{"issuer", meth_issuer}, {"issuer", meth_issuer},
{"notbefore", meth_notbefore}, {"notbefore", meth_notbefore},
{"notafter", meth_notafter}, {"notafter", meth_notafter},