diff options
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: |