diff options
author | tb <> | 2024-07-12 09:35:54 +0000 |
---|---|---|
committer | tb <> | 2024-07-12 09:35:54 +0000 |
commit | 106af693791d27f6344f3eb513ccca3e5faa7e21 (patch) | |
tree | 7f5432d3872f3dbbc9c693f26cb2da241261f34b /src | |
parent | 9b61dca02c282ade3551ab617ae2dd105cbf24e8 (diff) | |
download | openbsd-106af693791d27f6344f3eb513ccca3e5faa7e21.tar.gz openbsd-106af693791d27f6344f3eb513ccca3e5faa7e21.tar.bz2 openbsd-106af693791d27f6344f3eb513ccca3e5faa7e21.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); |