From: Richard Basch Date: Tue, 18 Feb 1997 05:48:59 +0000 (+0000) Subject: Export additional routines for krb4 library (win16/win32) X-Git-Tag: krb5-1.1-beta1~1304 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b769d62a821107e18918e69771f4cbe94298d1e;p=krb5.git Export additional routines for krb4 library (win16/win32) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9887 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/des425/ChangeLog b/src/lib/des425/ChangeLog index f36bf8219..1df0f30d5 100644 --- a/src/lib/des425/ChangeLog +++ b/src/lib/des425/ChangeLog @@ -1,3 +1,7 @@ +Sun Feb 16 23:29:09 1997 Richard Basch + + * pcbc_encrypt.c: Export des_pcbc_encrypt (win16/win32) + Thu Nov 21 11:55:16 EST 1996 Richard Basch * Makefile.in: win32 build diff --git a/src/lib/des425/des.h b/src/lib/des425/des.h index 2aed529bb..4e85536be 100644 --- a/src/lib/des425/des.h +++ b/src/lib/des425/des.h @@ -77,11 +77,11 @@ void des_init_random_number_generator(); KRB5_DLLIMP void KRB5_CALLCONV des_set_random_generator_seed(); void des_set_sequence_number(); void des_generate_random_block(); -int des_pcbc_encrypt(); -unsigned long des_quad_cksum(); +KRB5_DLLIMP int KRB5_CALLCONV des_pcbc_encrypt(); +KRB5_DLLIMP unsigned long KRB5_CALLCONV des_quad_cksum(); int des_random_key(); krb5_error_code des_read_password(); -int des_string_to_key(); +KRB5_DLLIMP int KRB5_CALLCONV des_string_to_key(); int des_is_weak_key(); #endif /* DES_DEFS */ diff --git a/src/lib/des425/pcbc_encrypt.c b/src/lib/des425/pcbc_encrypt.c index 92bc789a7..62d2f038e 100644 --- a/src/lib/des425/pcbc_encrypt.c +++ b/src/lib/des425/pcbc_encrypt.c @@ -70,7 +70,7 @@ typedef struct des_ks_struct bit_64; /* * des_pcbc_encrypt - {en,de}crypt a stream in PCBC mode */ -int +KRB5_DLLIMP int KRB5_CALLCONV des_pcbc_encrypt(in, out, length, schedule, ivec, encrypt) des_cblock *in; des_cblock *out; diff --git a/src/lib/des425/quad_cksum.c b/src/lib/des425/quad_cksum.c index 6a5a76bcc..447ea774d 100644 --- a/src/lib/des425/quad_cksum.c +++ b/src/lib/des425/quad_cksum.c @@ -120,13 +120,13 @@ extern int des_debug; /*** Routines ***************************************************** */ -unsigned long +KRB5_DLLIMP unsigned long KRB5_CALLCONV des_quad_cksum(in,out,length,out_count,c_seed) - mit_des_cblock *c_seed; /* secret seed, 8 bytes */ - unsigned char *in; /* input block */ - unsigned KRB_INT32 *out; /* optional longer output */ - int out_count; /* number of iterations */ - long length; /* original length in bytes */ + mit_des_cblock FAR *c_seed; /* secret seed, 8 bytes */ + unsigned char FAR *in; /* input block */ + unsigned KRB_INT32 FAR *out; /* optional longer output */ + int out_count; /* number of iterations */ + long length; /* original length in bytes */ { /* diff --git a/src/lib/des425/str_to_key.c b/src/lib/des425/str_to_key.c index cfd9914d2..3a2dcdcb6 100644 --- a/src/lib/des425/str_to_key.c +++ b/src/lib/des425/str_to_key.c @@ -48,10 +48,10 @@ extern int mit_des_debug; /* * convert an arbitrary length string to a DES key */ -int +KRB5_DLLIMP int KRB5_CALLCONV des_string_to_key(str,key) char *str; - register mit_des_cblock *key; + register mit_des_cblock key; { register char *in_str; register unsigned temp;