From 3bbecb0e9390a7a5af15508549c4ff1c7db9cd5d Mon Sep 17 00:00:00 2001 From: Thijs Wenker Date: Mon, 29 May 2017 02:55:43 +0200 Subject: [PATCH] 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: Rich Salz Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/3577) --- test/v3nametest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/v3nametest.c b/test/v3nametest.c index cb7b799aec..aaeab547cd 100644 --- a/test/v3nametest.c +++ b/test/v3nametest.c @@ -251,7 +251,7 @@ static X509 *make_cert() if (!TEST_ptr(crt = X509_new())) return NULL; - if (!TEST_true(X509_set_version(crt, 3))) { + if (!TEST_true(X509_set_version(crt, 2))) { X509_free(crt); return NULL; }