mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
test, remove unnecessary const cast
This commit is contained in:
parent
59b6836ab2
commit
41e455bfc4
@ -153,7 +153,7 @@ static int md_write(BIO *b, const char *in, int inl)
|
|||||||
{
|
{
|
||||||
if (ret > 0)
|
if (ret > 0)
|
||||||
{
|
{
|
||||||
EVP_DigestUpdate(ctx,(unsigned char *)in,
|
EVP_DigestUpdate(ctx,(const unsigned char *)in,
|
||||||
(unsigned int)ret);
|
(unsigned int)ret);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ static int null_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
|
|||||||
const unsigned char *in, unsigned int inl)
|
const unsigned char *in, unsigned int inl)
|
||||||
{
|
{
|
||||||
if (in != out)
|
if (in != out)
|
||||||
memcpy((char *)out,(char *)in,(int)inl);
|
memcpy((char *)out,(const char *)in,(size_t)inl);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user