Added KRB5_DLLIMP and KRB5_CALLCONV so that these files build
authorTheodore Tso <tytso@mit.edu>
Sat, 5 Dec 1998 05:45:10 +0000 (05:45 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 5 Dec 1998 05:45:10 +0000 (05:45 +0000)
under Windows.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11069 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/checksum_length.c
src/lib/crypto/coll_proof_cksum.c
src/lib/crypto/enctype_compare.c
src/lib/crypto/keyed_checksum_types.c
src/lib/crypto/keyed_cksum.c
src/lib/crypto/make_checksum.c
src/lib/crypto/old_api_glue.c
src/lib/crypto/prng.c
src/lib/crypto/valid_cksumtype.c
src/lib/crypto/valid_enctype.c
src/lib/crypto/verify_checksum.c

index 38773cae01c8842a3df2b7b7650220156e5ae55f..ee89fe851d80a3bccbb3fa0521b0a67d6ac632cc 100644 (file)
@@ -27,7 +27,7 @@
 #include "k5-int.h"
 #include "cksumtypes.h"
 
-krb5_error_code
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
 krb5_c_checksum_length(context, cksumtype, length)
      krb5_context context;
      krb5_cksumtype cksumtype;
index 07925c641a0216e6e1d86610f3b830900e04fed0..31bf1feb873c0af901906da5eb62b203a63f5b76 100644 (file)
@@ -27,7 +27,8 @@
 #include "k5-int.h"
 #include "cksumtypes.h"
 
-krb5_boolean is_coll_proof_cksum(ctype)
+KRB5_DLLIMP krb5_boolean KRB5_CALLCONV
+is_coll_proof_cksum(ctype)
      krb5_cksumtype ctype;
 {
     int i;
index 897258968545a5d7c7e5896cd5f8c1a0e62897ca..25bcaceb4495eeb944c8b17156331a58d13fae38 100644 (file)
@@ -27,7 +27,7 @@
 #include "k5-int.h"
 #include "etypes.h"
 
-krb5_error_code
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
 krb5_c_enctype_compare(context, e1, e2, similar)
      krb5_context context;
      krb5_enctype e1;
index cf0b736f2f94a21a8bd8b2fedad5641fd921d742..aeb1e8fcdd987f7297d14e417cffc1c0b9bd191a 100644 (file)
@@ -46,7 +46,7 @@ static int etype_match(e1, e2)
           (krb5_enctypes_list[i1].enc == krb5_enctypes_list[i2].enc));
 }
 
-krb5_error_code
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
 krb5_c_keyed_checksum_types(context, enctype, count, cksumtypes)
      krb5_context context;
      krb5_enctype enctype;
@@ -83,7 +83,7 @@ krb5_c_keyed_checksum_types(context, enctype, count, cksumtypes)
     return(0);
 }
 
-void
+KRB5_DLLIMP void KRB5_CALLCONV
 krb5_free_cksumtypes(context, val)
     krb5_context context;
     krb5_cksumtype FAR * val;
index 0ff6d3e38c1c3bb53afef3eff461457d28ca8588..39979c056eccf7006d2be8d026392291e91a592a 100644 (file)
@@ -27,7 +27,8 @@
 #include "k5-int.h"
 #include "cksumtypes.h"
 
-krb5_boolean is_keyed_cksum(ctype)
+KRB5_DLLIMP krb5_boolean KRB5_CALLCONV
+is_keyed_cksum(ctype)
      krb5_cksumtype ctype;
 {
     int i;
index b2faef191f5be1ce951178e91ac503399d423c81..2be79ccb46c1d7170bd0a88529af084de6847535 100644 (file)
@@ -28,7 +28,7 @@
 #include "cksumtypes.h"
 #include "etypes.h"
 
-krb5_error_code
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
 krb5_c_make_checksum(context, cksumtype, key, usage, input, cksum)
      krb5_context context;
      krb5_cksumtype cksumtype;
index 64be9b8891b769eeb91f85a7c1e514e63a0e23b1..ff8921a75faa530e100ff79bd162c59b8751bc2c 100644 (file)
@@ -26,7 +26,8 @@
 
 #include "k5-int.h"
 
-krb5_error_code krb5_encrypt(context, inptr, outptr, size, eblock, ivec)
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
+krb5_encrypt(context, inptr, outptr, size, eblock, ivec)
      krb5_context context;
      krb5_const krb5_pointer inptr;
      krb5_pointer outptr;
@@ -64,7 +65,8 @@ krb5_error_code krb5_encrypt(context, inptr, outptr, size, eblock, ivec)
                          &inputd, &outputd));
 }
 
-krb5_error_code krb5_decrypt(context, inptr, outptr, size, eblock, ivec)
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
+krb5_decrypt(context, inptr, outptr, size, eblock, ivec)
      krb5_context context;
      krb5_const krb5_pointer inptr;
      krb5_pointer outptr;
@@ -100,7 +102,8 @@ krb5_error_code krb5_decrypt(context, inptr, outptr, size, eblock, ivec)
                          &inputd, &outputd));
 }
 
-krb5_error_code krb5_process_key(context, eblock, key)
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
+krb5_process_key(context, eblock, key)
      krb5_context context;
      krb5_encrypt_block FAR * eblock;
      krb5_const krb5_keyblock FAR * key;
@@ -110,14 +113,16 @@ krb5_error_code krb5_process_key(context, eblock, key)
     return(0);
 }
 
-krb5_error_code krb5_finish_key(context, eblock)
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
+krb5_finish_key(context, eblock)
      krb5_context context;
      krb5_encrypt_block FAR * eblock;
 {
     return(0);
 }
 
-krb5_error_code krb5_string_to_key(context, eblock, keyblock, data, salt)
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
+krb5_string_to_key(context, eblock, keyblock, data, salt)
      krb5_context context;
      krb5_const krb5_encrypt_block FAR * eblock;
      krb5_keyblock FAR * keyblock;
@@ -128,7 +133,8 @@ krb5_error_code krb5_string_to_key(context, eblock, keyblock, data, salt)
                                keyblock));
 }
 
-krb5_error_code krb5_init_random_key(context, eblock, keyblock, ptr)
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
+krb5_init_random_key(context, eblock, keyblock, ptr)
      krb5_context context;
      krb5_const krb5_encrypt_block FAR * eblock;
      krb5_const krb5_keyblock FAR * keyblock;
@@ -142,7 +148,8 @@ krb5_error_code krb5_init_random_key(context, eblock, keyblock, ptr)
     return(krb5_c_random_seed(context, &data));
 }
 
-krb5_error_code krb5_finish_random_key(context, eblock, ptr)
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
+krb5_finish_random_key(context, eblock, ptr)
      krb5_context context;
      krb5_const krb5_encrypt_block FAR * eblock;
      krb5_pointer FAR * ptr;
@@ -150,7 +157,8 @@ krb5_error_code krb5_finish_random_key(context, eblock, ptr)
     return(0);
 }
 
-krb5_error_code krb5_random_key(context, eblock, ptr, keyblock)
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
+krb5_random_key(context, eblock, ptr, keyblock)
      krb5_context context;
      krb5_const krb5_encrypt_block FAR * eblock;
      krb5_pointer ptr;
@@ -170,14 +178,16 @@ krb5_error_code krb5_random_key(context, eblock, ptr, keyblock)
     return(ret);
 }
 
-krb5_enctype krb5_eblock_enctype(context, eblock)
+KRB5_DLLIMP krb5_enctype KRB5_CALLCONV
+krb5_eblock_enctype(context, eblock)
      krb5_context context;
      krb5_const krb5_encrypt_block FAR * eblock;
 {
     return(eblock->crypto_entry);
 }
 
-krb5_error_code krb5_use_enctype(context, eblock, enctype)
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
+krb5_use_enctype(context, eblock, enctype)
      krb5_context context;
      krb5_encrypt_block FAR * eblock;
      krb5_const krb5_enctype enctype;
@@ -187,7 +197,8 @@ krb5_error_code krb5_use_enctype(context, eblock, enctype)
     return(0);
 }
 
-size_t krb5_encrypt_size(length, crypto)
+KRB5_DLLIMP size_t KRB5_CALLCONV
+krb5_encrypt_size(length, crypto)
      size_t length;
      krb5_enctype crypto;
 {
@@ -199,7 +210,8 @@ size_t krb5_encrypt_size(length, crypto)
     return(ret);
 }
 
-size_t krb5_checksum_size(context, ctype)
+KRB5_DLLIMP size_t KRB5_CALLCONV
+krb5_checksum_size(context, ctype)
      krb5_context context;
      krb5_cksumtype ctype;
 {
@@ -211,7 +223,8 @@ size_t krb5_checksum_size(context, ctype)
     return(ret);
 }
 
-krb5_error_code krb5_calculate_checksum(context, ctype, in, in_length,
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
+krb5_calculate_checksum(context, ctype, in, in_length,
                                        seed, seed_length, outcksum)
      krb5_context context;
      krb5_const krb5_cksumtype ctype;
@@ -251,7 +264,8 @@ krb5_error_code krb5_calculate_checksum(context, ctype, in, in_length,
     return(0);
 }
 
-krb5_error_code krb5_verify_checksum(context, ctype, cksum, in, in_length,
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
+krb5_verify_checksum(context, ctype, cksum, in, in_length,
                                     seed, seed_length)
      krb5_context context;
      krb5_cksumtype ctype;
@@ -282,7 +296,8 @@ krb5_error_code krb5_verify_checksum(context, ctype, cksum, in, in_length,
     return(0);
 }
 
-krb5_error_code krb5_random_confounder(size, ptr)
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
+krb5_random_confounder(size, ptr)
      size_t size;
      krb5_pointer ptr;
 {
index 2d4f6647d4336cdea0d189fdd5800edf9fe1dc05..57b2d36baa77f1b2d1b090b5f3edaee7d6f2afbd 100644 (file)
@@ -58,7 +58,7 @@ static unsigned char *random_state;
 #define NEWSTATE (KEYCONTENTS+keylength)
 #define ALLSTATESIZE (keybytes+blocksize*2+keylength+keybytes+blocksize)
 
-krb5_error_code
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
 krb5_c_random_seed(krb5_context context, krb5_data *data)
 {
     unsigned char *fold_input;
@@ -93,7 +93,7 @@ krb5_c_random_seed(krb5_context context, krb5_data *data)
     return(0);
 }
 
-krb5_error_code
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
 krb5_c_random_make_octets(krb5_context context, krb5_data *data)
 {
     krb5_error_code ret;
index 24108a3eca728f7279018a9add754a0f42af8a3b..68000bedf5e700557cbe68f9b148b604594c45dc 100644 (file)
@@ -27,7 +27,8 @@
 #include "k5-int.h"
 #include "cksumtypes.h"
 
-krb5_boolean valid_cksumtype(ctype)
+KRB5_DLLIMP krb5_boolean KRB5_CALLCONV
+valid_cksumtype(ctype)
      krb5_cksumtype ctype;
 {
     int i;
index 03944c068ca76461359f8457b09ea6a55047c828..39e48c0d76d656c058c7e1d49c94e3f8fb5a6051 100644 (file)
@@ -27,7 +27,8 @@
 #include "k5-int.h"
 #include "etypes.h"
 
-krb5_boolean valid_enctype(etype)
+KRB5_DLLIMP krb5_boolean KRB5_CALLCONV
+valid_enctype(etype)
      krb5_enctype etype;
 {
     int i;
index f2749c8dea3a30268022117d3cbc80e28b5c88b8..c25e921a8d0da265a5e1f182a1bcce53f02ef2cd 100644 (file)
@@ -27,7 +27,7 @@
 #include "k5-int.h"
 #include "cksumtypes.h"
 
-krb5_error_code
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
 krb5_c_verify_checksum(context, key, usage, data, cksum, valid)
      krb5_context context;
      krb5_const krb5_keyblock *key;