add KRB5_LIB_FUNCTION to all exported functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13863 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -38,7 +38,7 @@ RCSID("$Id$");
|
||||
* Glue for MIT API
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_c_make_checksum(krb5_context context,
|
||||
krb5_cksumtype cksumtype,
|
||||
const krb5_keyblock *key,
|
||||
@@ -60,7 +60,7 @@ krb5_c_make_checksum(krb5_context context,
|
||||
return ret ;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_c_verify_checksum(krb5_context context, const krb5_keyblock *key,
|
||||
krb5_keyusage usage, const krb5_data *data,
|
||||
const krb5_checksum *cksum, krb5_boolean *valid)
|
||||
@@ -85,7 +85,7 @@ krb5_c_verify_checksum(krb5_context context, const krb5_keyblock *key,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_c_get_checksum(krb5_context context, const krb5_checksum *cksum,
|
||||
krb5_cksumtype *type, krb5_data **data)
|
||||
{
|
||||
@@ -108,7 +108,7 @@ krb5_c_get_checksum(krb5_context context, const krb5_checksum *cksum,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_c_set_checksum(krb5_context context, krb5_checksum *cksum,
|
||||
krb5_cksumtype type, const krb5_data *data)
|
||||
{
|
||||
@@ -116,50 +116,50 @@ krb5_c_set_checksum(krb5_context context, krb5_checksum *cksum,
|
||||
return copy_octet_string(data, &cksum->checksum);
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_free_checksum (krb5_context context, krb5_checksum *cksum)
|
||||
{
|
||||
krb5_checksum_free(context, cksum);
|
||||
free(cksum);
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_free_checksum_contents(krb5_context context, krb5_checksum *cksum)
|
||||
{
|
||||
krb5_checksum_free(context, cksum);
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_checksum_free(krb5_context context, krb5_checksum *cksum)
|
||||
{
|
||||
free_Checksum(cksum);
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_c_valid_enctype (krb5_enctype etype)
|
||||
{
|
||||
return krb5_enctype_valid(NULL, etype);
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_c_valid_cksumtype(krb5_cksumtype ctype)
|
||||
{
|
||||
return krb5_cksumtype_valid(NULL, ctype);
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_c_is_coll_proof_cksum(krb5_cksumtype ctype)
|
||||
{
|
||||
return krb5_checksum_is_collision_proof(NULL, ctype);
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_c_is_keyed_cksum(krb5_cksumtype ctype)
|
||||
{
|
||||
return krb5_checksum_is_keyed(NULL, ctype);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_copy_checksum (krb5_context context,
|
||||
const krb5_checksum *old,
|
||||
krb5_checksum **new)
|
||||
@@ -170,14 +170,14 @@ krb5_copy_checksum (krb5_context context,
|
||||
return copy_Checksum(old, *new);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_c_checksum_length (krb5_context context, krb5_cksumtype cksumtype,
|
||||
size_t *length)
|
||||
{
|
||||
return krb5_checksumsize(context, cksumtype, length);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_c_block_size(krb5_context context,
|
||||
krb5_enctype enctype,
|
||||
size_t *blocksize)
|
||||
@@ -200,7 +200,7 @@ krb5_c_block_size(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_c_decrypt(krb5_context context,
|
||||
const krb5_keyblock key,
|
||||
krb5_keyusage usage,
|
||||
@@ -240,7 +240,7 @@ krb5_c_decrypt(krb5_context context,
|
||||
return ret ;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_c_encrypt(krb5_context context,
|
||||
const krb5_keyblock *key,
|
||||
krb5_keyusage usage,
|
||||
@@ -282,7 +282,7 @@ krb5_c_encrypt(krb5_context context,
|
||||
return ret ;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_c_encrypt_length(krb5_context context,
|
||||
krb5_enctype enctype,
|
||||
size_t inputlen,
|
||||
@@ -307,7 +307,7 @@ krb5_c_encrypt_length(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_c_enctype_compare(krb5_context context,
|
||||
krb5_enctype e1,
|
||||
krb5_enctype e2,
|
||||
@@ -317,7 +317,7 @@ krb5_c_enctype_compare(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_c_make_random_key(krb5_context context,
|
||||
krb5_enctype enctype,
|
||||
krb5_keyblock *random_key)
|
||||
|
Reference in New Issue
Block a user