]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Clarify the comment in asn1.h.in for ASN1_VALUE
authorBob Beck <beck@openssl.org>
Wed, 24 Jun 2026 17:29:05 +0000 (11:29 -0600)
committerNorbert Pocs <norbertp@openssl.org>
Tue, 30 Jun 2026 09:51:30 +0000 (11:51 +0200)
I've been down this road a few times and nhorman@ just hit it.

While technically true, most of our opaque pointers have internal
defninitions. Stop people going down the garden path by explaining
what this is

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
MergeDate: Tue Jun 30 09:51:37 2026
(Merged from https://github.com/openssl/openssl/pull/31708)

include/openssl/asn1.h.in

index 21d9e772c6761d08b76f059eabef41cf32424953..a7291738ff1e42ae91d17f34c7fb0be4960cd695 100644 (file)
@@ -199,7 +199,10 @@ struct asn1_string_table_st {
  */
 typedef struct ASN1_TEMPLATE_st ASN1_TEMPLATE;
 typedef struct ASN1_TLC_st ASN1_TLC;
-/* This is just an opaque pointer */
+/*
+ * This is deliberately used as an opaque pointer to a structure that
+ * is never defined. In other words it will behave like void *
+ */
 typedef struct ASN1_VALUE_st ASN1_VALUE;
 
 /* Declare ASN1 functions: the implement macro is in asn1t.h */