SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
66
lang/swi-prolog/patches/patch-packages_ssl_ssl4pl_c
Normal file
66
lang/swi-prolog/patches/patch-packages_ssl_ssl4pl_c
Normal file
|
@ -0,0 +1,66 @@
|
|||
Index: packages/ssl/ssl4pl.c
|
||||
--- packages/ssl/ssl4pl.c.orig
|
||||
+++ packages/ssl/ssl4pl.c
|
||||
@@ -572,7 +572,7 @@ unify_name(term_t term, X509_NAME* name)
|
||||
return PL_unify_nil(list);
|
||||
}
|
||||
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
#define X509_REVOKED_get0_serialNumber(R) ((R)->serialNumber)
|
||||
#define X509_REVOKED_get0_revocationDate(R) ((R)->revocationDate)
|
||||
#define EVP_PKEY_base_id(key) ((key)->type)
|
||||
@@ -673,7 +673,7 @@ unify_crl(term_t term, X509_CRL* crl)
|
||||
static int
|
||||
unify_rsa(term_t item, RSA* rsa)
|
||||
{
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
return ( PL_unify_functor(item, FUNCTOR_rsa8) &&
|
||||
unify_bignum_arg(1, item, rsa->n) &&
|
||||
unify_bignum_arg(2, item, rsa->e) &&
|
||||
@@ -1762,7 +1762,7 @@ ssl_cb_cert_verify(int preverify_ok, X509_STORE_CTX *c
|
||||
4) Otherwise, FAIL.
|
||||
*/
|
||||
int i;
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
#define ASN1_STRING_get0_data(D) ASN1_STRING_data(D)
|
||||
#define X509_STORE_CTX_get0_cert(C) ((C)->cert)
|
||||
#endif
|
||||
@@ -2362,7 +2362,7 @@ get_dh2048(void)
|
||||
DH *dh = DH_new();
|
||||
if (dh == NULL) return NULL;
|
||||
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
dh->p=BN_bin2bn(dhp_2048,sizeof(dhp_2048),NULL);
|
||||
dh->g=BN_bin2bn(dhg_2048,sizeof(dhg_2048),NULL);
|
||||
if ((dh->p == NULL) || (dh->g == NULL))
|
||||
@@ -2612,7 +2612,7 @@ ssl_lib_init(void)
|
||||
* One-time library initialization code
|
||||
*/
|
||||
{
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
(void) SSL_library_init();
|
||||
SSL_load_error_strings();
|
||||
#endif
|
||||
@@ -3549,7 +3549,7 @@ pl_ssl_session(term_t stream_t, term_t session_t)
|
||||
!(session = SSL_get1_session(ssl)) )
|
||||
return PL_existence_error("ssl_session", stream_t);
|
||||
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
version = session->ssl_version;
|
||||
master_key = session->master_key;
|
||||
master_key_length = session->master_key_length;
|
||||
@@ -3585,7 +3585,7 @@ pl_ssl_session(term_t stream_t, term_t session_t)
|
||||
master_key_length, master_key) )
|
||||
goto err;
|
||||
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
if ( !add_key_string(list_t, FUNCTOR_session_id1,
|
||||
session->session_id_length, session->session_id) )
|
||||
goto err;
|
Loading…
Add table
Add a link
Reference in a new issue