Fossil SCM
c90 forbids mixed declarations and code error
Commit
ad66227c8de434ef2cf29d593f26ffeb6fdef6f8c3c4d3f400eef465e7b88e7c
Parent
9c68e9f8ca554e0…
1 file changed
+1
-1
+1
-1
| --- src/http_ssl.c | ||
| +++ src/http_ssl.c | ||
| @@ -704,13 +704,13 @@ | ||
| 704 | 704 | ** the PEM format). If there is no ssl-cert setting, then |
| 705 | 705 | ** a built-in self-signed cert is used. |
| 706 | 706 | */ |
| 707 | 707 | void ssl_init_server(const char *zCertFile, const char *zKeyFile){ |
| 708 | 708 | if( sslIsInit==0 ){ |
| 709 | + const char *zTlsCert; | |
| 709 | 710 | db_find_and_open_repository(OPEN_OK_NOT_FOUND|OPEN_SUBSTITUTE,0); |
| 710 | 711 | db_open_config(1,0); |
| 711 | - const char *zTlsCert; | |
| 712 | 712 | SSL_library_init(); |
| 713 | 713 | SSL_load_error_strings(); |
| 714 | 714 | OpenSSL_add_all_algorithms(); |
| 715 | 715 | sslCtx = SSL_CTX_new(SSLv23_server_method()); |
| 716 | 716 | if( sslCtx==0 ){ |
| 717 | 717 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -704,13 +704,13 @@ | |
| 704 | ** the PEM format). If there is no ssl-cert setting, then |
| 705 | ** a built-in self-signed cert is used. |
| 706 | */ |
| 707 | void ssl_init_server(const char *zCertFile, const char *zKeyFile){ |
| 708 | if( sslIsInit==0 ){ |
| 709 | db_find_and_open_repository(OPEN_OK_NOT_FOUND|OPEN_SUBSTITUTE,0); |
| 710 | db_open_config(1,0); |
| 711 | const char *zTlsCert; |
| 712 | SSL_library_init(); |
| 713 | SSL_load_error_strings(); |
| 714 | OpenSSL_add_all_algorithms(); |
| 715 | sslCtx = SSL_CTX_new(SSLv23_server_method()); |
| 716 | if( sslCtx==0 ){ |
| 717 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -704,13 +704,13 @@ | |
| 704 | ** the PEM format). If there is no ssl-cert setting, then |
| 705 | ** a built-in self-signed cert is used. |
| 706 | */ |
| 707 | void ssl_init_server(const char *zCertFile, const char *zKeyFile){ |
| 708 | if( sslIsInit==0 ){ |
| 709 | const char *zTlsCert; |
| 710 | db_find_and_open_repository(OPEN_OK_NOT_FOUND|OPEN_SUBSTITUTE,0); |
| 711 | db_open_config(1,0); |
| 712 | SSL_library_init(); |
| 713 | SSL_load_error_strings(); |
| 714 | OpenSSL_add_all_algorithms(); |
| 715 | sslCtx = SSL_CTX_new(SSLv23_server_method()); |
| 716 | if( sslCtx==0 ){ |
| 717 |