From: Lutz Jänicke Date: Sat, 14 Apr 2001 14:42:28 +0000 (+0000) Subject: Constify "salt" (Jason Molenda ) X-Git-Tag: OpenSSL_0_9_6b~41 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3c1f0ccbf4ab9ee99c044c909eb602239a56368c;p=oweals%2Fopenssl.git Constify "salt" (Jason Molenda ) --- diff --git a/crypto/evp/evp.h b/crypto/evp/evp.h index cdf5f3cf89..0d71c548a5 100644 --- a/crypto/evp/evp.h +++ b/crypto/evp/evp.h @@ -554,9 +554,9 @@ int EVP_read_pw_string(char *buf,int length,const char *prompt,int verify); void EVP_set_pw_prompt(char *prompt); char * EVP_get_pw_prompt(void); -int EVP_BytesToKey(const EVP_CIPHER *type,EVP_MD *md,unsigned char *salt, - unsigned char *data, int datal, int count, - unsigned char *key,unsigned char *iv); +int EVP_BytesToKey(const EVP_CIPHER *type, EVP_MD *md, + const unsigned char *salt, unsigned char *data, int datal, + int count, unsigned char *key, unsigned char *iv); int EVP_EncryptInit(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *type, unsigned char *key, unsigned char *iv); diff --git a/crypto/evp/evp_key.c b/crypto/evp/evp_key.c index 09b72bf4bd..f8710bf329 100644 --- a/crypto/evp/evp_key.c +++ b/crypto/evp/evp_key.c @@ -95,9 +95,9 @@ int EVP_read_pw_string(char *buf, int len, const char *prompt, int verify) #endif } -int EVP_BytesToKey(const EVP_CIPHER *type, EVP_MD *md, unsigned char *salt, - unsigned char *data, int datal, int count, unsigned char *key, - unsigned char *iv) +int EVP_BytesToKey(const EVP_CIPHER *type, EVP_MD *md, + const unsigned char *salt, unsigned char *data, int datal, + int count, unsigned char *key, unsigned char *iv) { EVP_MD_CTX c; unsigned char md_buf[EVP_MAX_MD_SIZE];