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_conf.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_conf.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_conf.c b/src/lib/libcrypto/x509/x509_conf.c index 1047540a88..e5b18c2f77 100644 --- a/src/lib/libcrypto/x509/x509_conf.c +++ b/src/lib/libcrypto/x509/x509_conf.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_conf.c,v 1.28 2025/03/06 07:17:45 tb Exp $ */ | 1 | /* $OpenBSD: x509_conf.c,v 1.29 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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -405,7 +405,7 @@ X509V3_EXT_REQ_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section, | |||
405 | LCRYPTO_ALIAS(X509V3_EXT_REQ_add_nconf); | 405 | LCRYPTO_ALIAS(X509V3_EXT_REQ_add_nconf); |
406 | 406 | ||
407 | STACK_OF(CONF_VALUE) * | 407 | STACK_OF(CONF_VALUE) * |
408 | X509V3_get_section(X509V3_CTX *ctx, const char *section) | 408 | X509V3_get0_section(X509V3_CTX *ctx, const char *section) |
409 | { | 409 | { |
410 | if (ctx->db == NULL) { | 410 | if (ctx->db == NULL) { |
411 | X509V3error(X509V3_R_OPERATION_NOT_DEFINED); | 411 | X509V3error(X509V3_R_OPERATION_NOT_DEFINED); |