]> granicus.if.org Git - php/commitdiff
Fixed certificate version (counting begins with 0, so 2 means version 3).
authorStefan Roehrich <sr@php.net>
Sun, 13 Jul 2003 09:38:32 +0000 (09:38 +0000)
committerStefan Roehrich <sr@php.net>
Sun, 13 Jul 2003 09:38:32 +0000 (09:38 +0000)
ext/openssl/openssl.c

index 366d418da53ce65bdf0d49660832111d299af396..7014886fee501c6d214ef93a69ecc37a0f2834c5 100644 (file)
@@ -1532,7 +1532,7 @@ PHP_FUNCTION(openssl_csr_sign)
                goto cleanup;
        }
        /* Version 3 cert */
-       if (!X509_set_version(new_cert, 3))
+       if (!X509_set_version(new_cert, 2))
                goto cleanup;
 
        /* TODO: Allow specifying */