Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 565654 Details for
Bug 678230
dev-lang/php-5.6.40 : /.../openssl.c:547:12: error: static declaration of RSA_set0_key follows non-static declaration
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
php-5.6.40-openssl11-libressl.patch
php-5.6.40-openssl11-libressl.patch (text/plain), 2.81 KB, created by
Thomas Deutschmann (RETIRED)
on 2019-02-17 15:14:29 UTC
(
hide
)
Description:
php-5.6.40-openssl11-libressl.patch
Filename:
MIME Type:
Creator:
Thomas Deutschmann (RETIRED)
Created:
2019-02-17 15:14:29 UTC
Size:
2.81 KB
patch
obsolete
>Based on https://svnweb.freebsd.org/ports/head/security/php56-openssl/files/patch-openssl11?view=markup&pathrev=482905 > >Bug: https://bugs.gentoo.org/678230 > >--- a/ext/openssl/openssl.c >+++ b/ext/openssl/openssl.c >@@ -538,7 +538,7 @@ ZEND_GET_MODULE(openssl) > #endif > > /* {{{ OpenSSL compatibility functions and macros */ >-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER) >+#if OPENSSL_VERSION_NUMBER < 0x10100000L > #define EVP_PKEY_get0_RSA(_pkey) _pkey->pkey.rsa > #define EVP_PKEY_get0_DH(_pkey) _pkey->pkey.dh > #define EVP_PKEY_get0_DSA(_pkey) _pkey->pkey.dsa >@@ -650,7 +650,7 @@ int DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key) > return 1; > } > >-#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined (LIBRESSL_VERSION_NUMBER) >+#if OPENSSL_VERSION_NUMBER < 0x10002000L > #define EVP_PKEY_id(_pkey) _pkey->type > #define EVP_PKEY_base_id(_key) EVP_PKEY_type(_key->type) > >@@ -1100,7 +1100,7 @@ static void php_openssl_dispose_config(struct php_x509_request * req TSRMLS_DC) > } > /* }}} */ > >-#if defined(PHP_WIN32) || (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) >+#if defined(PHP_WIN32) || OPENSSL_VERSION_NUMBER >= 0x10100000L > #define PHP_OPENSSL_RAND_ADD_TIME() ((void) 0) > #else > #define PHP_OPENSSL_RAND_ADD_TIME() php_openssl_rand_add_timeval() >@@ -1186,7 +1186,7 @@ static EVP_MD * php_openssl_get_evp_md_from_algo(long algo) { /* {{{ */ > mdtype = (EVP_MD *) EVP_md2(); > break; > #endif >-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER) >+#if OPENSSL_VERSION_NUMBER < 0x10100000L > case OPENSSL_ALGO_DSS1: > mdtype = (EVP_MD *) EVP_dss1(); > break; >@@ -1314,7 +1314,7 @@ PHP_MINIT_FUNCTION(openssl) > #ifdef HAVE_OPENSSL_MD2_H > REGISTER_LONG_CONSTANT("OPENSSL_ALGO_MD2", OPENSSL_ALGO_MD2, CONST_CS|CONST_PERSISTENT); > #endif >-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER) >+#if OPENSSL_VERSION_NUMBER < 0x10100000L > REGISTER_LONG_CONSTANT("OPENSSL_ALGO_DSS1", OPENSSL_ALGO_DSS1, CONST_CS|CONST_PERSISTENT); > #endif > #if OPENSSL_VERSION_NUMBER >= 0x0090708fL >@@ -3368,7 +3368,7 @@ PHP_FUNCTION(openssl_csr_get_public_key) > RETURN_FALSE; > } > >-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) >+#if OPENSSL_VERSION_NUMBER >= 0x10100000L > /* Due to changes in OpenSSL 1.1 related to locking when decoding CSR, > * the pub key is not changed after assigning. It means if we pass > * a private key, it will be returned including the private part. >@@ -3379,7 +3379,7 @@ PHP_FUNCTION(openssl_csr_get_public_key) > /* Retrieve the public key from the CSR */ > tpubkey = X509_REQ_get_pubkey(csr); > >-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) >+#if OPENSSL_VERSION_NUMBER >= 0x10100000L > /* We need to free the CSR as it was duplicated */ > X509_REQ_free(csr); > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 678230
:
565630
|
565632
|
565634
|
565636
|
565638
|
565640
| 565654