pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/ndossche/php-src/commit/e2b61eccb9ffda6d43d14962b5eaa19c2da3de87

2350aeda.css" /> Followup on 0ec147d3 for another place · ndossche/php-src@e2b61ec · GitHub
Skip to content

Commit e2b61ec

Browse files
committed
Followup on 0ec147d for another place
which requires also to move the macros into the header (cherry picked from commit b7eb2c0)
1 parent 6918a68 commit e2b61ec

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

ext/openssl/openssl.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,6 @@
8787
#define HAVE_EVP_PKEY_EC 1
8888
#endif
8989

90-
#ifdef PHP_WIN32
91-
#define PHP_OPENSSL_BIO_MODE_R(flags) (((flags) & PKCS7_BINARY) ? "rb" : "r")
92-
#define PHP_OPENSSL_BIO_MODE_W(flags) (((flags) & PKCS7_BINARY) ? "wb" : "w")
93-
#else
94-
#define PHP_OPENSSL_BIO_MODE_R(flags) "r"
95-
#define PHP_OPENSSL_BIO_MODE_W(flags) "w"
96-
#endif
97-
9890
ZEND_DECLARE_MODULE_GLOBALS(openssl)
9991

10092
/* FIXME: Use the openssl constants instead of

ext/openssl/php_openssl.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,15 @@ PHP_FUNCTION(openssl_spki_export);
127127
PHP_FUNCTION(openssl_spki_export_challenge);
128128

129129
PHP_FUNCTION(openssl_get_cert_locations);
130+
131+
#ifdef PHP_WIN32
132+
#define PHP_OPENSSL_BIO_MODE_R(flags) (((flags) & PKCS7_BINARY) ? "rb" : "r")
133+
#define PHP_OPENSSL_BIO_MODE_W(flags) (((flags) & PKCS7_BINARY) ? "wb" : "w")
134+
#else
135+
#define PHP_OPENSSL_BIO_MODE_R(flags) "r"
136+
#define PHP_OPENSSL_BIO_MODE_W(flags) "w"
137+
#endif
138+
130139
#else
131140

132141
#define phpext_openssl_ptr NULL

ext/openssl/xp_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ static int set_server_dh_param(php_stream * stream, SSL_CTX *ctx) /* {{{ */
11701170
}
11711171

11721172
convert_to_string_ex(zdhpath);
1173-
bio = BIO_new_file(Z_STRVAL_P(zdhpath), "r");
1173+
bio = BIO_new_file(Z_STRVAL_P(zdhpath), PHP_OPENSSL_BIO_MODE_R(PKCS7_BINARY));
11741174

11751175
if (bio == NULL) {
11761176
php_error_docref(NULL, E_WARNING, "invalid dh_param");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy