summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-11-13 15:38:10 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-11-13 15:38:10 +0000
commit23819983cbe5ea3842da6d18f53aed8a4a57e681 (patch)
treed521781c6ac3294ffd6dd32c6bb5ff7999e9c553 /lib
parent9c18c906398057dade566f176e093e517aa773dd (diff)
Use X509_get_signature_nid() instead of inlining it
ok beck jsing
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/x509/x509type.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/x509/x509type.c b/lib/libcrypto/x509/x509type.c
index 91e1fe8f32c..f713abde8f1 100644
--- a/lib/libcrypto/x509/x509type.c
+++ b/lib/libcrypto/x509/x509type.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509type.c,v 1.20 2023/11/13 15:36:55 tb Exp $ */
+/* $OpenBSD: x509type.c,v 1.21 2023/11/13 15:38:09 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -106,7 +106,7 @@ X509_certificate_type(const X509 *x, const EVP_PKEY *pkey)
break;
}
- i = OBJ_obj2nid(x->sig_alg->algorithm);
+ i = X509_get_signature_nid(x);
if (i && OBJ_find_sigid_algs(i, NULL, &i)) {
switch (i) {
case NID_rsaEncryption: