summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl.c b/openssl.c
index 4ab0688..2dd5844 100644
--- a/openssl.c
+++ b/openssl.c
@@ -1642,7 +1642,7 @@ error:
1642static int xc_digest(lua_State *L) { 1642static int xc_digest(lua_State *L) {
1643 X509 *crt = checksimple(L, 1, X509_CERT_CLASS); 1643 X509 *crt = checksimple(L, 1, X509_CERT_CLASS);
1644 const char *type = luaL_optstring(L, 2, "sha1"); 1644 const char *type = luaL_optstring(L, 2, "sha1");
1645 int format = luaL_checkoption(L, 3, "*s", (const char *[]){ "*s", "*x", "*n", NULL }); 1645 int format = luaL_checkoption(L, 3, "x", (const char *[]){ "s", "x", "n", NULL });
1646 const EVP_MD *ctx; 1646 const EVP_MD *ctx;
1647 unsigned char md[EVP_MAX_MD_SIZE]; 1647 unsigned char md[EVP_MAX_MD_SIZE];
1648 unsigned len; 1648 unsigned len;