diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-12-01 18:33:21 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-12-01 18:33:21 +0000 |
commit | 4842dde80c6846518df9d1b8fe9dba6db217ffdc (patch) | |
tree | 581a5f775c7131a3d517a344c1eebcccb3c2c698 /ssl/ssl_conf.c | |
parent | f91926a2409e96ffe8eb6f6233aaeb6c6a213112 (diff) | |
download | openssl-4842dde80c6846518df9d1b8fe9dba6db217ffdc.tar.gz |
return error if Suite B mode is selected and TLS 1.2 can't be used. Correct error coded
Diffstat (limited to 'ssl/ssl_conf.c')
-rw-r--r-- | ssl/ssl_conf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ssl/ssl_conf.c b/ssl/ssl_conf.c index 0de97f8a78..23754739bb 100644 --- a/ssl/ssl_conf.c +++ b/ssl/ssl_conf.c @@ -385,7 +385,7 @@ int SSL_CONF_cmd(SSL_CONF_CTX *cctx, const char *cmd, const char *value) size_t i; if (cmd == NULL) { - SSLerr(SSL_F_SSL_CONF_CTX_CMD, SSL_R_INVALID_NULL_CMD_NAME); + SSLerr(SSL_F_SSL_CONF_CMD, SSL_R_INVALID_NULL_CMD_NAME); return 0; } /* If a prefix is set, check and skip */ @@ -442,7 +442,7 @@ int SSL_CONF_cmd(SSL_CONF_CTX *cctx, const char *cmd, const char *value) return -2; if (cctx->flags & SSL_CONF_FLAG_SHOW_ERRORS) { - SSLerr(SSL_F_SSL_CONF_CTX_CMD, SSL_R_BAD_VALUE); + SSLerr(SSL_F_SSL_CONF_CMD, SSL_R_BAD_VALUE); ERR_add_error_data(4, "cmd=", cmd, ", value=", value); } return 0; @@ -456,7 +456,7 @@ int SSL_CONF_cmd(SSL_CONF_CTX *cctx, const char *cmd, const char *value) if (cctx->flags & SSL_CONF_FLAG_SHOW_ERRORS) { - SSLerr(SSL_F_SSL_CONF_CTX_CMD, SSL_R_UNKNOWN_CMD_NAME); + SSLerr(SSL_F_SSL_CONF_CMD, SSL_R_UNKNOWN_CMD_NAME); ERR_add_error_data(2, "cmd=", cmd); } |