1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Fix build on 4.x

This commit is contained in:
Kirill Ponomarev 2004-12-16 21:40:45 +00:00
parent ddf2893c0c
commit 011874a373
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=124233
3 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,19 @@
--- src/util_ssl.c.orig Thu Dec 16 22:36:52 2004
+++ src/util_ssl.c Thu Dec 16 22:37:28 2004
@@ -210,6 +210,7 @@
#else /* ENABLE_GNUTLS */
+ DH *dh;
SSL_library_init();
gSSL_CTX = SSL_CTX_new (TLSv1_method ());
#if OPENSSL_VERSION_NUMBER >= 0x00905000L
@@ -221,7 +222,7 @@
if (prG->verbose & DEB_SSL)
SSL_CTX_set_info_callback (gSSL_CTX, (void (*)())openssl_info_callback);
- DH *dh = get_dh512 ();
+ dh = get_dh512 ();
if (!dh)
return -1;
SSL_CTX_set_tmp_dh (gSSL_CTX, dh);

View File

@ -0,0 +1,19 @@
--- src/util_ssl.c.orig Thu Dec 16 22:36:52 2004
+++ src/util_ssl.c Thu Dec 16 22:37:28 2004
@@ -210,6 +210,7 @@
#else /* ENABLE_GNUTLS */
+ DH *dh;
SSL_library_init();
gSSL_CTX = SSL_CTX_new (TLSv1_method ());
#if OPENSSL_VERSION_NUMBER >= 0x00905000L
@@ -221,7 +222,7 @@
if (prG->verbose & DEB_SSL)
SSL_CTX_set_info_callback (gSSL_CTX, (void (*)())openssl_info_callback);
- DH *dh = get_dh512 ();
+ dh = get_dh512 ();
if (!dh)
return -1;
SSL_CTX_set_tmp_dh (gSSL_CTX, dh);

View File

@ -0,0 +1,19 @@
--- src/util_ssl.c.orig Thu Dec 16 22:36:52 2004
+++ src/util_ssl.c Thu Dec 16 22:37:28 2004
@@ -210,6 +210,7 @@
#else /* ENABLE_GNUTLS */
+ DH *dh;
SSL_library_init();
gSSL_CTX = SSL_CTX_new (TLSv1_method ());
#if OPENSSL_VERSION_NUMBER >= 0x00905000L
@@ -221,7 +222,7 @@
if (prG->verbose & DEB_SSL)
SSL_CTX_set_info_callback (gSSL_CTX, (void (*)())openssl_info_callback);
- DH *dh = get_dh512 ();
+ dh = get_dh512 ();
if (!dh)
return -1;
SSL_CTX_set_tmp_dh (gSSL_CTX, dh);