From de822715b2a7af12844d408b6d2f5f0b655d54bb Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 28 Sep 2001 01:47:36 +0000 Subject: [PATCH] Constify EVP_SealInit, EVP_OpenInit --- crypto/evp/evp.h | 4 ++-- crypto/evp/p_open.c | 2 +- crypto/evp/p_seal.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crypto/evp/evp.h b/crypto/evp/evp.h index ff9e67f7c6..494fa0c65e 100644 --- a/crypto/evp/evp.h +++ b/crypto/evp/evp.h @@ -509,11 +509,11 @@ int EVP_SignFinal(EVP_MD_CTX *ctx,unsigned char *md,unsigned int *s, int EVP_VerifyFinal(EVP_MD_CTX *ctx,unsigned char *sigbuf, unsigned int siglen,EVP_PKEY *pkey); -int EVP_OpenInit(EVP_CIPHER_CTX *ctx,EVP_CIPHER *type,unsigned char *ek, +int EVP_OpenInit(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *type,unsigned char *ek, int ekl,unsigned char *iv,EVP_PKEY *priv); int EVP_OpenFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl); -int EVP_SealInit(EVP_CIPHER_CTX *ctx, EVP_CIPHER *type, unsigned char **ek, +int EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, unsigned char **ek, int *ekl, unsigned char *iv,EVP_PKEY **pubk, int npubk); void EVP_SealFinal(EVP_CIPHER_CTX *ctx,unsigned char *out,int *outl); diff --git a/crypto/evp/p_open.c b/crypto/evp/p_open.c index ed49a8c233..c0a50b9cd6 100644 --- a/crypto/evp/p_open.c +++ b/crypto/evp/p_open.c @@ -63,7 +63,7 @@ #include #include -int EVP_OpenInit(EVP_CIPHER_CTX *ctx, EVP_CIPHER *type, unsigned char *ek, +int EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, unsigned char *ek, int ekl, unsigned char *iv, EVP_PKEY *priv) { unsigned char *key=NULL; diff --git a/crypto/evp/p_seal.c b/crypto/evp/p_seal.c index ff16370994..c870ebfa3e 100644 --- a/crypto/evp/p_seal.c +++ b/crypto/evp/p_seal.c @@ -66,7 +66,7 @@ #include #include -int EVP_SealInit(EVP_CIPHER_CTX *ctx, EVP_CIPHER *type, unsigned char **ek, +int EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, unsigned char **ek, int *ekl, unsigned char *iv, EVP_PKEY **pubk, int npubk) { unsigned char key[EVP_MAX_KEY_LENGTH]; -- 2.40.0