diff options
author | tb <> | 2023-11-13 15:38:09 +0000 |
---|---|---|
committer | tb <> | 2023-11-13 15:38:09 +0000 |
commit | c81a397118f84b9603c5ab759c01abcaf63b78fa (patch) | |
tree | bee69edb55bf28bab9a9a333ffb92236643c8d3d /src/lib | |
parent | b7e820711e5fb068e2744d5970cf5cc80cc2b70f (diff) | |
download | openbsd-c81a397118f84b9603c5ab759c01abcaf63b78fa.tar.gz openbsd-c81a397118f84b9603c5ab759c01abcaf63b78fa.tar.bz2 openbsd-c81a397118f84b9603c5ab759c01abcaf63b78fa.zip |
Use X509_get_signature_nid() instead of inlining it
ok beck jsing
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/x509/x509type.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509type.c b/src/lib/libcrypto/x509/x509type.c index 91e1fe8f32..f713abde8f 100644 --- a/src/lib/libcrypto/x509/x509type.c +++ b/src/lib/libcrypto/x509/x509type.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509type.c,v 1.20 2023/11/13 15:36:55 tb Exp $ */ | 1 | /* $OpenBSD: x509type.c,v 1.21 2023/11/13 15:38:09 tb 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 | * |
@@ -106,7 +106,7 @@ X509_certificate_type(const X509 *x, const EVP_PKEY *pkey) | |||
106 | break; | 106 | break; |
107 | } | 107 | } |
108 | 108 | ||
109 | i = OBJ_obj2nid(x->sig_alg->algorithm); | 109 | i = X509_get_signature_nid(x); |
110 | if (i && OBJ_find_sigid_algs(i, NULL, &i)) { | 110 | if (i && OBJ_find_sigid_algs(i, NULL, &i)) { |
111 | switch (i) { | 111 | switch (i) { |
112 | case NID_rsaEncryption: | 112 | case NID_rsaEncryption: |