diff options
author | tb <> | 2024-07-26 13:30:40 +0000 |
---|---|---|
committer | tb <> | 2024-07-26 13:30:40 +0000 |
commit | 965175becb37ff83ae67cfe98c9ca0d9b4675d78 (patch) | |
tree | 42f02fd7c618a1ef32584e32c51ff56b4e9a43eb /src | |
parent | fc0857e5dcbfb84840f6030c126f2d85bb80c08f (diff) | |
download | openbsd-965175becb37ff83ae67cfe98c9ca0d9b4675d78.tar.gz openbsd-965175becb37ff83ae67cfe98c9ca0d9b4675d78.tar.bz2 openbsd-965175becb37ff83ae67cfe98c9ca0d9b4675d78.zip |
Inline last user of X509at_get_attr()
ok jsing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/x509/x509_att.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_att.c b/src/lib/libcrypto/x509/x509_att.c index 0c9d55f74f..2bf6aa498e 100644 --- a/src/lib/libcrypto/x509/x509_att.c +++ b/src/lib/libcrypto/x509/x509_att.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_att.c,v 1.22 2023/02/16 08:38:17 tb Exp $ */ | 1 | /* $OpenBSD: x509_att.c,v 1.23 2024/07/26 13:30:40 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 | * |
@@ -227,7 +227,7 @@ X509at_get0_data_by_OBJ(STACK_OF(X509_ATTRIBUTE) *x, const ASN1_OBJECT *obj, | |||
227 | return NULL; | 227 | return NULL; |
228 | if ((lastpos <= -2) && (X509at_get_attr_by_OBJ(x, obj, i) != -1)) | 228 | if ((lastpos <= -2) && (X509at_get_attr_by_OBJ(x, obj, i) != -1)) |
229 | return NULL; | 229 | return NULL; |
230 | at = X509at_get_attr(x, i); | 230 | at = sk_X509_ATTRIBUTE_value(x, i); |
231 | if (lastpos <= -3 && (X509_ATTRIBUTE_count(at) != 1)) | 231 | if (lastpos <= -3 && (X509_ATTRIBUTE_count(at) != 1)) |
232 | return NULL; | 232 | return NULL; |
233 | return X509_ATTRIBUTE_get0_data(at, 0, type, NULL); | 233 | return X509_ATTRIBUTE_get0_data(at, 0, type, NULL); |