Skip to content

Commit 73b2c91

Browse files
committed
HSM: export php_openssl_x509_from_str()
Let's export it in order to design some calls from xp_ssl.
1 parent 840f27d commit 73b2c91

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ext/openssl/openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ PHP_FUNCTION(openssl_get_cert_locations)
13841384
}
13851385
/* }}} */
13861386

1387-
static X509 *php_openssl_x509_from_str(zend_string *cert_str) {
1387+
X509 *php_openssl_x509_from_str(zend_string *cert_str) {
13881388
X509 *cert = NULL;
13891389
BIO *in = NULL;
13901390

ext/openssl/php_openssl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ PHP_OPENSSL_API zend_string* php_openssl_decrypt(
110110
const char *aad, size_t aad_len);
111111
PHP_OPENSSL_API EVP_PKEY *php_openssl_pkey_from_zval(zval *val, int public_key,
112112
char *passphrase, size_t passphrase_len);
113+
PHP_OPENSSL_API X509 *php_openssl_x509_from_str(zend_string *cert_str);
113114

114115
/* OpenSSLCertificate class */
115116

0 commit comments

Comments
 (0)