mirror of
https://github.com/nginx/nginx.git
synced 2025-06-10 11:38:36 +08:00
SSL: style.
This commit is contained in:
parent
cfd17ca9ed
commit
690423e3b2
@ -1073,7 +1073,7 @@ ngx_ssl_ecdh_curve(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_str_t *name)
|
|||||||
* maximum interoperability.
|
* maximum interoperability.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
nid = OBJ_sn2nid((const char *) name->data);
|
nid = OBJ_sn2nid((char *) name->data);
|
||||||
if (nid == 0) {
|
if (nid == 0) {
|
||||||
ngx_ssl_error(NGX_LOG_EMERG, ssl->log, 0,
|
ngx_ssl_error(NGX_LOG_EMERG, ssl->log, 0,
|
||||||
"OBJ_sn2nid(\"%s\") failed: unknown curve", name->data);
|
"OBJ_sn2nid(\"%s\") failed: unknown curve", name->data);
|
||||||
@ -3602,7 +3602,7 @@ ngx_openssl_engine(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||||||
|
|
||||||
value = cf->args->elts;
|
value = cf->args->elts;
|
||||||
|
|
||||||
engine = ENGINE_by_id((const char *) value[1].data);
|
engine = ENGINE_by_id((char *) value[1].data);
|
||||||
|
|
||||||
if (engine == NULL) {
|
if (engine == NULL) {
|
||||||
ngx_ssl_error(NGX_LOG_WARN, cf->log, 0,
|
ngx_ssl_error(NGX_LOG_WARN, cf->log, 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user