summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_cyassl.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-03-05 17:32:50 +0300
committerValentin Bartenev <vbart@nginx.com>2018-03-05 17:32:50 +0300
commit912a49c6091c1fd9b630d2e0966f0fe1b97a3e42 (patch)
tree5581735807436384796dfd9deff336865c8372e4 /src/nxt_cyassl.c
parentf2090bce21e4fb47d11f992a76ef5c4da74c3233 (diff)
downloadunit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.gz
unit-912a49c6091c1fd9b630d2e0966f0fe1b97a3e42.tar.bz2
Reduced number of critical log levels.
Diffstat (limited to 'src/nxt_cyassl.c')
-rw-r--r--src/nxt_cyassl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nxt_cyassl.c b/src/nxt_cyassl.c
index 3d487183..91039e0c 100644
--- a/src/nxt_cyassl.c
+++ b/src/nxt_cyassl.c
@@ -87,7 +87,7 @@ nxt_cyassl_start(void)
err = CyaSSL_Init();
if (err != SSL_SUCCESS) {
- nxt_cyassl_log_error(NXT_LOG_CRIT, thr->log, err,
+ nxt_cyassl_log_error(NXT_LOG_ALERT, thr->log, err,
"CyaSSL_Init() failed");
return NXT_ERROR;
}
@@ -118,7 +118,7 @@ nxt_cyassl_server_init(nxt_ssltls_conf_t *conf)
ctx = CyaSSL_CTX_new(CyaSSLv23_server_method());
if (ctx == NULL) {
- nxt_cyassl_log_error(NXT_LOG_CRIT, thr->log, 0,
+ nxt_cyassl_log_error(NXT_LOG_ALERT, thr->log, 0,
"CyaSSL_CTX_new() failed");
return NXT_ERROR;
}
@@ -130,7 +130,7 @@ nxt_cyassl_server_init(nxt_ssltls_conf_t *conf)
err = CyaSSL_CTX_use_certificate_file(ctx, certificate, SSL_FILETYPE_PEM);
if (err != SSL_SUCCESS) {
- nxt_cyassl_log_error(NXT_LOG_CRIT, thr->log, err,
+ nxt_cyassl_log_error(NXT_LOG_ALERT, thr->log, err,
"CyaSSL_CTX_use_certificate_file(\"%s\") failed",
certificate);
goto fail;
@@ -140,7 +140,7 @@ nxt_cyassl_server_init(nxt_ssltls_conf_t *conf)
err = CyaSSL_CTX_use_PrivateKey_file(ctx, key, SSL_FILETYPE_PEM);
if (err != SSL_SUCCESS) {
- nxt_cyassl_log_error(NXT_LOG_CRIT, thr->log, err,
+ nxt_cyassl_log_error(NXT_LOG_ALERT, thr->log, err,
"CyaSSL_CTX_use_PrivateKey_file(\"%s\") failed",
key);
goto fail;
@@ -149,7 +149,7 @@ nxt_cyassl_server_init(nxt_ssltls_conf_t *conf)
if (conf->ciphers != NULL) {
err = CyaSSL_CTX_set_cipher_list(ctx, conf->ciphers);
if (err != SSL_SUCCESS) {
- nxt_cyassl_log_error(NXT_LOG_CRIT, thr->log, err,
+ nxt_cyassl_log_error(NXT_LOG_ALERT, thr->log, err,
"CyaSSL_CTX_set_cipher_list(\"%s\") failed",
conf->ciphers);
goto fail;
@@ -199,7 +199,7 @@ nxt_cyassl_conn_init(nxt_thread_t *thr, nxt_ssltls_conf_t *conf,
s = CyaSSL_new(ctx);
if (s == NULL) {
- nxt_cyassl_log_error(NXT_LOG_CRIT, c->socket.log, 0,
+ nxt_cyassl_log_error(NXT_LOG_ALERT, c->socket.log, 0,
"CyaSSL_new() failed");
goto fail;
}
@@ -574,7 +574,7 @@ nxt_cyassl_log_error_level(nxt_event_conn_t *c, nxt_err_t err, int ssl_error)
break;
default:
- return NXT_LOG_CRIT;
+ return NXT_LOG_ALERT;
}
return NXT_LOG_INFO;