Browse Source

Fixed certificate version (counting begins with 0, so 2 means version 3).

PEAR_1_4DEV
Stefan Roehrich 23 years ago
parent
commit
80ee75f11e
  1. 2
      ext/openssl/openssl.c

2
ext/openssl/openssl.c

@ -1532,7 +1532,7 @@ PHP_FUNCTION(openssl_csr_sign)
goto cleanup; goto cleanup;
} }
/* Version 3 cert */ /* Version 3 cert */
if (!X509_set_version(new_cert, 3))
if (!X509_set_version(new_cert, 2))
goto cleanup; goto cleanup;
/* TODO: Allow specifying */ /* TODO: Allow specifying */

Loading…
Cancel
Save