diff --git a/src/http.c b/src/http.c index 3010c5e3..aafd8ad3 100644 --- a/src/http.c +++ b/src/http.c @@ -375,7 +375,6 @@ static int get_value_from_response(const char *buf, const char *key, static int get_action_url(const char *buf, const char *key, char *retbuf, size_t retbuflen) { - int ret = -1; char *tokens; size_t keylen = strlen(key); diff --git a/src/tunnel.c b/src/tunnel.c index 4a670440..6997e67b 100644 --- a/src/tunnel.c +++ b/src/tunnel.c @@ -1101,8 +1101,8 @@ int ssl_connect(struct tunnel *tunnel) } #endif - /* Use engine for PIV if user-cert config starts with pkcs11 URI: */ #ifndef OPENSSL_NO_ENGINE + /* Use PKCS11 engine for PIV if user-cert config starts with pkcs11 URI: */ if (tunnel->config->use_engine > 0) { ENGINE *e; @@ -1161,10 +1161,8 @@ int ssl_connect(struct tunnel *tunnel) ERR_error_string(ERR_peek_last_error(), NULL)); goto err_ssl_context; } - - } else { /* end PKCS11-engine */ + } else { /* end PKCS11 engine */ #endif - if (tunnel->config->user_cert) { if (!SSL_CTX_use_certificate_chain_file( tunnel->ssl_context, tunnel->config->user_cert)) {