diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/openssl.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/openssl.c b/src/openssl.c index 99a1ec0..a274de2 100644 --- a/src/openssl.c +++ b/src/openssl.c | |||
@@ -820,7 +820,6 @@ static void compat_init_X509_STORE_onfree(void *store, void *data NOTUSED, CRYPT | |||
820 | static int compat_init(void) { | 820 | static int compat_init(void) { |
821 | static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; | 821 | static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; |
822 | static int store_index = -1, ssl_ctx_index = -1, done; | 822 | static int store_index = -1, ssl_ctx_index = -1, done; |
823 | X509_STORE *store; | ||
824 | int error = 0; | 823 | int error = 0; |
825 | 824 | ||
826 | if ((error = pthread_mutex_lock(&mutex))) | 825 | if ((error = pthread_mutex_lock(&mutex))) |
@@ -1615,7 +1614,6 @@ static int bn__mul(lua_State *L) { | |||
1615 | 1614 | ||
1616 | static int bn__div(lua_State *L) { | 1615 | static int bn__div(lua_State *L) { |
1617 | BIGNUM *r, *a, *b; | 1616 | BIGNUM *r, *a, *b; |
1618 | BN_CTX *ctx; | ||
1619 | 1617 | ||
1620 | bn_prepops(L, &r, &a, &b, 0); | 1618 | bn_prepops(L, &r, &a, &b, 0); |
1621 | 1619 | ||
@@ -1628,7 +1626,6 @@ static int bn__div(lua_State *L) { | |||
1628 | 1626 | ||
1629 | static int bn__mod(lua_State *L) { | 1627 | static int bn__mod(lua_State *L) { |
1630 | BIGNUM *r, *a, *b; | 1628 | BIGNUM *r, *a, *b; |
1631 | BN_CTX *ctx; | ||
1632 | 1629 | ||
1633 | bn_prepops(L, &r, &a, &b, 0); | 1630 | bn_prepops(L, &r, &a, &b, 0); |
1634 | 1631 | ||
@@ -1641,7 +1638,6 @@ static int bn__mod(lua_State *L) { | |||
1641 | 1638 | ||
1642 | static int bn__pow(lua_State *L) { | 1639 | static int bn__pow(lua_State *L) { |
1643 | BIGNUM *r, *a, *b; | 1640 | BIGNUM *r, *a, *b; |
1644 | BN_CTX *ctx; | ||
1645 | 1641 | ||
1646 | bn_prepops(L, &r, &a, &b, 0); | 1642 | bn_prepops(L, &r, &a, &b, 0); |
1647 | 1643 | ||
@@ -2291,7 +2287,6 @@ static int pk__tostring(lua_State *L) { | |||
2291 | BIO *bio = getbio(L); | 2287 | BIO *bio = getbio(L); |
2292 | char *data; | 2288 | char *data; |
2293 | long len; | 2289 | long len; |
2294 | int ok = 0; | ||
2295 | 2290 | ||
2296 | switch (type) { | 2291 | switch (type) { |
2297 | case X509_PEM: | 2292 | case X509_PEM: |
@@ -2843,7 +2838,6 @@ static int xe_new(lua_State *L) { | |||
2843 | 2838 | ||
2844 | CONF *conf = NULL; | 2839 | CONF *conf = NULL; |
2845 | X509V3_CTX cbuf = { 0 }, *ctx = NULL; | 2840 | X509V3_CTX cbuf = { 0 }, *ctx = NULL; |
2846 | X509_EXTENSION *ext = NULL; | ||
2847 | 2841 | ||
2848 | if (!lua_isnil(L, 3)) { | 2842 | if (!lua_isnil(L, 3)) { |
2849 | const char *cdata = luaL_checkstring(L, 3); | 2843 | const char *cdata = luaL_checkstring(L, 3); |
@@ -3166,7 +3160,6 @@ static double timeutc(ASN1_TIME *time) { | |||
3166 | char buf[32] = "", *cp; | 3160 | char buf[32] = "", *cp; |
3167 | struct tm tm = { 0 }; | 3161 | struct tm tm = { 0 }; |
3168 | int gmtoff = 0, year, i; | 3162 | int gmtoff = 0, year, i; |
3169 | double ts; | ||
3170 | 3163 | ||
3171 | if (!ASN1_TIME_check(time)) | 3164 | if (!ASN1_TIME_check(time)) |
3172 | return 0; | 3165 | return 0; |
@@ -3264,7 +3257,6 @@ static int xc_getLifetime(lua_State *L) { | |||
3264 | 3257 | ||
3265 | static int xc_setLifetime(lua_State *L) { | 3258 | static int xc_setLifetime(lua_State *L) { |
3266 | X509 *crt = checksimple(L, 1, X509_CERT_CLASS); | 3259 | X509 *crt = checksimple(L, 1, X509_CERT_CLASS); |
3267 | ASN1_TIME *time; | ||
3268 | double ut; | 3260 | double ut; |
3269 | const char *dt; | 3261 | const char *dt; |
3270 | 3262 | ||
@@ -4181,7 +4173,6 @@ static int xx_getLastUpdate(lua_State *L) { | |||
4181 | static int xx_setLastUpdate(lua_State *L) { | 4173 | static int xx_setLastUpdate(lua_State *L) { |
4182 | X509_CRL *crl = checksimple(L, 1, X509_CRL_CLASS); | 4174 | X509_CRL *crl = checksimple(L, 1, X509_CRL_CLASS); |
4183 | double updated = luaL_checknumber(L, 2); | 4175 | double updated = luaL_checknumber(L, 2); |
4184 | ASN1_TIME *time = NULL; | ||
4185 | 4176 | ||
4186 | /* lastUpdate always present */ | 4177 | /* lastUpdate always present */ |
4187 | if (!ASN1_TIME_set(X509_CRL_get_lastUpdate(crl), updated)) | 4178 | if (!ASN1_TIME_set(X509_CRL_get_lastUpdate(crl), updated)) |
@@ -5286,7 +5277,6 @@ noack: | |||
5286 | 5277 | ||
5287 | static int sx_setAlpnSelect(lua_State *L) { | 5278 | static int sx_setAlpnSelect(lua_State *L) { |
5288 | SSL_CTX *ctx = checksimple(L, 1, SSL_CTX_CLASS); | 5279 | SSL_CTX *ctx = checksimple(L, 1, SSL_CTX_CLASS); |
5289 | struct ex_data *data; | ||
5290 | int error; | 5280 | int error; |
5291 | 5281 | ||
5292 | luaL_checktype(L, 2, LUA_TFUNCTION); | 5282 | luaL_checktype(L, 2, LUA_TFUNCTION); |
@@ -5770,7 +5760,6 @@ static void md_update_(lua_State *L, EVP_MD_CTX *ctx, int from, int to) { | |||
5770 | 5760 | ||
5771 | static int md_update(lua_State *L) { | 5761 | static int md_update(lua_State *L) { |
5772 | EVP_MD_CTX *ctx = luaL_checkudata(L, 1, DIGEST_CLASS); | 5762 | EVP_MD_CTX *ctx = luaL_checkudata(L, 1, DIGEST_CLASS); |
5773 | int i; | ||
5774 | 5763 | ||
5775 | md_update_(L, ctx, 2, lua_gettop(L)); | 5764 | md_update_(L, ctx, 2, lua_gettop(L)); |
5776 | 5765 | ||