test, remove unnecessary const cast
authorNils Larsch <nils@openssl.org>
Tue, 22 Mar 2005 17:55:18 +0000 (17:55 +0000)
committerNils Larsch <nils@openssl.org>
Tue, 22 Mar 2005 17:55:18 +0000 (17:55 +0000)
crypto/evp/bio_md.c
crypto/evp/e_null.c

index 27ec62f4b55064583267072a9917426a734a257f..76ff9fe815a0ff5366b77d34a2017adc866f8786 100644 (file)
@@ -153,7 +153,7 @@ static int md_write(BIO *b, const char *in, int inl)
                {
                if (ret > 0)
                        {
-                       EVP_DigestUpdate(ctx,(unsigned char *)in,
+                       EVP_DigestUpdate(ctx,(const unsigned char *)in,
                                (unsigned int)ret);
                        }
                }
index 2420d7e5af806ec6c81fbf9c1fb091fa96b6dfcd..698a8e379c9ba8d2cee6c4255cbad2a085e7ddfb 100644 (file)
@@ -95,7 +95,7 @@ static int null_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
             const unsigned char *in, unsigned int inl)
        {
        if (in != out)
-               memcpy((char *)out,(char *)in,(int)inl);
+               memcpy((char *)out,(const char *)in,(size_t)inl);
        return 1;
        }