diff options
Diffstat (limited to 'crypto/evp/e_null.c')
-rw-r--r-- | crypto/evp/e_null.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/crypto/evp/e_null.c b/crypto/evp/e_null.c index e4e7ca7606..374b01c88b 100644 --- a/crypto/evp/e_null.c +++ b/crypto/evp/e_null.c @@ -83,25 +83,19 @@ static EVP_CIPHER n_cipher= NULL, }; -EVP_CIPHER *EVP_enc_null() +EVP_CIPHER *EVP_enc_null(void) { return(&n_cipher); } -static void null_init_key(ctx,key,iv,enc) -EVP_CIPHER_CTX *ctx; -unsigned char *key; -unsigned char *iv; -int enc; +static void null_init_key(EVP_CIPHER_CTX *ctx, unsigned char *key, + unsigned char *iv, int enc) { memset(&(ctx->c),0,sizeof(ctx->c)); } -static void null_cipher(ctx,out,in,inl) -EVP_CIPHER_CTX *ctx; -unsigned char *out; -unsigned char *in; -unsigned int inl; +static void null_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, + unsigned char *in, unsigned int inl) { if (in != out) memcpy((char *)out,(char *)in,(int)inl); |