Skip to content

Commit 847094e

Browse files
committed
export functions for win32 platforms
1 parent f50afc6 commit 847094e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

ext/openssl/openssl.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6595,7 +6595,7 @@ static int php_openssl_cipher_update(const EVP_CIPHER *cipher_type,
65956595
/* }}} */
65966596

65976597

6598-
int php_openssl_encrypt(char *data, size_t data_len, char *method, size_t method_len, char *password, size_t password_len, zend_long options, char *iv, size_t iv_len, zval *tag, zend_long tag_len, char *aad, size_t aad_len, zend_string **outbuf)
6598+
PHPAPI int php_openssl_encrypt(char *data, size_t data_len, char *method, size_t method_len, char *password, size_t password_len, zend_long options, char *iv, size_t iv_len, zval *tag, zend_long tag_len, char *aad, size_t aad_len, zend_string **outbuf)
65996599
{
66006600
const EVP_CIPHER *cipher_type;
66016601
EVP_CIPHER_CTX *cipher_ctx;
@@ -6706,7 +6706,7 @@ PHP_FUNCTION(openssl_encrypt)
67066706
}
67076707
/* }}} */
67086708

6709-
int php_openssl_decrypt(char *data, size_t data_len, char *method, size_t method_len, char *password, size_t password_len, zend_long options, char *iv, size_t iv_len, char *tag, zend_long tag_len, char *aad, size_t aad_len, zend_string **outbuf)
6709+
PHPAPI int php_openssl_decrypt(char *data, size_t data_len, char *method, size_t method_len, char *password, size_t password_len, zend_long options, char *iv, size_t iv_len, char *tag, zend_long tag_len, char *aad, size_t aad_len, zend_string **outbuf)
67106710
{
67116711
const EVP_CIPHER *cipher_type;
67126712
EVP_CIPHER_CTX *cipher_ctx;
@@ -6806,7 +6806,7 @@ PHP_FUNCTION(openssl_decrypt)
68066806
}
68076807
/* }}} */
68086808

6809-
int php_openssl_cipher_iv_length(char *method, zend_long *ret)
6809+
PHPAPI int php_openssl_cipher_iv_length(char *method, zend_long *ret)
68106810
{
68116811
const EVP_CIPHER *cipher_type;
68126812
*ret = 0;
@@ -6846,7 +6846,7 @@ PHP_FUNCTION(openssl_cipher_iv_length)
68466846
/* }}} */
68476847

68486848

6849-
int php_openssl_random_pseudo_bytes(zend_string **buffer, zend_long buffer_length)
6849+
PHPAPI int php_openssl_random_pseudo_bytes(zend_string **buffer, zend_long buffer_length)
68506850
{
68516851
if (buffer_length <= 0
68526852
#ifndef PHP_WIN32

ext/openssl/php_openssl.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ php_stream_transport_factory_func php_openssl_ssl_socket_factory;
8686

8787
void php_openssl_store_errors();
8888

89-
int php_openssl_cipher_iv_length(char *, zend_long *);
90-
int php_openssl_random_pseudo_bytes(zend_string **, zend_long);
91-
int php_openssl_encrypt(char *, size_t, char *, size_t, char *, size_t, zend_long, char *, size_t, zval *, zend_long, char *, size_t, zend_string **);
92-
int php_openssl_decrypt(char *, size_t, char *, size_t, char *, size_t, zend_long, char *, size_t, char *, zend_long, char *, size_t, zend_string **);
89+
PHPAPI int php_openssl_cipher_iv_length(char *, zend_long *);
90+
PHPAPI int php_openssl_random_pseudo_bytes(zend_string **, zend_long);
91+
PHPAPI int php_openssl_encrypt(char *, size_t, char *, size_t, char *, size_t, zend_long, char *, size_t, zval *, zend_long, char *, size_t, zend_string **);
92+
PHPAPI int php_openssl_decrypt(char *, size_t, char *, size_t, char *, size_t, zend_long, char *, size_t, char *, zend_long, char *, size_t, zend_string **);
9393

9494
PHP_MINIT_FUNCTION(openssl);
9595
PHP_MSHUTDOWN_FUNCTION(openssl);

0 commit comments

Comments
 (0)