]> granicus.if.org Git - php/commitdiff
Fix proto and avoid potential segfault on an error.
authorWez Furlong <wez@php.net>
Tue, 10 Dec 2002 22:04:44 +0000 (22:04 +0000)
committerWez Furlong <wez@php.net>
Tue, 10 Dec 2002 22:04:44 +0000 (22:04 +0000)
ext/openssl/openssl.c

index 321c6ac2938fbae21542639a97b217453d0ed95f..dad442e65458aab2a6cf687716f6fed49dd10e1d 100644 (file)
@@ -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)
 {