diff options
| author | kenjiro <> | 2026-02-08 22:33:14 +0000 |
|---|---|---|
| committer | kenjiro <> | 2026-02-08 22:33:14 +0000 |
| commit | d60e25f216aa14981cbcae98be231b0146e7ff2f (patch) | |
| tree | 2ea4c7d057d2651218fafd4be85320ba574e74bf /src/usr.bin/openssl | |
| parent | fbe52a57d923d0b51fc6d79f9ebda770455b831f (diff) | |
| download | openbsd-d60e25f216aa14981cbcae98be231b0146e7ff2f.tar.gz openbsd-d60e25f216aa14981cbcae98be231b0146e7ff2f.tar.bz2 openbsd-d60e25f216aa14981cbcae98be231b0146e7ff2f.zip | |
openssl x509: Remove legacy call to OBJ_create()
The OID 2.99999.3 is not required for x509 output handling and
is not referenced elsewhere. Remove the OBJ_create() call.
ok tb jsing
Diffstat (limited to 'src/usr.bin/openssl')
| -rw-r--r-- | src/usr.bin/openssl/x509.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/usr.bin/openssl/x509.c b/src/usr.bin/openssl/x509.c index 64f1a6df3e..819d426925 100644 --- a/src/usr.bin/openssl/x509.c +++ b/src/usr.bin/openssl/x509.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509.c,v 1.43 2026/02/08 22:25:16 kenjiro Exp $ */ | 1 | /* $OpenBSD: x509.c,v 1.44 2026/02/08 22:33:14 kenjiro Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -1014,9 +1014,6 @@ x509_main(int argc, char **argv) | |||
| 1014 | if (xca == NULL) | 1014 | if (xca == NULL) |
| 1015 | goto end; | 1015 | goto end; |
| 1016 | } | 1016 | } |
| 1017 | if (!cfg.noout || cfg.text || cfg.next_serial) { | ||
| 1018 | OBJ_create("2.99999.3", "SET.ex3", "SET x509v3 extension 3"); | ||
| 1019 | } | ||
| 1020 | if (cfg.alias != NULL) { | 1017 | if (cfg.alias != NULL) { |
| 1021 | if (!X509_alias_set1(x, (unsigned char *)cfg.alias, -1)) | 1018 | if (!X509_alias_set1(x, (unsigned char *)cfg.alias, -1)) |
| 1022 | goto end; | 1019 | goto end; |
