Mercurial > hg > nginx-quic
comparison src/event/ngx_event_openssl.c @ 6545:a873b4d9cd80
OCSP stapling: staple now stored in certificate, not SSL context.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 19 May 2016 14:46:32 +0300 |
parents | ddf761495ce6 |
children | 8a34e92d8ab5 |
comparison
equal
deleted
inserted
replaced
6544:458e01ef46e6 | 6545:a873b4d9cd80 |
---|---|
185 ngx_ssl_error(NGX_LOG_ALERT, log, 0, | 185 ngx_ssl_error(NGX_LOG_ALERT, log, 0, |
186 "SSL_CTX_get_ex_new_index() failed"); | 186 "SSL_CTX_get_ex_new_index() failed"); |
187 return NGX_ERROR; | 187 return NGX_ERROR; |
188 } | 188 } |
189 | 189 |
190 ngx_ssl_stapling_index = SSL_CTX_get_ex_new_index(0, NULL, NULL, NULL, | 190 ngx_ssl_stapling_index = X509_get_ex_new_index(0, NULL, NULL, NULL, NULL); |
191 NULL); | 191 |
192 if (ngx_ssl_stapling_index == -1) { | 192 if (ngx_ssl_stapling_index == -1) { |
193 ngx_ssl_error(NGX_LOG_ALERT, log, 0, | 193 ngx_ssl_error(NGX_LOG_ALERT, log, 0, "X509_get_ex_new_index() failed"); |
194 "SSL_CTX_get_ex_new_index() failed"); | |
195 return NGX_ERROR; | 194 return NGX_ERROR; |
196 } | 195 } |
197 | 196 |
198 return NGX_OK; | 197 return NGX_OK; |
199 } | 198 } |