Fossil SCM

c90 forbids mixed declarations and code error

rdb 2022-01-16 03:29 tls-server-fix
Commit ad66227c8de434ef2cf29d593f26ffeb6fdef6f8c3c4d3f400eef465e7b88e7c
1 file changed +1 -1
+1 -1
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -704,13 +704,13 @@
704704
** the PEM format). If there is no ssl-cert setting, then
705705
** a built-in self-signed cert is used.
706706
*/
707707
void ssl_init_server(const char *zCertFile, const char *zKeyFile){
708708
if( sslIsInit==0 ){
709
+ const char *zTlsCert;
709710
db_find_and_open_repository(OPEN_OK_NOT_FOUND|OPEN_SUBSTITUTE,0);
710711
db_open_config(1,0);
711
- const char *zTlsCert;
712712
SSL_library_init();
713713
SSL_load_error_strings();
714714
OpenSSL_add_all_algorithms();
715715
sslCtx = SSL_CTX_new(SSLv23_server_method());
716716
if( sslCtx==0 ){
717717
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button