summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2001-09-28 01:47:36 +0000
committerDr. Stephen Henson <steve@openssl.org>2001-09-28 01:47:36 +0000
commitde822715b2a7af12844d408b6d2f5f0b655d54bb (patch)
tree764184609e9ae475b23b7f566987793bcc2c9587 /crypto/evp
parent89f534e1d30ed40a03455b36cda7da13734e7238 (diff)
Constify EVP_SealInit, EVP_OpenInit
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/evp.h4
-rw-r--r--crypto/evp/p_open.c2
-rw-r--r--crypto/evp/p_seal.c2
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 <openssl/objects.h>
#include <openssl/x509.h>
-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 <openssl/objects.h>
#include <openssl/x509.h>
-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];