mirror of
https://github.com/nginx/nginx.git
synced 2025-08-05 22:26:15 +08:00
SSL: fixed build by Sun C with old OpenSSL versions.
Sun C complains about "statement not reached" if a "return" is followed by additional statements.
This commit is contained in:
parent
a38a8438b8
commit
797ac536fe
@ -4841,9 +4841,9 @@ ngx_http_grpc_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data)
|
||||
{
|
||||
#ifndef SSL_CONF_FLAG_FILE
|
||||
return "is not supported on this platform";
|
||||
#endif
|
||||
|
||||
#else
|
||||
return NGX_CONF_OK;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -4913,9 +4913,9 @@ ngx_http_proxy_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data)
|
||||
{
|
||||
#ifndef SSL_CONF_FLAG_FILE
|
||||
return "is not supported on this platform";
|
||||
#endif
|
||||
|
||||
#else
|
||||
return NGX_CONF_OK;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -1274,9 +1274,9 @@ ngx_http_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data)
|
||||
{
|
||||
#ifndef SSL_CONF_FLAG_FILE
|
||||
return "is not supported on this platform";
|
||||
#endif
|
||||
|
||||
#else
|
||||
return NGX_CONF_OK;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -2398,9 +2398,9 @@ ngx_http_uwsgi_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data)
|
||||
{
|
||||
#ifndef SSL_CONF_FLAG_FILE
|
||||
return "is not supported on this platform";
|
||||
#endif
|
||||
|
||||
#else
|
||||
return NGX_CONF_OK;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -682,7 +682,7 @@ ngx_mail_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data)
|
||||
{
|
||||
#ifndef SSL_CONF_FLAG_FILE
|
||||
return "is not supported on this platform";
|
||||
#endif
|
||||
|
||||
#else
|
||||
return NGX_CONF_OK;
|
||||
#endif
|
||||
}
|
||||
|
@ -1026,9 +1026,9 @@ ngx_stream_proxy_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data)
|
||||
{
|
||||
#ifndef SSL_CONF_FLAG_FILE
|
||||
return "is not supported on this platform";
|
||||
#endif
|
||||
|
||||
#else
|
||||
return NGX_CONF_OK;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -1061,9 +1061,9 @@ ngx_stream_ssl_conf_command_check(ngx_conf_t *cf, void *post, void *data)
|
||||
{
|
||||
#ifndef SSL_CONF_FLAG_FILE
|
||||
return "is not supported on this platform";
|
||||
#endif
|
||||
|
||||
#else
|
||||
return NGX_CONF_OK;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user