diff options
| author | Sergey Kandaurov <pluknet@nginx.com> | 2019-04-03 15:35:39 +0300 |
|---|---|---|
| committer | Sergey Kandaurov <pluknet@nginx.com> | 2019-04-03 15:35:39 +0300 |
| commit | db5c30728004045d0830922dd8ffeec030a6d726 (patch) | |
| tree | 76da0425c1983c055db987978d0412eb81ac4cb4 /src/event/ngx_event_openssl_stapling.c | |
| parent | 52d9da8790a272a43ac1907c8ba55063bd9a38fe (diff) | |
| download | nginx-db5c30728004045d0830922dd8ffeec030a6d726.tar.gz nginx-db5c30728004045d0830922dd8ffeec030a6d726.tar.bz2 | |
OCSP stapling: open ssl_stapling_file in binary-mode.
OCSP response uses the DER format and as such needs to be opened in binary-mode.
This only has any effect under Win32.
Diffstat (limited to 'src/event/ngx_event_openssl_stapling.c')
| -rw-r--r-- | src/event/ngx_event_openssl_stapling.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/ngx_event_openssl_stapling.c b/src/event/ngx_event_openssl_stapling.c index 0bea5e74d..7d0a1701f 100644 --- a/src/event/ngx_event_openssl_stapling.c +++ b/src/event/ngx_event_openssl_stapling.c @@ -227,7 +227,7 @@ ngx_ssl_stapling_file(ngx_conf_t *cf, ngx_ssl_t *ssl, return NGX_ERROR; } - bio = BIO_new_file((char *) file->data, "r"); + bio = BIO_new_file((char *) file->data, "rb"); if (bio == NULL) { ngx_ssl_error(NGX_LOG_EMERG, ssl->log, 0, "BIO_new_file(\"%s\") failed", file->data); |
