diff options
author | tb <> | 2025-03-06 07:20:01 +0000 |
---|---|---|
committer | tb <> | 2025-03-06 07:20:01 +0000 |
commit | 338826280562cba94ac633378fc75cc1c3951ae4 (patch) | |
tree | 7b195da046c88adbbc0bc5d3013d747373bef1db /src/lib/libcrypto/asn1 | |
parent | 7ba73de5bad4e9854b7bc986be7422f1442cf0f0 (diff) | |
download | openbsd-338826280562cba94ac633378fc75cc1c3951ae4.tar.gz openbsd-338826280562cba94ac633378fc75cc1c3951ae4.tar.bz2 openbsd-338826280562cba94ac633378fc75cc1c3951ae4.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/asn1')
-rw-r--r-- | src/lib/libcrypto/asn1/asn1_gen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_gen.c b/src/lib/libcrypto/asn1/asn1_gen.c index f74cf9ae74..d9da305ef7 100644 --- a/src/lib/libcrypto/asn1/asn1_gen.c +++ b/src/lib/libcrypto/asn1/asn1_gen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn1_gen.c,v 1.25 2025/03/06 07:17:45 tb Exp $ */ | 1 | /* $OpenBSD: asn1_gen.c,v 1.26 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 2002. | 3 | * project 2002. |
4 | */ | 4 | */ |
@@ -448,7 +448,7 @@ asn1_multi(int utype, const char *section, X509V3_CTX *cnf) | |||
448 | if (section) { | 448 | if (section) { |
449 | if (!cnf) | 449 | if (!cnf) |
450 | goto bad; | 450 | goto bad; |
451 | sect = X509V3_get_section(cnf, (char *)section); | 451 | sect = X509V3_get0_section(cnf, (char *)section); |
452 | if (!sect) | 452 | if (!sect) |
453 | goto bad; | 453 | goto bad; |
454 | for (i = 0; i < sk_CONF_VALUE_num(sect); i++) { | 454 | for (i = 0; i < sk_CONF_VALUE_num(sect); i++) { |