Fossil SCM
Disable the use of SSLv2 and SSLv3. Require TLS for HTTPS for security.
Commit
7a44fddd3f85902d4cef11cfcdd0fd162c6c357e
Parent
64ae69e172d6c76…
4 files changed
+2
-2
+1
+1
+1
+2
-2
| --- src/http_ssl.c | ||
| +++ src/http_ssl.c | ||
| @@ -99,12 +99,12 @@ | ||
| 99 | 99 | SSL_library_init(); |
| 100 | 100 | SSL_load_error_strings(); |
| 101 | 101 | ERR_load_BIO_strings(); |
| 102 | 102 | OpenSSL_add_all_algorithms(); |
| 103 | 103 | sslCtx = SSL_CTX_new(SSLv23_client_method()); |
| 104 | - /* Disable SSLv2 */ | |
| 105 | - SSL_CTX_set_options(sslCtx, SSL_OP_NO_SSLv2); | |
| 104 | + /* Disable SSLv2 and SSLv3 */ | |
| 105 | + SSL_CTX_set_options(sslCtx, SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3); | |
| 106 | 106 | |
| 107 | 107 | /* Set up acceptable CA root certificates */ |
| 108 | 108 | zCaSetting = db_get("ssl-ca-location", 0); |
| 109 | 109 | if( zCaSetting==0 || zCaSetting[0]=='\0' ){ |
| 110 | 110 | /* CA location not specified, use platform's default certificate store */ |
| 111 | 111 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -99,12 +99,12 @@ | |
| 99 | SSL_library_init(); |
| 100 | SSL_load_error_strings(); |
| 101 | ERR_load_BIO_strings(); |
| 102 | OpenSSL_add_all_algorithms(); |
| 103 | sslCtx = SSL_CTX_new(SSLv23_client_method()); |
| 104 | /* Disable SSLv2 */ |
| 105 | SSL_CTX_set_options(sslCtx, SSL_OP_NO_SSLv2); |
| 106 | |
| 107 | /* Set up acceptable CA root certificates */ |
| 108 | zCaSetting = db_get("ssl-ca-location", 0); |
| 109 | if( zCaSetting==0 || zCaSetting[0]=='\0' ){ |
| 110 | /* CA location not specified, use platform's default certificate store */ |
| 111 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -99,12 +99,12 @@ | |
| 99 | SSL_library_init(); |
| 100 | SSL_load_error_strings(); |
| 101 | ERR_load_BIO_strings(); |
| 102 | OpenSSL_add_all_algorithms(); |
| 103 | sslCtx = SSL_CTX_new(SSLv23_client_method()); |
| 104 | /* Disable SSLv2 and SSLv3 */ |
| 105 | SSL_CTX_set_options(sslCtx, SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3); |
| 106 | |
| 107 | /* Set up acceptable CA root certificates */ |
| 108 | zCaSetting = db_get("ssl-ca-location", 0); |
| 109 | if( zCaSetting==0 || zCaSetting[0]=='\0' ){ |
| 110 | /* CA location not specified, use platform's default certificate store */ |
| 111 |
+1
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -548,10 +548,11 @@ | ||
| 548 | 548 | SSLCONFIG = mingw64 |
| 549 | 549 | ZLIBCONFIG = |
| 550 | 550 | LIBTARGETS = |
| 551 | 551 | endif |
| 552 | 552 | |
| 553 | +SSLCONFIG += no-ssl2 no-ssl3 no-shared | |
| 553 | 554 | ifndef FOSSIL_ENABLE_MINIZ |
| 554 | 555 | SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib |
| 555 | 556 | endif |
| 556 | 557 | |
| 557 | 558 | #### The directories where the OpenSSL include and library files are located. |
| 558 | 559 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -548,10 +548,11 @@ | |
| 548 | SSLCONFIG = mingw64 |
| 549 | ZLIBCONFIG = |
| 550 | LIBTARGETS = |
| 551 | endif |
| 552 | |
| 553 | ifndef FOSSIL_ENABLE_MINIZ |
| 554 | SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib |
| 555 | endif |
| 556 | |
| 557 | #### The directories where the OpenSSL include and library files are located. |
| 558 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -548,10 +548,11 @@ | |
| 548 | SSLCONFIG = mingw64 |
| 549 | ZLIBCONFIG = |
| 550 | LIBTARGETS = |
| 551 | endif |
| 552 | |
| 553 | SSLCONFIG += no-ssl2 no-ssl3 no-shared |
| 554 | ifndef FOSSIL_ENABLE_MINIZ |
| 555 | SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib |
| 556 | endif |
| 557 | |
| 558 | #### The directories where the OpenSSL include and library files are located. |
| 559 |
+1
| --- win/Makefile.mingw | ||
| +++ win/Makefile.mingw | ||
| @@ -121,10 +121,11 @@ | ||
| 121 | 121 | SSLCONFIG = mingw64 |
| 122 | 122 | ZLIBCONFIG = |
| 123 | 123 | LIBTARGETS = |
| 124 | 124 | endif |
| 125 | 125 | |
| 126 | +SSLCONFIG += no-ssl2 no-ssl3 no-shared | |
| 126 | 127 | ifndef FOSSIL_ENABLE_MINIZ |
| 127 | 128 | SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib |
| 128 | 129 | endif |
| 129 | 130 | |
| 130 | 131 | #### The directories where the OpenSSL include and library files are located. |
| 131 | 132 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -121,10 +121,11 @@ | |
| 121 | SSLCONFIG = mingw64 |
| 122 | ZLIBCONFIG = |
| 123 | LIBTARGETS = |
| 124 | endif |
| 125 | |
| 126 | ifndef FOSSIL_ENABLE_MINIZ |
| 127 | SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib |
| 128 | endif |
| 129 | |
| 130 | #### The directories where the OpenSSL include and library files are located. |
| 131 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -121,10 +121,11 @@ | |
| 121 | SSLCONFIG = mingw64 |
| 122 | ZLIBCONFIG = |
| 123 | LIBTARGETS = |
| 124 | endif |
| 125 | |
| 126 | SSLCONFIG += no-ssl2 no-ssl3 no-shared |
| 127 | ifndef FOSSIL_ENABLE_MINIZ |
| 128 | SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib |
| 129 | endif |
| 130 | |
| 131 | #### The directories where the OpenSSL include and library files are located. |
| 132 |
| --- win/Makefile.mingw.mistachkin | ||
| +++ win/Makefile.mingw.mistachkin | ||
| @@ -121,10 +121,11 @@ | ||
| 121 | 121 | SSLCONFIG = mingw64 |
| 122 | 122 | ZLIBCONFIG = |
| 123 | 123 | LIBTARGETS = |
| 124 | 124 | endif |
| 125 | 125 | |
| 126 | +SSLCONFIG += no-ssl2 no-ssl3 no-shared | |
| 126 | 127 | ifndef FOSSIL_ENABLE_MINIZ |
| 127 | 128 | SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib |
| 128 | 129 | endif |
| 129 | 130 | |
| 130 | 131 | #### The directories where the OpenSSL include and library files are located. |
| 131 | 132 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -121,10 +121,11 @@ | |
| 121 | SSLCONFIG = mingw64 |
| 122 | ZLIBCONFIG = |
| 123 | LIBTARGETS = |
| 124 | endif |
| 125 | |
| 126 | ifndef FOSSIL_ENABLE_MINIZ |
| 127 | SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib |
| 128 | endif |
| 129 | |
| 130 | #### The directories where the OpenSSL include and library files are located. |
| 131 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -121,10 +121,11 @@ | |
| 121 | SSLCONFIG = mingw64 |
| 122 | ZLIBCONFIG = |
| 123 | LIBTARGETS = |
| 124 | endif |
| 125 | |
| 126 | SSLCONFIG += no-ssl2 no-ssl3 no-shared |
| 127 | ifndef FOSSIL_ENABLE_MINIZ |
| 128 | SSLCONFIG += --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib |
| 129 | endif |
| 130 | |
| 131 | #### The directories where the OpenSSL include and library files are located. |
| 132 |