summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_local.h
diff options
context:
space:
mode:
authortb <>2025-03-06 07:20:01 +0000
committertb <>2025-03-06 07:20:01 +0000
commit315ffee67ea70af91d110f99262dcbdd4e2e74c8 (patch)
tree7b195da046c88adbbc0bc5d3013d747373bef1db /src/lib/libcrypto/x509/x509_local.h
parent9423b9127ecc6c95ba3eedf566689039ecb0d64a (diff)
downloadopenbsd-315ffee67ea70af91d110f99262dcbdd4e2e74c8.tar.gz
openbsd-315ffee67ea70af91d110f99262dcbdd4e2e74c8.tar.bz2
openbsd-315ffee67ea70af91d110f99262dcbdd4e2e74c8.zip
Rename X509V3_get_section() to X509V3_get0_section()
This makes it clear for those fluent in OpenSSL API gibberish that nothing needs to be freed here. This is because it returns something hanging off a hash entry owned by cnf. ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_local.h')
-rw-r--r--src/lib/libcrypto/x509/x509_local.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_local.h b/src/lib/libcrypto/x509/x509_local.h
index f055bb3446..796a2ee718 100644
--- a/src/lib/libcrypto/x509/x509_local.h
+++ b/src/lib/libcrypto/x509/x509_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_local.h,v 1.37 2025/03/06 07:17:45 tb Exp $ */ 1/* $OpenBSD: x509_local.h,v 1.38 2025/03/06 07:20:01 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2013. 3 * project 2013.
4 */ 4 */
@@ -453,7 +453,7 @@ int X509V3_add_value_int(const char *name, const ASN1_INTEGER *aint,
453int X509V3_get_value_bool(const CONF_VALUE *value, int *asn1_bool); 453int X509V3_get_value_bool(const CONF_VALUE *value, int *asn1_bool);
454int X509V3_get_value_int(const CONF_VALUE *value, ASN1_INTEGER **aint); 454int X509V3_get_value_int(const CONF_VALUE *value, ASN1_INTEGER **aint);
455 455
456STACK_OF(CONF_VALUE) *X509V3_get_section(X509V3_CTX *ctx, const char *section); 456STACK_OF(CONF_VALUE) *X509V3_get0_section(X509V3_CTX *ctx, const char *section);
457 457
458const X509V3_EXT_METHOD *x509v3_ext_method_authority_key_identifier(void); 458const X509V3_EXT_METHOD *x509v3_ext_method_authority_key_identifier(void);
459const X509V3_EXT_METHOD *x509v3_ext_method_basic_constraints(void); 459const X509V3_EXT_METHOD *x509v3_ext_method_basic_constraints(void);