From 5d9bc065f556f7a15885ad342bf439c28ab3b60c Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 10 Dec 2002 22:04:44 +0000 Subject: [PATCH] Fix proto and avoid potential segfault on an error. --- ext/openssl/openssl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 321c6ac293..dad442e654 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -1543,7 +1543,7 @@ cleanup: } /* }}} */ -/* {{{ proto bool openssl_csr_new(array dn, resource &privkey [, array extraattribs, array configargs]) +/* {{{ proto bool openssl_csr_new(array dn, resource &privkey [, array configargs, array extraattribs]) Generates a privkey and CSR */ PHP_FUNCTION(openssl_csr_new) { @@ -2410,7 +2410,7 @@ PHP_FUNCTION(openssl_private_encrypt) padding) == cryptedlen); break; default: - zend_error(E_WARNING, "%s(): key type not supported in this PHP build!"); + zend_error(E_WARNING, "key type not supported in this PHP build!"); } if (successful) { @@ -2427,7 +2427,7 @@ PHP_FUNCTION(openssl_private_encrypt) } /* }}} */ -/* {{{ proto bool openssl_private_decrypt(string data, string decrypted, mixed key [, int padding]) +/* {{{ proto bool openssl_private_decrypt(string data, string &decrypted, mixed key [, int padding]) Decrypts data with private key */ PHP_FUNCTION(openssl_private_decrypt) { -- 2.50.1