Skip to content

Commit

Permalink
remove unused OSSL_CMP_ITAV_new0_crls()
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeev-0 committed Feb 23, 2024
1 parent 330ec6b commit 3db3b6b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 20 deletions.
11 changes: 0 additions & 11 deletions crypto/cmp/cmp_asn.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,17 +574,6 @@ OSSL_CMP_ITAV *OSSL_CMP_ITAV_new_crls(const X509_CRL *crl)
return NULL;
}

OSSL_CMP_ITAV *OSSL_CMP_ITAV_new0_crls(STACK_OF(X509_CRL) *crls)
{
OSSL_CMP_ITAV *itav;

if ((itav = OSSL_CMP_ITAV_new()) == NULL)
return NULL;
itav->infoType = OBJ_nid2obj(NID_id_it_crls);
itav->infoValue.crls = crls;
return itav;
}

int OSSL_CMP_ITAV_get0_crls(const OSSL_CMP_ITAV *itav, STACK_OF(X509_CRL) **out)
{
if (itav == NULL || out == NULL) {
Expand Down
12 changes: 6 additions & 6 deletions doc/man3/OSSL_CMP_ITAV_new_caCerts.pod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ OSSL_CMP_CRLSTATUS_create,
OSSL_CMP_CRLSTATUS_get0,
OSSL_CMP_ITAV_new0_crlStatusList,
OSSL_CMP_ITAV_get0_crlStatusList,
OSSL_CMP_ITAV_new0_crls,
OSSL_CMP_ITAV_new_crls,
OSSL_CMP_ITAV_get0_crls
- CMP utility functions for handling specific genm and genp messages

Expand Down Expand Up @@ -46,8 +46,7 @@ OSSL_CMP_ITAV_get0_crls
*OSSL_CMP_ITAV_new0_crlStatusList(STACK_OF(OSSL_CMP_CRLSTATUS) *crlStatusList);
int OSSL_CMP_ITAV_get0_crlStatusList(const OSSL_CMP_ITAV *itav,
STACK_OF(OSSL_CMP_CRLSTATUS) **out);
OSSL_CMP_ITAV
*OSSL_CMP_ITAV_new0_crls(STACK_OF(X509_CRL) *crls);
OSSL_CMP_ITAV *OSSL_CMP_ITAV_new_crls(const X509_CRL *crl);
int OSSL_CMP_ITAV_get0_crls(const OSSL_CMP_ITAV *itav, STACK_OF(X509_CRL) **out);

=head1 DESCRIPTION
Expand Down Expand Up @@ -132,8 +131,9 @@ pointer to the list of CRL status data in the infoValue field of I<itav>.
The pointer may be NULL if no CRL status data is included.
It is an error if the infoType of I<itav> is not B<crlStatusList>.

OSSL_CMP_ITAV_new0_crls() creates a new B<OSSL_CMP_ITAV> structure
of type B<crls> that includes the optionally given list of CRLs.
OSSL_CMP_ITAV_new_crls() creates a new B<OSSL_CMP_ITAV> structure
of type B<crls> and fills it with a copy of the provided CRL.
The I<crl> argument may be NULL.

OSSL_CMP_ITAV_get0_crls() on success assigns to I<*out> an internal pointer to
the list of CRLs contained in the infoValue field of I<itav>.
Expand All @@ -149,7 +149,7 @@ CMP is defined in RFC 4210.
OSSL_CMP_ITAV_new_caCerts(), OSSL_CMP_ITAV_new_rootCaCert(),
OSSL_CMP_ITAV_new_rootCaKeyUpdate(), OSSL_CMP_CRLSTATUS_new1(),
OSSL_CMP_CRLSTATUS_create(), OSSL_CMP_ITAV_new0_crlStatusList()
and OSSL_CMP_ITAV_new0_crls()
and OSSL_CMP_ITAV_new_crls()
return a pointer to the new ITAV structure on success, or NULL on error.

OSSL_CMP_ITAV_get0_caCerts(), OSSL_CMP_ITAV_get0_rootCaCert(),
Expand Down
2 changes: 0 additions & 2 deletions include/openssl/cmp.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,6 @@ OSSL_CMP_ITAV
int OSSL_CMP_ITAV_get0_crlStatusList(const OSSL_CMP_ITAV *itav,
STACK_OF(OSSL_CMP_CRLSTATUS) **out);
OSSL_CMP_ITAV *OSSL_CMP_ITAV_new_crls(const X509_CRL *crls);
OSSL_CMP_ITAV
*OSSL_CMP_ITAV_new0_crls(STACK_OF(X509_CRL) *crls);
int OSSL_CMP_ITAV_get0_crls(const OSSL_CMP_ITAV *it, STACK_OF(X509_CRL) **out);

void OSSL_CMP_MSG_free(OSSL_CMP_MSG *msg);
Expand Down
1 change: 0 additions & 1 deletion util/libcrypto.num
Original file line number Diff line number Diff line change
Expand Up @@ -5553,7 +5553,6 @@ OSSL_CMP_CRLSTATUS_get0 ? 3_3_0 EXIST::FUNCTION:CMP
OSSL_CMP_CRLSTATUS_free ? 3_3_0 EXIST::FUNCTION:CMP
OSSL_CMP_ITAV_new0_crlStatusList ? 3_3_0 EXIST::FUNCTION:CMP
OSSL_CMP_ITAV_get0_crlStatusList ? 3_3_0 EXIST::FUNCTION:CMP
OSSL_CMP_ITAV_new0_crls ? 3_3_0 EXIST::FUNCTION:CMP
OSSL_CMP_ITAV_get0_crls ? 3_3_0 EXIST::FUNCTION:CMP
OSSL_CMP_get1_crlUpdate ? 3_3_0 EXIST::FUNCTION:CMP
OSSL_CMP_ITAV_new_crls ? 3_3_0 EXIST::FUNCTION:CMP

0 comments on commit 3db3b6b

Please sign in to comment.