提交 3bbecb0e 编写于 作者: T Thijs Wenker 提交者: Richard Levitte

Fix certificate version number in test

The version number 3 means version 4, while 2 means version 3. Since this is the v3nametest, version 3 should be used.

CLA: Trivial
Reviewed-by: NRich Salz <rsalz@openssl.org>
Reviewed-by: NRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3577)
上级 aef49268
...@@ -251,7 +251,7 @@ static X509 *make_cert() ...@@ -251,7 +251,7 @@ static X509 *make_cert()
if (!TEST_ptr(crt = X509_new())) if (!TEST_ptr(crt = X509_new()))
return NULL; return NULL;
if (!TEST_true(X509_set_version(crt, 3))) { if (!TEST_true(X509_set_version(crt, 2))) {
X509_free(crt); X509_free(crt);
return NULL; return NULL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册