Skip to content

Commit

Permalink
Beautify C code
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed May 6, 2023
1 parent 3365c84 commit f1b810f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 2 additions & 4 deletions src/tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit f1b810f

Please sign in to comment.