Skip to content

Commit

Permalink
fixup! cmp_{kem.c, local.h}: add function ossl_cmp_kem_get_ssk_using_…
Browse files Browse the repository at this point in the history
…srvcert
  • Loading branch information
rajeev-0 committed Aug 16, 2023
1 parent ffecf1d commit 912d800
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crypto/cmp/cmp_kem.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,7 @@ static int performKemEncapsulation(OSSL_CMP_CTX *ctx, EVP_PKEY *pubkey,
int ossl_cmp_kem_get_ss_using_srvcert(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg)
{
size_t secret_len, ct_len;
int ssk_len = 0;
unsigned char *secret = NULL, *ct = NULL, *ssk = NULL;
unsigned char *secret = NULL, *ct = NULL;
OSSL_CMP_ITAV *kem_itav;
int ret = 0;
ASN1_OCTET_STRING *asn1ct = NULL;
Expand Down Expand Up @@ -536,8 +535,6 @@ int ossl_cmp_kem_get_ss_using_srvcert(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg)
OPENSSL_clear_free(secret, secret_len);
if (ct != NULL)
OPENSSL_clear_free(ct, ct_len);
if (ssk != NULL)
OPENSSL_clear_free(ssk, ssk_len);
ASN1_OCTET_STRING_free(asn1ct);
return ret;
}
Expand Down

0 comments on commit 912d800

Please sign in to comment.