Changeset View
Changeset View
Standalone View
Standalone View
crypto/cmp/cmp_protect.c
/* | /* | ||||
* Copyright 2007-2022 The OpenSSL Project Authors. All Rights Reserved. | * Copyright 2007-2023 The OpenSSL Project Authors. All Rights Reserved. | ||||
* Copyright Nokia 2007-2019 | * Copyright Nokia 2007-2019 | ||||
* Copyright Siemens AG 2015-2019 | * Copyright Siemens AG 2015-2019 | ||||
* | * | ||||
Context not available. | |||||
} | } | ||||
} | } | ||||
/* ctx is not const just because ctx->chain may get adapted */ | |||||
int ossl_cmp_msg_add_extraCerts(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg) | int ossl_cmp_msg_add_extraCerts(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg) | ||||
{ | { | ||||
if (!ossl_assert(ctx != NULL && msg != NULL)) | if (!ossl_assert(ctx != NULL && msg != NULL)) | ||||
Context not available. | |||||
return id == NULL || ossl_cmp_hdr_set1_senderKID(msg->header, id); | return id == NULL || ossl_cmp_hdr_set1_senderKID(msg->header, id); | ||||
} | } | ||||
/* ctx is not const just because ctx->chain may get adapted */ | |||||
int ossl_cmp_msg_protect(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg) | int ossl_cmp_msg_protect(OSSL_CMP_CTX *ctx, OSSL_CMP_MSG *msg) | ||||
{ | { | ||||
if (!ossl_assert(ctx != NULL && msg != NULL)) | if (!ossl_assert(ctx != NULL && msg != NULL)) | ||||
Context not available. |