Don't make half work when constifying...
authorLutz Jänicke <jaenicke@openssl.org>
Sat, 14 Apr 2001 14:48:44 +0000 (14:48 +0000)
committerLutz Jänicke <jaenicke@openssl.org>
Sat, 14 Apr 2001 14:48:44 +0000 (14:48 +0000)
crypto/evp/evp.h
crypto/evp/evp_key.c

index 0d71c548a5f77769d8187623763bacb2ad5ffb20..0f27df4603171d3f4290b8fba9ef6fb6595f05b6 100644 (file)
@@ -555,7 +555,7 @@ void        EVP_set_pw_prompt(char *prompt);
 char * EVP_get_pw_prompt(void);
 
 int     EVP_BytesToKey(const EVP_CIPHER *type, EVP_MD *md,
-               const unsigned char *salt, unsigned char *data, int datal,
+               const unsigned char *salt, const unsigned char *data, int datal,
                        int count, unsigned char *key, unsigned char *iv);
 
 int    EVP_EncryptInit(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *type,
index f8710bf32953d62a2e3fcaaa3e866b13a555495e..e7434ef9b270292aac2aa0fba079e304a9096cfc 100644 (file)
@@ -96,7 +96,7 @@ int EVP_read_pw_string(char *buf, int len, const char *prompt, int verify)
        }
 
 int EVP_BytesToKey(const EVP_CIPHER *type, EVP_MD *md, 
-             const unsigned char *salt, unsigned char *data, int datal, 
+             const unsigned char *salt, const unsigned char *data, int datal, 
              int count, unsigned char *key, unsigned char *iv)
        {
        EVP_MD_CTX c;