This is a silly API, but there are worse.
ok jsing
-/* $OpenBSD: x509_v3.c,v 1.37 2024/07/12 09:33:05 tb Exp $ */
+/* $OpenBSD: x509_v3.c,v 1.38 2024/07/12 09:35:54 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
{
if (ext == NULL)
return 0;
- if (ext->critical > 0)
- return 1;
- return 0;
+
+ return ext->critical > 0;
}
LCRYPTO_ALIAS(X509_EXTENSION_get_critical);