Fossil SCM
Update referenced OpenSSL version
Commit
958f1a89dc720e96687be38864479b35833fbeb0
Parent
db59821f890cf66…
6 files changed
+2
-2
+2
-2
+1
-1
+1
-1
+1
-1
+1
-1
+2
-2
| --- src/http_ssl.c | ||
| +++ src/http_ssl.c | ||
| @@ -294,11 +294,11 @@ | ||
| 294 | 294 | |
| 295 | 295 | SSL_set_mode(ssl, SSL_MODE_AUTO_RETRY); |
| 296 | 296 | |
| 297 | 297 | if( !pUrlData->useProxy ){ |
| 298 | 298 | BIO_set_conn_hostname(iBio, pUrlData->name); |
| 299 | - BIO_set_conn_int_port(iBio, &pUrlData->port); | |
| 299 | + BIO_ctrl(iBio,BIO_C_SET_CONNECT,3,(char *)&pUrlData->port); | |
| 300 | 300 | if( BIO_do_connect(iBio)<=0 ){ |
| 301 | 301 | ssl_set_errmsg("SSL: cannot connect to host %s:%d (%s)", |
| 302 | 302 | pUrlData->name, pUrlData->port, ERR_reason_error_string(ERR_get_error())); |
| 303 | 303 | ssl_close(); |
| 304 | 304 | return 1; |
| @@ -389,11 +389,11 @@ | ||
| 389 | 389 | ** This is used to populate the ipaddr column of the rcvfrom table, |
| 390 | 390 | ** if any files are received from the server. |
| 391 | 391 | */ |
| 392 | 392 | { |
| 393 | 393 | /* IPv4 only code */ |
| 394 | - const unsigned char *ip = (const unsigned char *) BIO_get_conn_ip(iBio); | |
| 394 | + const unsigned char *ip = (const unsigned char *) BIO_ptr_ctrl(iBio,BIO_C_GET_CONNECT,2); | |
| 395 | 395 | g.zIpAddr = mprintf("%d.%d.%d.%d", ip[0], ip[1], ip[2], ip[3]); |
| 396 | 396 | } |
| 397 | 397 | |
| 398 | 398 | X509_free(cert); |
| 399 | 399 | return 0; |
| 400 | 400 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -294,11 +294,11 @@ | |
| 294 | |
| 295 | SSL_set_mode(ssl, SSL_MODE_AUTO_RETRY); |
| 296 | |
| 297 | if( !pUrlData->useProxy ){ |
| 298 | BIO_set_conn_hostname(iBio, pUrlData->name); |
| 299 | BIO_set_conn_int_port(iBio, &pUrlData->port); |
| 300 | if( BIO_do_connect(iBio)<=0 ){ |
| 301 | ssl_set_errmsg("SSL: cannot connect to host %s:%d (%s)", |
| 302 | pUrlData->name, pUrlData->port, ERR_reason_error_string(ERR_get_error())); |
| 303 | ssl_close(); |
| 304 | return 1; |
| @@ -389,11 +389,11 @@ | |
| 389 | ** This is used to populate the ipaddr column of the rcvfrom table, |
| 390 | ** if any files are received from the server. |
| 391 | */ |
| 392 | { |
| 393 | /* IPv4 only code */ |
| 394 | const unsigned char *ip = (const unsigned char *) BIO_get_conn_ip(iBio); |
| 395 | g.zIpAddr = mprintf("%d.%d.%d.%d", ip[0], ip[1], ip[2], ip[3]); |
| 396 | } |
| 397 | |
| 398 | X509_free(cert); |
| 399 | return 0; |
| 400 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -294,11 +294,11 @@ | |
| 294 | |
| 295 | SSL_set_mode(ssl, SSL_MODE_AUTO_RETRY); |
| 296 | |
| 297 | if( !pUrlData->useProxy ){ |
| 298 | BIO_set_conn_hostname(iBio, pUrlData->name); |
| 299 | BIO_ctrl(iBio,BIO_C_SET_CONNECT,3,(char *)&pUrlData->port); |
| 300 | if( BIO_do_connect(iBio)<=0 ){ |
| 301 | ssl_set_errmsg("SSL: cannot connect to host %s:%d (%s)", |
| 302 | pUrlData->name, pUrlData->port, ERR_reason_error_string(ERR_get_error())); |
| 303 | ssl_close(); |
| 304 | return 1; |
| @@ -389,11 +389,11 @@ | |
| 389 | ** This is used to populate the ipaddr column of the rcvfrom table, |
| 390 | ** if any files are received from the server. |
| 391 | */ |
| 392 | { |
| 393 | /* IPv4 only code */ |
| 394 | const unsigned char *ip = (const unsigned char *) BIO_ptr_ctrl(iBio,BIO_C_GET_CONNECT,2); |
| 395 | g.zIpAddr = mprintf("%d.%d.%d.%d", ip[0], ip[1], ip[2], ip[3]); |
| 396 | } |
| 397 | |
| 398 | X509_free(cert); |
| 399 | return 0; |
| 400 |
+2
-2
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -661,11 +661,11 @@ | ||
| 661 | 661 | #### The directories where the OpenSSL include and library files are located. |
| 662 | 662 | # The recommended usage here is to use the Sysinternals junction tool |
| 663 | 663 | # to create a hard link between an "openssl-1.x" sub-directory of the |
| 664 | 664 | # Fossil source code directory and the target OpenSSL source directory. |
| 665 | 665 | # |
| 666 | -OPENSSLDIR = $(SRCDIR)/../compat/openssl-1.0.2h | |
| 666 | +OPENSSLDIR = $(SRCDIR)/../compat/openssl-1.1.0 | |
| 667 | 667 | OPENSSLINCDIR = $(OPENSSLDIR)/include |
| 668 | 668 | OPENSSLLIBDIR = $(OPENSSLDIR) |
| 669 | 669 | |
| 670 | 670 | #### Either the directory where the Tcl library is installed or the Tcl |
| 671 | 671 | # source code directory resides (depending on the value of the macro |
| @@ -1491,11 +1491,11 @@ | ||
| 1491 | 1491 | !ifndef USE_SEE |
| 1492 | 1492 | USE_SEE = 0 |
| 1493 | 1493 | !endif |
| 1494 | 1494 | |
| 1495 | 1495 | !if $(FOSSIL_ENABLE_SSL)!=0 |
| 1496 | -SSLDIR = $(B)\compat\openssl-1.0.2h | |
| 1496 | +SSLDIR = $(B)\compat\openssl-1.1.0 | |
| 1497 | 1497 | SSLINCDIR = $(SSLDIR)\inc32 |
| 1498 | 1498 | !if $(FOSSIL_DYNAMIC_BUILD)!=0 |
| 1499 | 1499 | SSLLIBDIR = $(SSLDIR)\out32dll |
| 1500 | 1500 | !else |
| 1501 | 1501 | SSLLIBDIR = $(SSLDIR)\out32 |
| 1502 | 1502 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -661,11 +661,11 @@ | |
| 661 | #### The directories where the OpenSSL include and library files are located. |
| 662 | # The recommended usage here is to use the Sysinternals junction tool |
| 663 | # to create a hard link between an "openssl-1.x" sub-directory of the |
| 664 | # Fossil source code directory and the target OpenSSL source directory. |
| 665 | # |
| 666 | OPENSSLDIR = $(SRCDIR)/../compat/openssl-1.0.2h |
| 667 | OPENSSLINCDIR = $(OPENSSLDIR)/include |
| 668 | OPENSSLLIBDIR = $(OPENSSLDIR) |
| 669 | |
| 670 | #### Either the directory where the Tcl library is installed or the Tcl |
| 671 | # source code directory resides (depending on the value of the macro |
| @@ -1491,11 +1491,11 @@ | |
| 1491 | !ifndef USE_SEE |
| 1492 | USE_SEE = 0 |
| 1493 | !endif |
| 1494 | |
| 1495 | !if $(FOSSIL_ENABLE_SSL)!=0 |
| 1496 | SSLDIR = $(B)\compat\openssl-1.0.2h |
| 1497 | SSLINCDIR = $(SSLDIR)\inc32 |
| 1498 | !if $(FOSSIL_DYNAMIC_BUILD)!=0 |
| 1499 | SSLLIBDIR = $(SSLDIR)\out32dll |
| 1500 | !else |
| 1501 | SSLLIBDIR = $(SSLDIR)\out32 |
| 1502 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -661,11 +661,11 @@ | |
| 661 | #### The directories where the OpenSSL include and library files are located. |
| 662 | # The recommended usage here is to use the Sysinternals junction tool |
| 663 | # to create a hard link between an "openssl-1.x" sub-directory of the |
| 664 | # Fossil source code directory and the target OpenSSL source directory. |
| 665 | # |
| 666 | OPENSSLDIR = $(SRCDIR)/../compat/openssl-1.1.0 |
| 667 | OPENSSLINCDIR = $(OPENSSLDIR)/include |
| 668 | OPENSSLLIBDIR = $(OPENSSLDIR) |
| 669 | |
| 670 | #### Either the directory where the Tcl library is installed or the Tcl |
| 671 | # source code directory resides (depending on the value of the macro |
| @@ -1491,11 +1491,11 @@ | |
| 1491 | !ifndef USE_SEE |
| 1492 | USE_SEE = 0 |
| 1493 | !endif |
| 1494 | |
| 1495 | !if $(FOSSIL_ENABLE_SSL)!=0 |
| 1496 | SSLDIR = $(B)\compat\openssl-1.1.0 |
| 1497 | SSLINCDIR = $(SSLDIR)\inc32 |
| 1498 | !if $(FOSSIL_DYNAMIC_BUILD)!=0 |
| 1499 | SSLLIBDIR = $(SSLDIR)\out32dll |
| 1500 | !else |
| 1501 | SSLLIBDIR = $(SSLDIR)\out32 |
| 1502 |
+1
-1
| --- win/Makefile.mingw | ||
| +++ win/Makefile.mingw | ||
| @@ -170,11 +170,11 @@ | ||
| 170 | 170 | #### The directories where the OpenSSL include and library files are located. |
| 171 | 171 | # The recommended usage here is to use the Sysinternals junction tool |
| 172 | 172 | # to create a hard link between an "openssl-1.x" sub-directory of the |
| 173 | 173 | # Fossil source code directory and the target OpenSSL source directory. |
| 174 | 174 | # |
| 175 | -OPENSSLDIR = $(SRCDIR)/../compat/openssl-1.0.2h | |
| 175 | +OPENSSLDIR = $(SRCDIR)/../compat/openssl-1.1.0 | |
| 176 | 176 | OPENSSLINCDIR = $(OPENSSLDIR)/include |
| 177 | 177 | OPENSSLLIBDIR = $(OPENSSLDIR) |
| 178 | 178 | |
| 179 | 179 | #### Either the directory where the Tcl library is installed or the Tcl |
| 180 | 180 | # source code directory resides (depending on the value of the macro |
| 181 | 181 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -170,11 +170,11 @@ | |
| 170 | #### The directories where the OpenSSL include and library files are located. |
| 171 | # The recommended usage here is to use the Sysinternals junction tool |
| 172 | # to create a hard link between an "openssl-1.x" sub-directory of the |
| 173 | # Fossil source code directory and the target OpenSSL source directory. |
| 174 | # |
| 175 | OPENSSLDIR = $(SRCDIR)/../compat/openssl-1.0.2h |
| 176 | OPENSSLINCDIR = $(OPENSSLDIR)/include |
| 177 | OPENSSLLIBDIR = $(OPENSSLDIR) |
| 178 | |
| 179 | #### Either the directory where the Tcl library is installed or the Tcl |
| 180 | # source code directory resides (depending on the value of the macro |
| 181 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -170,11 +170,11 @@ | |
| 170 | #### The directories where the OpenSSL include and library files are located. |
| 171 | # The recommended usage here is to use the Sysinternals junction tool |
| 172 | # to create a hard link between an "openssl-1.x" sub-directory of the |
| 173 | # Fossil source code directory and the target OpenSSL source directory. |
| 174 | # |
| 175 | OPENSSLDIR = $(SRCDIR)/../compat/openssl-1.1.0 |
| 176 | OPENSSLINCDIR = $(OPENSSLDIR)/include |
| 177 | OPENSSLLIBDIR = $(OPENSSLDIR) |
| 178 | |
| 179 | #### Either the directory where the Tcl library is installed or the Tcl |
| 180 | # source code directory resides (depending on the value of the macro |
| 181 |
+1
-1
| --- win/Makefile.mingw.mistachkin | ||
| +++ win/Makefile.mingw.mistachkin | ||
| @@ -170,11 +170,11 @@ | ||
| 170 | 170 | #### The directories where the OpenSSL include and library files are located. |
| 171 | 171 | # The recommended usage here is to use the Sysinternals junction tool |
| 172 | 172 | # to create a hard link between an "openssl-1.x" sub-directory of the |
| 173 | 173 | # Fossil source code directory and the target OpenSSL source directory. |
| 174 | 174 | # |
| 175 | -OPENSSLDIR = $(SRCDIR)/../compat/openssl-1.0.2h | |
| 175 | +OPENSSLDIR = $(SRCDIR)/../compat/openssl-1.1.0 | |
| 176 | 176 | OPENSSLINCDIR = $(OPENSSLDIR)/include |
| 177 | 177 | OPENSSLLIBDIR = $(OPENSSLDIR) |
| 178 | 178 | |
| 179 | 179 | #### Either the directory where the Tcl library is installed or the Tcl |
| 180 | 180 | # source code directory resides (depending on the value of the macro |
| 181 | 181 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -170,11 +170,11 @@ | |
| 170 | #### The directories where the OpenSSL include and library files are located. |
| 171 | # The recommended usage here is to use the Sysinternals junction tool |
| 172 | # to create a hard link between an "openssl-1.x" sub-directory of the |
| 173 | # Fossil source code directory and the target OpenSSL source directory. |
| 174 | # |
| 175 | OPENSSLDIR = $(SRCDIR)/../compat/openssl-1.0.2h |
| 176 | OPENSSLINCDIR = $(OPENSSLDIR)/include |
| 177 | OPENSSLLIBDIR = $(OPENSSLDIR) |
| 178 | |
| 179 | #### Either the directory where the Tcl library is installed or the Tcl |
| 180 | # source code directory resides (depending on the value of the macro |
| 181 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -170,11 +170,11 @@ | |
| 170 | #### The directories where the OpenSSL include and library files are located. |
| 171 | # The recommended usage here is to use the Sysinternals junction tool |
| 172 | # to create a hard link between an "openssl-1.x" sub-directory of the |
| 173 | # Fossil source code directory and the target OpenSSL source directory. |
| 174 | # |
| 175 | OPENSSLDIR = $(SRCDIR)/../compat/openssl-1.1.0 |
| 176 | OPENSSLINCDIR = $(OPENSSLDIR)/include |
| 177 | OPENSSLLIBDIR = $(OPENSSLDIR) |
| 178 | |
| 179 | #### Either the directory where the Tcl library is installed or the Tcl |
| 180 | # source code directory resides (depending on the value of the macro |
| 181 |
+1
-1
| --- win/Makefile.msc | ||
| +++ win/Makefile.msc | ||
| @@ -98,11 +98,11 @@ | ||
| 98 | 98 | !ifndef USE_SEE |
| 99 | 99 | USE_SEE = 0 |
| 100 | 100 | !endif |
| 101 | 101 | |
| 102 | 102 | !if $(FOSSIL_ENABLE_SSL)!=0 |
| 103 | -SSLDIR = $(B)\compat\openssl-1.0.2h | |
| 103 | +SSLDIR = $(B)\compat\openssl-1.1.0 | |
| 104 | 104 | SSLINCDIR = $(SSLDIR)\inc32 |
| 105 | 105 | !if $(FOSSIL_DYNAMIC_BUILD)!=0 |
| 106 | 106 | SSLLIBDIR = $(SSLDIR)\out32dll |
| 107 | 107 | !else |
| 108 | 108 | SSLLIBDIR = $(SSLDIR)\out32 |
| 109 | 109 |
| --- win/Makefile.msc | |
| +++ win/Makefile.msc | |
| @@ -98,11 +98,11 @@ | |
| 98 | !ifndef USE_SEE |
| 99 | USE_SEE = 0 |
| 100 | !endif |
| 101 | |
| 102 | !if $(FOSSIL_ENABLE_SSL)!=0 |
| 103 | SSLDIR = $(B)\compat\openssl-1.0.2h |
| 104 | SSLINCDIR = $(SSLDIR)\inc32 |
| 105 | !if $(FOSSIL_DYNAMIC_BUILD)!=0 |
| 106 | SSLLIBDIR = $(SSLDIR)\out32dll |
| 107 | !else |
| 108 | SSLLIBDIR = $(SSLDIR)\out32 |
| 109 |
| --- win/Makefile.msc | |
| +++ win/Makefile.msc | |
| @@ -98,11 +98,11 @@ | |
| 98 | !ifndef USE_SEE |
| 99 | USE_SEE = 0 |
| 100 | !endif |
| 101 | |
| 102 | !if $(FOSSIL_ENABLE_SSL)!=0 |
| 103 | SSLDIR = $(B)\compat\openssl-1.1.0 |
| 104 | SSLINCDIR = $(SSLDIR)\inc32 |
| 105 | !if $(FOSSIL_DYNAMIC_BUILD)!=0 |
| 106 | SSLLIBDIR = $(SSLDIR)\out32dll |
| 107 | !else |
| 108 | SSLLIBDIR = $(SSLDIR)\out32 |
| 109 |
+1
-1
| --- www/build.wiki | ||
| +++ www/build.wiki | ||
| @@ -141,11 +141,11 @@ | ||
| 141 | 141 | the optional <a href="https://www.openssl.org/">OpenSSL</a> support, |
| 142 | 142 | first <a href="https://www.openssl.org/source/">download the official |
| 143 | 143 | source code for OpenSSL</a> and extract it to an appropriately named |
| 144 | 144 | "<b>openssl-X.Y.ZA</b>" subdirectory within the local |
| 145 | 145 | [/tree?ci=trunk&name=compat | compat] directory (e.g. |
| 146 | -"<b>compat/openssl-1.0.2h</b>"), then make sure that some recent | |
| 146 | +"<b>compat/openssl-1.1.0</b>"), then make sure that some recent | |
| 147 | 147 | <a href="http://www.perl.org/">Perl</a> binaries are installed locally, |
| 148 | 148 | and finally run one of the following commands: |
| 149 | 149 | <blockquote><pre> |
| 150 | 150 | nmake /f Makefile.msc FOSSIL_ENABLE_SSL=1 FOSSIL_BUILD_SSL=1 PERLDIR=C:\full\path\to\Perl\bin |
| 151 | 151 | </pre></blockquote> |
| 152 | 152 |
| --- www/build.wiki | |
| +++ www/build.wiki | |
| @@ -141,11 +141,11 @@ | |
| 141 | the optional <a href="https://www.openssl.org/">OpenSSL</a> support, |
| 142 | first <a href="https://www.openssl.org/source/">download the official |
| 143 | source code for OpenSSL</a> and extract it to an appropriately named |
| 144 | "<b>openssl-X.Y.ZA</b>" subdirectory within the local |
| 145 | [/tree?ci=trunk&name=compat | compat] directory (e.g. |
| 146 | "<b>compat/openssl-1.0.2h</b>"), then make sure that some recent |
| 147 | <a href="http://www.perl.org/">Perl</a> binaries are installed locally, |
| 148 | and finally run one of the following commands: |
| 149 | <blockquote><pre> |
| 150 | nmake /f Makefile.msc FOSSIL_ENABLE_SSL=1 FOSSIL_BUILD_SSL=1 PERLDIR=C:\full\path\to\Perl\bin |
| 151 | </pre></blockquote> |
| 152 |
| --- www/build.wiki | |
| +++ www/build.wiki | |
| @@ -141,11 +141,11 @@ | |
| 141 | the optional <a href="https://www.openssl.org/">OpenSSL</a> support, |
| 142 | first <a href="https://www.openssl.org/source/">download the official |
| 143 | source code for OpenSSL</a> and extract it to an appropriately named |
| 144 | "<b>openssl-X.Y.ZA</b>" subdirectory within the local |
| 145 | [/tree?ci=trunk&name=compat | compat] directory (e.g. |
| 146 | "<b>compat/openssl-1.1.0</b>"), then make sure that some recent |
| 147 | <a href="http://www.perl.org/">Perl</a> binaries are installed locally, |
| 148 | and finally run one of the following commands: |
| 149 | <blockquote><pre> |
| 150 | nmake /f Makefile.msc FOSSIL_ENABLE_SSL=1 FOSSIL_BUILD_SSL=1 PERLDIR=C:\full\path\to\Perl\bin |
| 151 | </pre></blockquote> |
| 152 |