From 381380206b717eff835a81d5d451f4854032e52e Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 10 Mar 1999 18:30:48 +0000 Subject: [PATCH] Fix couple of ANSI declarations and prototypes --- CHANGES | 4 +++- crypto/des/ede_cbcm_enc.c | 16 ++++++++++------ crypto/evp/evp.h | 4 ++-- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/CHANGES b/CHANGES index 1e84e4933c..95a0bd28c7 100644 --- a/CHANGES +++ b/CHANGES @@ -8,7 +8,9 @@ *) Fix Makefile.org so CC,CFLAG etc are passed to 'make links' add advapi32.lib to Win32 build and change the pem test comparision to fc.exe (thanks to Ulrich Kroener for the - suggestion). + suggestion). Fix misplaced ASNI prototypes and declarations in evp.h + and crypto/des/ede_cbcm_enc.c. + [Steve Henson] *) DES quad checksum was broken on big-endian architectures. Fixed. [Ben Laurie] diff --git a/crypto/des/ede_cbcm_enc.c b/crypto/des/ede_cbcm_enc.c index 41890df327..caaf6dacce 100644 --- a/crypto/des/ede_cbcm_enc.c +++ b/crypto/des/ede_cbcm_enc.c @@ -70,12 +70,16 @@ http://www.cs.technion.ac.il/users/wwwb/cgi-bin/tr-get.cgi/1998/CS/CS0928.ps.gz #include "des_locl.h" -void des_ede3_cbcm_encrypt(const unsigned char *in,unsigned char *out, - long length, - des_key_schedule ks1,des_key_schedule ks2, - des_key_schedule ks3, - des_cblock ivec1,des_cblock ivec2, - int enc) +void des_ede3_cbcm_encrypt(in, out, length, ks1, ks2, ks3, ivec1, ivec2, enc) +const unsigned char *in; +unsigned char *out; +long length; +des_key_schedule ks1; +des_key_schedule ks2; +des_key_schedule ks3; +des_cblock ivec1; +des_cblock ivec2; +int enc; { register DES_LONG tin0,tin1; register DES_LONG tout0,tout1,xor0,xor1,m0,m1; diff --git a/crypto/evp/evp.h b/crypto/evp/evp.h index 2655acd7fc..3aad7d1d5f 100644 --- a/crypto/evp/evp.h +++ b/crypto/evp/evp.h @@ -765,8 +765,8 @@ int EVP_PKEY_missing_parameters(); int EVP_PKEY_save_parameters(); int EVP_PKEY_cmp_parameters(); -int EVP_CIPHER_param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type); -int EVP_CIPHER_asn1_to_param(EVP_CIPHER_CTX *c, ASN1_TYPE *type); +int EVP_CIPHER_param_to_asn1(); +int EVP_CIPHER_asn1_to_param(); int EVP_CIPHER_set_asn1_iv(); int EVP_CIPHER_get_asn1_iv(); -- 2.25.1