From: Dr. Stephen Henson Date: Fri, 28 Sep 2001 01:47:36 +0000 (+0000) Subject: Constify EVP_SealInit, EVP_OpenInit X-Git-Tag: OpenSSL_0_9_6c~26^2~174 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=de822715b2a7af12844d408b6d2f5f0b655d54bb Constify EVP_SealInit, EVP_OpenInit --- 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];