diff options
| author | tb <> | 2025-03-06 07:20:01 +0000 |
|---|---|---|
| committer | tb <> | 2025-03-06 07:20:01 +0000 |
| commit | 315ffee67ea70af91d110f99262dcbdd4e2e74c8 (patch) | |
| tree | 7b195da046c88adbbc0bc5d3013d747373bef1db /src/lib/libcrypto/asn1/asn1_gen.c | |
| parent | 9423b9127ecc6c95ba3eedf566689039ecb0d64a (diff) | |
| download | openbsd-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/asn1/asn1_gen.c')
| -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++) { |
