From: Wez Furlong Date: Tue, 10 Dec 2002 22:04:44 +0000 (+0000) Subject: Fix proto and avoid potential segfault on an error. X-Git-Tag: php-4.3.0RC3~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d9bc065f556f7a15885ad342bf439c28ab3b60c;p=php Fix proto and avoid potential segfault on an error. --- 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) {