]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
X509_EXTENSION_set_object.pod, X509v3_get_ext_by_NID.pod: add missing const
authorEugene Syromiatnikov <esyr@openssl.org>
Fri, 27 Mar 2026 11:05:39 +0000 (12:05 +0100)
committerEugene Syromiatnikov <esyr@openssl.org>
Tue, 31 Mar 2026 00:59:06 +0000 (02:59 +0200)
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 <esyr@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
MergeDate: Tue Mar 31 00:47:35 2026
(Merged from https://github.com/openssl/openssl/pull/30601)

(cherry picked from commit 0d5553fff4d1117c5380beaa8873ee9e8c56057e)

doc/man3/X509_EXTENSION_set_object.pod
doc/man3/X509v3_get_ext_by_NID.pod

index 705304910ad10c80808482f1d0a809feb63252e5..627a68d6fac724ea4685152ae2fbbf61a5b53c81 100644 (file)
@@ -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
 
index 38a6d6f0af21738e021e239b88a718996c91c466..3dd97895cb977494e464c467e1abe390c1e013cd 100644 (file)
@@ -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);