diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-11-13 18:43:39 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-11-13 18:43:39 +0300 |
commit | ff9bed64da495b6c234bcfa4dcf18932730e58e7 (patch) | |
tree | 930770093e4892868b7684b8227414222487fc3f /src/nxt_openssl.c | |
parent | 4f4a2d8c63e55401fe0fccb47d747701cdf3171e (diff) | |
download | unit-ff9bed64da495b6c234bcfa4dcf18932730e58e7.tar.gz unit-ff9bed64da495b6c234bcfa4dcf18932730e58e7.tar.bz2 |
Fixed nxt_openssl_chain_file() return type.
This closes #182 issue on GitHub.
Thanks to 洪志道 (Hong Zhi Dao).
Diffstat (limited to 'src/nxt_openssl.c')
-rw-r--r-- | src/nxt_openssl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_openssl.c b/src/nxt_openssl.c index 441da54b..401de2de 100644 --- a/src/nxt_openssl.c +++ b/src/nxt_openssl.c @@ -40,7 +40,7 @@ static void nxt_openssl_locks_free(void); #endif static nxt_int_t nxt_openssl_server_init(nxt_task_t *task, nxt_tls_conf_t *conf); -static nxt_uint_t nxt_openssl_chain_file(SSL_CTX *ctx, nxt_fd_t fd); +static nxt_int_t nxt_openssl_chain_file(SSL_CTX *ctx, nxt_fd_t fd); static void nxt_openssl_server_free(nxt_task_t *task, nxt_tls_conf_t *conf); static void nxt_openssl_conn_init(nxt_task_t *task, nxt_tls_conf_t *conf, nxt_conn_t *c); @@ -359,14 +359,14 @@ fail: } -static nxt_uint_t +static nxt_int_t nxt_openssl_chain_file(SSL_CTX *ctx, nxt_fd_t fd) { BIO *bio; X509 *cert, *ca; long reason; EVP_PKEY *key; - nxt_uint_t ret; + nxt_int_t ret; bio = BIO_new(BIO_s_fd()); if (bio == NULL) { |