Skip to content

Commit

Permalink
Fix cipher_list for rsa_cert SSL method
Browse files Browse the repository at this point in the history
  • Loading branch information
illarionov committed Mar 30, 2011
1 parent 1838ac8 commit 7f0bd76
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ssl_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,6 @@ int ourfa_ssl_ctx_set_ssl_type(ourfa_ssl_ctx_t *ssl_ctx, unsigned ssl_type)
if (ssl_ctx->ssl_type == ssl_type)
return OURFA_OK;

if ((ssl_type != OURFA_SSL_TYPE_NONE)
&& SSL_CTX_set_cipher_list(ssl_ctx->ssl_ctx, cipher_list) == 0) {
return ssl_ctx->printf_err(OURFA_ERROR_WRONG_CLIENT_CERTIFICATE, ssl_ctx->err_ctx,
"SSL_CTX_set_cipher_list(""%s"") Failed",
cipher_list);
}

switch (ssl_type) {
case OURFA_SSL_TYPE_NONE:
/* XXX */
Expand Down Expand Up @@ -227,6 +220,13 @@ int ourfa_ssl_ctx_set_ssl_type(ourfa_ssl_ctx_t *ssl_ctx, unsigned ssl_type)

ssl_ctx->ssl_type = ssl_type;

if ((ssl_type != OURFA_SSL_TYPE_NONE)
&& SSL_CTX_set_cipher_list(ssl_ctx->ssl_ctx, cipher_list) == 0) {
return ssl_ctx->printf_err(OURFA_ERROR_WRONG_CLIENT_CERTIFICATE, ssl_ctx->err_ctx,
"SSL_CTX_set_cipher_list(""%s"") Failed",
cipher_list);
}

return OURFA_OK;
}

Expand Down

0 comments on commit 7f0bd76

Please sign in to comment.