From: Eugene Syromiatnikov Date: Fri, 27 Mar 2026 11:05:39 +0000 (+0100) Subject: X509_EXTENSION_set_object.pod, X509v3_get_ext_by_NID.pod: add missing const X-Git-Tag: openssl-4.0.0~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e54c214b2d580b80e7b5b4f01e43bcd2dfa1440d;p=thirdparty%2Fopenssl.git X509_EXTENSION_set_object.pod, X509v3_get_ext_by_NID.pod: add missing const Update the documentation to include that added const qualifiers to the arguments of X509_EXTENSION_get_object(), X509_EXTENSION_get_data(), and X509v3_add_ext(). References: https://github.com/openssl/openssl/pull/30595 Complements: e75bd84ffc73 "Constify X509_get_ext() and friends.." Signed-off-by: Eugene Syromiatnikov Reviewed-by: Tomas Mraz Reviewed-by: Dmitry Belyavskiy MergeDate: Tue Mar 31 00:47:35 2026 (Merged from https://github.com/openssl/openssl/pull/30601) (cherry picked from commit 0d5553fff4d1117c5380beaa8873ee9e8c56057e) --- diff --git a/doc/man3/X509_EXTENSION_set_object.pod b/doc/man3/X509_EXTENSION_set_object.pod index 705304910ad..627a68d6fac 100644 --- a/doc/man3/X509_EXTENSION_set_object.pod +++ b/doc/man3/X509_EXTENSION_set_object.pod @@ -21,9 +21,9 @@ functions const ASN1_OBJECT *obj, int crit, ASN1_OCTET_STRING *data); - const ASN1_OBJECT *X509_EXTENSION_get_object(X509_EXTENSION *ex); + const ASN1_OBJECT *X509_EXTENSION_get_object(const X509_EXTENSION *ex); int X509_EXTENSION_get_critical(const X509_EXTENSION *ex); - const ASN1_OCTET_STRING *X509_EXTENSION_get_data(X509_EXTENSION *ne); + const ASN1_OCTET_STRING *X509_EXTENSION_get_data(const X509_EXTENSION *ne); =head1 DESCRIPTION diff --git a/doc/man3/X509v3_get_ext_by_NID.pod b/doc/man3/X509v3_get_ext_by_NID.pod index 38a6d6f0af2..3dd97895cb9 100644 --- a/doc/man3/X509v3_get_ext_by_NID.pod +++ b/doc/man3/X509v3_get_ext_by_NID.pod @@ -30,7 +30,7 @@ X509_REVOKED_get_ext_by_critical, X509_REVOKED_delete_ext, X509_REVOKED_add_ext X509_EXTENSION *X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, int loc); X509_EXTENSION *X509v3_delete_extension(STACK_OF(X509_EXTENSION) **x, int loc); STACK_OF(X509_EXTENSION) *X509v3_add_ext(STACK_OF(X509_EXTENSION) **x, - X509_EXTENSION *ex, int loc); + const X509_EXTENSION *ex, int loc); STACK_OF(X509_EXTENSION) *X509v3_add_extensions(STACK_OF(X509_EXTENSION) **target, const STACK_OF(X509_EXTENSION) *exts);