ngx_ssl_certificate(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_str_t *cert,
ngx_str_t *key)
{
- if (ngx_conf_full_name(cf->cycle, cert, 1) == NGX_ERROR) {
+ if (ngx_conf_full_name(cf->cycle, cert, 1) != NGX_OK) {
return NGX_ERROR;
}
return NGX_ERROR;
}
- if (ngx_conf_full_name(cf->cycle, key, 1) == NGX_ERROR) {
+ if (ngx_conf_full_name(cf->cycle, key, 1) != NGX_OK) {
return NGX_ERROR;
}
return NGX_OK;
}
- if (ngx_conf_full_name(cf->cycle, cert, 1) == NGX_ERROR) {
+ if (ngx_conf_full_name(cf->cycle, cert, 1) != NGX_OK) {
return NGX_ERROR;
}
return NGX_OK;
}
- if (ngx_conf_full_name(cf->cycle, file, 1) == NGX_ERROR) {
+ if (ngx_conf_full_name(cf->cycle, file, 1) != NGX_OK) {
return NGX_ERROR;
}