提交 38138020 编写于 作者: D Dr. Stephen Henson

Fix couple of ANSI declarations and prototypes

上级 035eb85d
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
*) Fix Makefile.org so CC,CFLAG etc are passed to 'make links' add *) Fix Makefile.org so CC,CFLAG etc are passed to 'make links' add
advapi32.lib to Win32 build and change the pem test comparision advapi32.lib to Win32 build and change the pem test comparision
to fc.exe (thanks to Ulrich Kroener <kroneru@yahoo.com> for the to fc.exe (thanks to Ulrich Kroener <kroneru@yahoo.com> 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. *) DES quad checksum was broken on big-endian architectures. Fixed.
[Ben Laurie] [Ben Laurie]
......
...@@ -70,12 +70,16 @@ http://www.cs.technion.ac.il/users/wwwb/cgi-bin/tr-get.cgi/1998/CS/CS0928.ps.gz ...@@ -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" #include "des_locl.h"
void des_ede3_cbcm_encrypt(const unsigned char *in,unsigned char *out, void des_ede3_cbcm_encrypt(in, out, length, ks1, ks2, ks3, ivec1, ivec2, enc)
long length, const unsigned char *in;
des_key_schedule ks1,des_key_schedule ks2, unsigned char *out;
des_key_schedule ks3, long length;
des_cblock ivec1,des_cblock ivec2, des_key_schedule ks1;
int enc) des_key_schedule ks2;
des_key_schedule ks3;
des_cblock ivec1;
des_cblock ivec2;
int enc;
{ {
register DES_LONG tin0,tin1; register DES_LONG tin0,tin1;
register DES_LONG tout0,tout1,xor0,xor1,m0,m1; register DES_LONG tout0,tout1,xor0,xor1,m0,m1;
......
...@@ -765,8 +765,8 @@ int EVP_PKEY_missing_parameters(); ...@@ -765,8 +765,8 @@ int EVP_PKEY_missing_parameters();
int EVP_PKEY_save_parameters(); int EVP_PKEY_save_parameters();
int EVP_PKEY_cmp_parameters(); int EVP_PKEY_cmp_parameters();
int EVP_CIPHER_param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type); int EVP_CIPHER_param_to_asn1();
int EVP_CIPHER_asn1_to_param(EVP_CIPHER_CTX *c, ASN1_TYPE *type); int EVP_CIPHER_asn1_to_param();
int EVP_CIPHER_set_asn1_iv(); int EVP_CIPHER_set_asn1_iv();
int EVP_CIPHER_get_asn1_iv(); int EVP_CIPHER_get_asn1_iv();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册