From c2709b27509682ab357424202cb564dc4b5a537f Mon Sep 17 00:00:00 2001 From: Rajeev Ranjan Date: Sat, 24 Feb 2024 18:53:56 +0100 Subject: [PATCH] move DIST_POINT_NAME_dup to v3_crld.c --- crypto/cmp/cmp_asn.c | 2 -- crypto/x509/v3_crld.c | 1 + doc/man3/X509_dup.pod | 1 + include/openssl/x509v3.h.in | 1 + 4 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crypto/cmp/cmp_asn.c b/crypto/cmp/cmp_asn.c index d46fb2df5498ef..c4efa3327c8809 100644 --- a/crypto/cmp/cmp_asn.c +++ b/crypto/cmp/cmp_asn.c @@ -157,8 +157,6 @@ ASN1_SEQUENCE(OSSL_CMP_CRLSTATUS) = { } ASN1_SEQUENCE_END(OSSL_CMP_CRLSTATUS) IMPLEMENT_ASN1_FUNCTIONS(OSSL_CMP_CRLSTATUS) -IMPLEMENT_ASN1_DUP_FUNCTION(DIST_POINT_NAME) - OSSL_CMP_ITAV *OSSL_CMP_ITAV_create(ASN1_OBJECT *type, ASN1_TYPE *value) { OSSL_CMP_ITAV *itav; diff --git a/crypto/x509/v3_crld.c b/crypto/x509/v3_crld.c index e9f6e08e27a7cc..110c80ac01f445 100644 --- a/crypto/x509/v3_crld.c +++ b/crypto/x509/v3_crld.c @@ -327,6 +327,7 @@ ASN1_CHOICE_cb(DIST_POINT_NAME, dpn_cb) = { IMPLEMENT_ASN1_FUNCTIONS(DIST_POINT_NAME) +IMPLEMENT_ASN1_DUP_FUNCTION(DIST_POINT_NAME) ASN1_SEQUENCE(DIST_POINT) = { ASN1_EXP_OPT(DIST_POINT, distpoint, DIST_POINT_NAME, 0), diff --git a/doc/man3/X509_dup.pod b/doc/man3/X509_dup.pod index c6206e1759093f..e6062b2b8dd76f 100644 --- a/doc/man3/X509_dup.pod +++ b/doc/man3/X509_dup.pod @@ -44,6 +44,7 @@ DISPLAYTEXT_free, DISPLAYTEXT_new, DIST_POINT_NAME_free, DIST_POINT_NAME_new, +DIST_POINT_NAME_dup, DIST_POINT_free, DIST_POINT_new, DSAparams_dup, diff --git a/include/openssl/x509v3.h.in b/include/openssl/x509v3.h.in index 569680378dfd03..5daa841a38515e 100644 --- a/include/openssl/x509v3.h.in +++ b/include/openssl/x509v3.h.in @@ -201,6 +201,7 @@ typedef struct DIST_POINT_NAME_st { /* If relativename then this contains the full distribution point name */ X509_NAME *dpname; } DIST_POINT_NAME; +DECLARE_ASN1_DUP_FUNCTION(DIST_POINT_NAME) /* All existing reasons */ # define CRLDP_ALL_REASONS 0x807f