Skip to content

Commit

Permalink
Adds const qualifier
Browse files Browse the repository at this point in the history
  • Loading branch information
maddeleine committed Jul 17, 2024
1 parent b2bbd9c commit 497a990
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crypto/fipsmodule/evp/evp_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ int EVP_PKEY_encapsulate(EVP_PKEY_CTX *ctx,

int EVP_PKEY_decapsulate(EVP_PKEY_CTX *ctx,
uint8_t *shared_secret, size_t *shared_secret_len,
uint8_t *ciphertext, size_t ciphertext_len) {
const uint8_t *ciphertext, size_t ciphertext_len) {
if (ctx == NULL || ctx->pmeth == NULL || ctx->pmeth->decapsulate == NULL) {
OPENSSL_PUT_ERROR(EVP, EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE);
return 0;
Expand Down
2 changes: 1 addition & 1 deletion include/openssl/evp.h
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ OPENSSL_EXPORT int EVP_PKEY_encapsulate(EVP_PKEY_CTX *ctx /* IN */,
OPENSSL_EXPORT int EVP_PKEY_decapsulate(EVP_PKEY_CTX *ctx /* IN */,
uint8_t *shared_secret /* OUT */,
size_t *shared_secret_len /* OUT */,
uint8_t *ciphertext /* IN */,
const uint8_t *ciphertext /* IN */,
size_t ciphertext_len /* IN */);

// EVP_PKEY_paramgen_init initialises an |EVP_PKEY_CTX| for a parameter
Expand Down

0 comments on commit 497a990

Please sign in to comment.