diff options
author | tb <> | 2024-07-12 09:35:54 +0000 |
---|---|---|
committer | tb <> | 2024-07-12 09:35:54 +0000 |
commit | 65d54aa35cdd3ac23e752051eac4b6d52be77a9d (patch) | |
tree | 7f5432d3872f3dbbc9c693f26cb2da241261f34b /src | |
parent | 0c66ec255efd67d0fe30806ec3e42d13749db378 (diff) | |
download | openbsd-65d54aa35cdd3ac23e752051eac4b6d52be77a9d.tar.gz openbsd-65d54aa35cdd3ac23e752051eac4b6d52be77a9d.tar.bz2 openbsd-65d54aa35cdd3ac23e752051eac4b6d52be77a9d.zip |
Simplify X509_EXTENSION_get_critical()
This is a silly API, but there are worse.
ok jsing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/x509/x509_v3.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509/x509_v3.c b/src/lib/libcrypto/x509/x509_v3.c index 5ae8fabf46..b5aee01d2d 100644 --- a/src/lib/libcrypto/x509/x509_v3.c +++ b/src/lib/libcrypto/x509/x509_v3.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_v3.c,v 1.37 2024/07/12 09:33:05 tb Exp $ */ | 1 | /* $OpenBSD: x509_v3.c,v 1.38 2024/07/12 09:35:54 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 | * |
@@ -290,8 +290,7 @@ X509_EXTENSION_get_critical(const X509_EXTENSION *ext) | |||
290 | { | 290 | { |
291 | if (ext == NULL) | 291 | if (ext == NULL) |
292 | return 0; | 292 | return 0; |
293 | if (ext->critical > 0) | 293 | |
294 | return 1; | 294 | return ext->critical > 0; |
295 | return 0; | ||
296 | } | 295 | } |
297 | LCRYPTO_ALIAS(X509_EXTENSION_get_critical); | 296 | LCRYPTO_ALIAS(X509_EXTENSION_get_critical); |