]> granicus.if.org Git - php/commitdiff
fix linkage
authorAnatol Belski <ab@php.net>
Fri, 21 Feb 2014 22:09:16 +0000 (23:09 +0100)
committerAnatol Belski <ab@php.net>
Fri, 21 Feb 2014 22:09:16 +0000 (23:09 +0100)
"extern inline" looks like tricky case for portability, but extern
is required with VS. So reduce the case to a starndard one to avoid
unporbatibily.

ext/openssl/openssl.c
ext/openssl/xp_ssl.c

index c813a7ea29c394db4c5028e18fd5f1f29ce9ae8a..e649fca79573ceea55648dcca06c4f5f2bab400d 100755 (executable)
@@ -585,7 +585,7 @@ inline static int php_openssl_open_base_dir_chk(char *filename TSRMLS_DC)
 }
 /* }}} */
 
-inline php_stream* php_openssl_get_stream_from_ssl_handle(const SSL *ssl)
+php_stream* php_openssl_get_stream_from_ssl_handle(const SSL *ssl)
 {
        return (php_stream*)SSL_get_ex_data(ssl, ssl_stream_data_index);
 }
index 71664175a008c99ebb8edf63e3b703b25754986d..8971cdabc12fd94c2f7c4cbd8bf121ad8d582f31 100644 (file)
@@ -51,7 +51,7 @@
 
 int php_openssl_apply_verification_policy(SSL *ssl, X509 *peer, php_stream *stream TSRMLS_DC);
 SSL *php_SSL_new_from_context(SSL_CTX *ctx, php_stream *stream TSRMLS_DC);
-php_stream* php_openssl_get_stream_from_ssl_handle(const SSL *ssl);
+extern php_stream* php_openssl_get_stream_from_ssl_handle(const SSL *ssl);
 int php_openssl_get_x509_list_id(void);
 
 php_stream_ops php_openssl_socket_ops;