Fossil SCM

Since libressl abuses OPENSSL_VERSION_NUMBER, don't let fossil being confused by that.

jan.nijtmans 2019-05-23 06:44 trunk
Commit 5c40d6b0d4cbcafb8fc662465c4f76066a21ea4c38964e3d7e2bc8d8d277c26f
1 file changed +4 -1
+4 -1
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -387,11 +387,14 @@
387387
/* Set the Global.zIpAddr variable to the server we are talking to.
388388
** This is used to populate the ipaddr column of the rcvfrom table,
389389
** if any files are received from the server.
390390
*/
391391
{
392
-#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L
392
+ /* As soon as libressl implements BIO_ADDR_hostname_string/BIO_get_conn_address.
393
+ * check here for the correct LIBRESSL_VERSION_NUMBER too. For now: disable */
394
+ #if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L \
395
+ && !defined(LIBRESSL_VERSION_NUMBER)
393396
char *ip = BIO_ADDR_hostname_string(BIO_get_conn_address(iBio),1);
394397
g.zIpAddr = mprintf("%s", ip);
395398
OPENSSL_free(ip);
396399
#else
397400
/* IPv4 only code */
398401
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -387,11 +387,14 @@
387 /* Set the Global.zIpAddr variable to the server we are talking to.
388 ** This is used to populate the ipaddr column of the rcvfrom table,
389 ** if any files are received from the server.
390 */
391 {
392 #if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L
 
 
 
393 char *ip = BIO_ADDR_hostname_string(BIO_get_conn_address(iBio),1);
394 g.zIpAddr = mprintf("%s", ip);
395 OPENSSL_free(ip);
396 #else
397 /* IPv4 only code */
398
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -387,11 +387,14 @@
387 /* Set the Global.zIpAddr variable to the server we are talking to.
388 ** This is used to populate the ipaddr column of the rcvfrom table,
389 ** if any files are received from the server.
390 */
391 {
392 /* As soon as libressl implements BIO_ADDR_hostname_string/BIO_get_conn_address.
393 * check here for the correct LIBRESSL_VERSION_NUMBER too. For now: disable */
394 #if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L \
395 && !defined(LIBRESSL_VERSION_NUMBER)
396 char *ip = BIO_ADDR_hostname_string(BIO_get_conn_address(iBio),1);
397 g.zIpAddr = mprintf("%s", ip);
398 OPENSSL_free(ip);
399 #else
400 /* IPv4 only code */
401

Keyboard Shortcuts

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