diff options
author | Thijs Wenker <me@thoys.nl> | 2017-05-29 02:55:43 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-05-29 16:35:43 +0200 |
commit | 3bbecb0e9390a7a5af15508549c4ff1c7db9cd5d (patch) | |
tree | e41734f248034bd9de90fd46f62d11bb3776b39f /test/v3nametest.c | |
parent | Revert "Add internal functions to fetch a refcount" (diff) | |
download | openssl-3bbecb0e9390a7a5af15508549c4ff1c7db9cd5d.tar.xz openssl-3bbecb0e9390a7a5af15508549c4ff1c7db9cd5d.zip |
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 <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3577)
Diffstat (limited to 'test/v3nametest.c')
-rw-r--r-- | test/v3nametest.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |