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/x509/x509_alt.c | |
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/x509/x509_alt.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_alt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_alt.c b/src/lib/libcrypto/x509/x509_alt.c index e19a49ca86..34734a55bd 100644 --- a/src/lib/libcrypto/x509/x509_alt.c +++ b/src/lib/libcrypto/x509/x509_alt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_alt.c,v 1.18 2025/03/06 07:17:45 tb Exp $ */ | 1 | /* $OpenBSD: x509_alt.c,v 1.19 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. | 3 | * project. |
4 | */ | 4 | */ |
@@ -782,7 +782,7 @@ do_dirname(GENERAL_NAME *gen, const char *value, X509V3_CTX *ctx) | |||
782 | 782 | ||
783 | if (!(nm = X509_NAME_new())) | 783 | if (!(nm = X509_NAME_new())) |
784 | return 0; | 784 | return 0; |
785 | sk = X509V3_get_section(ctx, value); | 785 | sk = X509V3_get0_section(ctx, value); |
786 | if (!sk) { | 786 | if (!sk) { |
787 | X509V3error(X509V3_R_SECTION_NOT_FOUND); | 787 | X509V3error(X509V3_R_SECTION_NOT_FOUND); |
788 | ERR_asprintf_error_data("section=%s", value); | 788 | ERR_asprintf_error_data("section=%s", value); |