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:
@@ -152,7 +152,7 @@ acl_match_acl(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_acl_match_string(krb5_context context,
|
||||
const char *string,
|
||||
const char *format,
|
||||
@@ -179,7 +179,7 @@ krb5_acl_match_string(krb5_context context,
|
||||
}
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_acl_match_file(krb5_context context,
|
||||
const char *file,
|
||||
const char *format,
|
||||
|
@@ -602,7 +602,7 @@ find_atype(int atype)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_sockaddr2address (krb5_context context,
|
||||
const struct sockaddr *sa, krb5_address *addr)
|
||||
{
|
||||
@@ -615,7 +615,7 @@ krb5_sockaddr2address (krb5_context context,
|
||||
return (*a->sockaddr2addr)(sa, addr);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_sockaddr2port (krb5_context context,
|
||||
const struct sockaddr *sa, int16_t *port)
|
||||
{
|
||||
@@ -628,7 +628,7 @@ krb5_sockaddr2port (krb5_context context,
|
||||
return (*a->sockaddr2port)(sa, port);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_addr2sockaddr (krb5_context context,
|
||||
const krb5_address *addr,
|
||||
struct sockaddr *sa,
|
||||
@@ -651,7 +651,7 @@ krb5_addr2sockaddr (krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
size_t
|
||||
size_t KRB5_LIB_FUNCTION
|
||||
krb5_max_sockaddr_size (void)
|
||||
{
|
||||
if (max_sockaddr_size == 0) {
|
||||
@@ -663,7 +663,7 @@ krb5_max_sockaddr_size (void)
|
||||
return max_sockaddr_size;
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_sockaddr_uninteresting(const struct sockaddr *sa)
|
||||
{
|
||||
struct addr_operations *a = find_af(sa->sa_family);
|
||||
@@ -672,7 +672,7 @@ krb5_sockaddr_uninteresting(const struct sockaddr *sa)
|
||||
return (*a->uninteresting)(sa);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_h_addr2sockaddr (krb5_context context,
|
||||
int af,
|
||||
const char *addr, struct sockaddr *sa,
|
||||
@@ -688,7 +688,7 @@ krb5_h_addr2sockaddr (krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_h_addr2addr (krb5_context context,
|
||||
int af,
|
||||
const char *haddr, krb5_address *addr)
|
||||
@@ -701,7 +701,7 @@ krb5_h_addr2addr (krb5_context context,
|
||||
return (*a->h_addr2addr)(haddr, addr);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_anyaddr (krb5_context context,
|
||||
int af,
|
||||
struct sockaddr *sa,
|
||||
@@ -719,7 +719,7 @@ krb5_anyaddr (krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_print_address (const krb5_address *addr,
|
||||
char *str, size_t len, size_t *ret_len)
|
||||
{
|
||||
@@ -754,7 +754,7 @@ krb5_print_address (const krb5_address *addr,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_parse_address(krb5_context context,
|
||||
const char *string,
|
||||
krb5_addresses *addresses)
|
||||
@@ -797,7 +797,7 @@ krb5_parse_address(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
krb5_address_order(krb5_context context,
|
||||
const krb5_address *addr1,
|
||||
const krb5_address *addr2)
|
||||
@@ -831,7 +831,7 @@ krb5_address_order(krb5_context context,
|
||||
addr1->address.length);
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_address_compare(krb5_context context,
|
||||
const krb5_address *addr1,
|
||||
const krb5_address *addr2)
|
||||
@@ -839,7 +839,7 @@ krb5_address_compare(krb5_context context,
|
||||
return krb5_address_order (context, addr1, addr2) == 0;
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_address_search(krb5_context context,
|
||||
const krb5_address *addr,
|
||||
const krb5_addresses *addrlist)
|
||||
@@ -852,7 +852,7 @@ krb5_address_search(krb5_context context,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_free_address(krb5_context context,
|
||||
krb5_address *address)
|
||||
{
|
||||
@@ -863,7 +863,7 @@ krb5_free_address(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_free_addresses(krb5_context context,
|
||||
krb5_addresses *addresses)
|
||||
{
|
||||
@@ -874,7 +874,7 @@ krb5_free_addresses(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_copy_address(krb5_context context,
|
||||
const krb5_address *inaddr,
|
||||
krb5_address *outaddr)
|
||||
@@ -885,7 +885,7 @@ krb5_copy_address(krb5_context context,
|
||||
return copy_HostAddress(inaddr, outaddr);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_copy_addresses(krb5_context context,
|
||||
const krb5_addresses *inaddr,
|
||||
krb5_addresses *outaddr)
|
||||
@@ -899,7 +899,7 @@ krb5_copy_addresses(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_append_addresses(krb5_context context,
|
||||
krb5_addresses *dest,
|
||||
const krb5_addresses *source)
|
||||
@@ -933,7 +933,7 @@ krb5_append_addresses(krb5_context context,
|
||||
* Create an address of type KRB5_ADDRESS_ADDRPORT from (addr, port)
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_make_addrport (krb5_context context,
|
||||
krb5_address **res, const krb5_address *addr, int16_t port)
|
||||
{
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_aname_to_localname (krb5_context context,
|
||||
krb5_const_principal aname,
|
||||
size_t lnsize,
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION KRB5_LIB_FUNCTION
|
||||
krb5_appdefault_boolean(krb5_context context, const char *appname,
|
||||
krb5_const_realm realm, const char *option,
|
||||
krb5_boolean def_val, krb5_boolean *ret_val)
|
||||
@@ -77,7 +77,7 @@ krb5_appdefault_boolean(krb5_context context, const char *appname,
|
||||
*ret_val = def_val;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION KRB5_LIB_FUNCTION
|
||||
krb5_appdefault_string(krb5_context context, const char *appname,
|
||||
krb5_const_realm realm, const char *option,
|
||||
const char *def_val, char **ret_val)
|
||||
@@ -121,7 +121,7 @@ krb5_appdefault_string(krb5_context context, const char *appname,
|
||||
*ret_val = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION KRB5_LIB_FUNCTION
|
||||
krb5_appdefault_time(krb5_context context, const char *appname,
|
||||
krb5_const_realm realm, const char *option,
|
||||
time_t def_val, time_t *ret_val)
|
||||
|
@@ -39,14 +39,14 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_principal2principalname (PrincipalName *p,
|
||||
const krb5_principal from)
|
||||
{
|
||||
return copy_PrincipalName(&from->name, p);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
principalname2krb5_principal (krb5_principal *principal,
|
||||
const PrincipalName from,
|
||||
const Realm realm)
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_init(krb5_context context,
|
||||
krb5_auth_context *auth_context)
|
||||
{
|
||||
@@ -66,7 +66,7 @@ krb5_auth_con_init(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_free(krb5_context context,
|
||||
krb5_auth_context auth_context)
|
||||
{
|
||||
@@ -88,7 +88,7 @@ krb5_auth_con_free(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_setflags(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
int32_t flags)
|
||||
@@ -98,7 +98,7 @@ krb5_auth_con_setflags(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_getflags(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
int32_t *flags)
|
||||
@@ -107,7 +107,7 @@ krb5_auth_con_getflags(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_addflags(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
int32_t addflags,
|
||||
@@ -119,7 +119,7 @@ krb5_auth_con_addflags(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_removeflags(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
int32_t removeflags,
|
||||
@@ -131,7 +131,7 @@ krb5_auth_con_removeflags(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_setaddrs(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_address *local_addr,
|
||||
@@ -154,7 +154,7 @@ krb5_auth_con_setaddrs(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_genaddrs(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
int fd, int flags)
|
||||
@@ -213,7 +213,7 @@ krb5_auth_con_genaddrs(krb5_context context,
|
||||
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_setaddrs_from_fd (krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
void *p_fd)
|
||||
@@ -227,7 +227,7 @@ krb5_auth_con_setaddrs_from_fd (krb5_context context,
|
||||
return krb5_auth_con_genaddrs(context, auth_context, fd, flags);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_getaddrs(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_address **local_addr,
|
||||
@@ -270,7 +270,7 @@ copy_key(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_getkey(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_keyblock **keyblock)
|
||||
@@ -278,7 +278,7 @@ krb5_auth_con_getkey(krb5_context context,
|
||||
return copy_key(context, auth_context->keyblock, keyblock);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_getlocalsubkey(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_keyblock **keyblock)
|
||||
@@ -286,7 +286,7 @@ krb5_auth_con_getlocalsubkey(krb5_context context,
|
||||
return copy_key(context, auth_context->local_subkey, keyblock);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_getremotesubkey(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_keyblock **keyblock)
|
||||
@@ -294,7 +294,7 @@ krb5_auth_con_getremotesubkey(krb5_context context,
|
||||
return copy_key(context, auth_context->remote_subkey, keyblock);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_setkey(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_keyblock *keyblock)
|
||||
@@ -304,7 +304,7 @@ krb5_auth_con_setkey(krb5_context context,
|
||||
return copy_key(context, keyblock, &auth_context->keyblock);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_setlocalsubkey(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_keyblock *keyblock)
|
||||
@@ -314,7 +314,7 @@ krb5_auth_con_setlocalsubkey(krb5_context context,
|
||||
return copy_key(context, keyblock, &auth_context->local_subkey);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_generatelocalsubkey(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_keyblock *key)
|
||||
@@ -332,7 +332,7 @@ krb5_auth_con_generatelocalsubkey(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_setremotesubkey(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_keyblock *keyblock)
|
||||
@@ -342,7 +342,7 @@ krb5_auth_con_setremotesubkey(krb5_context context,
|
||||
return copy_key(context, keyblock, &auth_context->remote_subkey);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_setcksumtype(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_cksumtype cksumtype)
|
||||
@@ -351,7 +351,7 @@ krb5_auth_con_setcksumtype(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_getcksumtype(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_cksumtype *cksumtype)
|
||||
@@ -360,7 +360,7 @@ krb5_auth_con_getcksumtype(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_setkeytype (krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_keytype keytype)
|
||||
@@ -369,7 +369,7 @@ krb5_auth_con_setkeytype (krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_getkeytype (krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_keytype *keytype)
|
||||
@@ -379,7 +379,7 @@ krb5_auth_con_getkeytype (krb5_context context,
|
||||
}
|
||||
|
||||
#if 0
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_setenctype(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_enctype etype)
|
||||
@@ -393,7 +393,7 @@ krb5_auth_con_setenctype(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_getenctype(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_enctype *etype)
|
||||
@@ -402,7 +402,7 @@ krb5_auth_con_getenctype(krb5_context context,
|
||||
}
|
||||
#endif
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_getlocalseqnumber(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
int32_t *seqnumber)
|
||||
@@ -411,7 +411,7 @@ krb5_auth_con_getlocalseqnumber(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_setlocalseqnumber (krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
int32_t seqnumber)
|
||||
@@ -420,7 +420,7 @@ krb5_auth_con_setlocalseqnumber (krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_getremoteseqnumber(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
int32_t *seqnumber)
|
||||
@@ -429,7 +429,7 @@ krb5_auth_getremoteseqnumber(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_setremoteseqnumber (krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
int32_t seqnumber)
|
||||
@@ -439,7 +439,7 @@ krb5_auth_con_setremoteseqnumber (krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_getauthenticator(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_authenticator *authenticator)
|
||||
@@ -456,7 +456,7 @@ krb5_auth_con_getauthenticator(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_free_authenticator(krb5_context context,
|
||||
krb5_authenticator *authenticator)
|
||||
{
|
||||
@@ -466,7 +466,7 @@ krb5_free_authenticator(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_setuserkey(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_keyblock *keyblock)
|
||||
@@ -476,7 +476,7 @@ krb5_auth_con_setuserkey(krb5_context context,
|
||||
return krb5_copy_keyblock(context, keyblock, &auth_context->keyblock);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_getrcache(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_rcache *rcache)
|
||||
@@ -485,7 +485,7 @@ krb5_auth_con_getrcache(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_setrcache(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_rcache rcache)
|
||||
@@ -496,7 +496,7 @@ krb5_auth_con_setrcache(krb5_context context,
|
||||
|
||||
#if 0 /* not implemented */
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_initivector(krb5_context context,
|
||||
krb5_auth_context auth_context)
|
||||
{
|
||||
@@ -504,7 +504,7 @@ krb5_auth_con_initivector(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_auth_con_setivector(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_pointer ivector)
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_build_ap_req (krb5_context context,
|
||||
krb5_enctype enctype,
|
||||
krb5_creds *cred,
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_build_authenticator (krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_enctype enctype,
|
||||
|
@@ -41,7 +41,7 @@ RCSID("$Id$");
|
||||
* Return an error code or 0.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_register(krb5_context context,
|
||||
const krb5_cc_ops *ops,
|
||||
krb5_boolean override)
|
||||
@@ -110,7 +110,7 @@ allocate_ccache (krb5_context context,
|
||||
* Return 0 or an error code.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_resolve(krb5_context context,
|
||||
const char *name,
|
||||
krb5_ccache *id)
|
||||
@@ -140,7 +140,7 @@ krb5_cc_resolve(krb5_context context,
|
||||
* Return 0 or an error code.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_gen_new(krb5_context context,
|
||||
const krb5_cc_ops *ops,
|
||||
krb5_ccache *id)
|
||||
@@ -161,7 +161,7 @@ krb5_cc_gen_new(krb5_context context,
|
||||
* Return the name of the ccache `id'
|
||||
*/
|
||||
|
||||
const char*
|
||||
const char* KRB5_LIB_FUNCTION
|
||||
krb5_cc_get_name(krb5_context context,
|
||||
krb5_ccache id)
|
||||
{
|
||||
@@ -172,7 +172,7 @@ krb5_cc_get_name(krb5_context context,
|
||||
* Return the type of the ccache `id'.
|
||||
*/
|
||||
|
||||
const char*
|
||||
const char* KRB5_LIB_FUNCTION
|
||||
krb5_cc_get_type(krb5_context context,
|
||||
krb5_ccache id)
|
||||
{
|
||||
@@ -193,7 +193,7 @@ krb5_cc_get_ops(krb5_context context, krb5_ccache id)
|
||||
* Set the default cc name for `context' to `name'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_set_default_name(krb5_context context, const char *name)
|
||||
{
|
||||
krb5_error_code ret = 0;
|
||||
@@ -226,7 +226,7 @@ krb5_cc_set_default_name(krb5_context context, const char *name)
|
||||
* ccache name.
|
||||
*/
|
||||
|
||||
const char*
|
||||
const char* KRB5_LIB_FUNCTION
|
||||
krb5_cc_default_name(krb5_context context)
|
||||
{
|
||||
if (context->default_cc_name == NULL)
|
||||
@@ -240,7 +240,7 @@ krb5_cc_default_name(krb5_context context)
|
||||
* Return 0 or an error code.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_default(krb5_context context,
|
||||
krb5_ccache *id)
|
||||
{
|
||||
@@ -256,7 +256,7 @@ krb5_cc_default(krb5_context context,
|
||||
* Return 0 or an error code.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_initialize(krb5_context context,
|
||||
krb5_ccache id,
|
||||
krb5_principal primary_principal)
|
||||
@@ -270,7 +270,7 @@ krb5_cc_initialize(krb5_context context,
|
||||
* Return 0 or an error code.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_destroy(krb5_context context,
|
||||
krb5_ccache id)
|
||||
{
|
||||
@@ -286,7 +286,7 @@ krb5_cc_destroy(krb5_context context,
|
||||
* Return 0 or an error code.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_close(krb5_context context,
|
||||
krb5_ccache id)
|
||||
{
|
||||
@@ -301,7 +301,7 @@ krb5_cc_close(krb5_context context,
|
||||
* Return 0 or an error code.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_store_cred(krb5_context context,
|
||||
krb5_ccache id,
|
||||
krb5_creds *creds)
|
||||
@@ -315,7 +315,7 @@ krb5_cc_store_cred(krb5_context context,
|
||||
* Return 0 or an error code.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_retrieve_cred(krb5_context context,
|
||||
krb5_ccache id,
|
||||
krb5_flags whichfields,
|
||||
@@ -341,7 +341,7 @@ krb5_cc_retrieve_cred(krb5_context context,
|
||||
* Return 0 or an error code.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_get_principal(krb5_context context,
|
||||
krb5_ccache id,
|
||||
krb5_principal *principal)
|
||||
@@ -355,7 +355,7 @@ krb5_cc_get_principal(krb5_context context,
|
||||
* Return 0 or an error code.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_start_seq_get (krb5_context context,
|
||||
const krb5_ccache id,
|
||||
krb5_cc_cursor *cursor)
|
||||
@@ -369,7 +369,7 @@ krb5_cc_start_seq_get (krb5_context context,
|
||||
* Return 0 or an error code.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_next_cred (krb5_context context,
|
||||
const krb5_ccache id,
|
||||
krb5_cc_cursor *cursor,
|
||||
@@ -380,7 +380,7 @@ krb5_cc_next_cred (krb5_context context,
|
||||
|
||||
/* like krb5_cc_next_cred, but allow for selective retrieval */
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_next_cred_match(krb5_context context,
|
||||
const krb5_ccache id,
|
||||
krb5_cc_cursor * cursor,
|
||||
@@ -403,7 +403,7 @@ krb5_cc_next_cred_match(krb5_context context,
|
||||
* Destroy the cursor `cursor'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_end_seq_get (krb5_context context,
|
||||
const krb5_ccache id,
|
||||
krb5_cc_cursor *cursor)
|
||||
@@ -415,7 +415,7 @@ krb5_cc_end_seq_get (krb5_context context,
|
||||
* Remove the credential identified by `cred', `which' from `id'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_remove_cred(krb5_context context,
|
||||
krb5_ccache id,
|
||||
krb5_flags which,
|
||||
@@ -434,7 +434,7 @@ krb5_cc_remove_cred(krb5_context context,
|
||||
* Set the flags of `id' to `flags'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_set_flags(krb5_context context,
|
||||
krb5_ccache id,
|
||||
krb5_flags flags)
|
||||
@@ -446,7 +446,7 @@ krb5_cc_set_flags(krb5_context context,
|
||||
* Copy the contents of `from' to `to'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_copy_cache_match(krb5_context context,
|
||||
const krb5_ccache from,
|
||||
krb5_ccache to,
|
||||
@@ -487,7 +487,7 @@ krb5_cc_copy_cache_match(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_copy_cache(krb5_context context,
|
||||
const krb5_ccache from,
|
||||
krb5_ccache to)
|
||||
@@ -499,7 +499,7 @@ krb5_cc_copy_cache(krb5_context context,
|
||||
* Return the version of `id'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cc_get_version(krb5_context context,
|
||||
const krb5_ccache id)
|
||||
{
|
||||
@@ -513,7 +513,7 @@ krb5_cc_get_version(krb5_context context,
|
||||
* Clear `mcreds' so it can be used with krb5_cc_retrieve_cred
|
||||
*/
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_cc_clear_mcred(krb5_creds *mcred)
|
||||
{
|
||||
memset(mcred, 0, sizeof(*mcred));
|
||||
|
@@ -658,7 +658,7 @@ change_password_loop (krb5_context context,
|
||||
* the operation in `result_*' and an error code or 0.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_change_password (krb5_context context,
|
||||
krb5_creds *creds,
|
||||
char *newpw,
|
||||
@@ -684,7 +684,7 @@ krb5_change_password (krb5_context context,
|
||||
*
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_set_password (krb5_context context,
|
||||
krb5_ccache ccache,
|
||||
char *newpw,
|
||||
@@ -751,7 +751,7 @@ krb5_set_password (krb5_context context,
|
||||
*
|
||||
*/
|
||||
|
||||
const char *
|
||||
const char* KRB5_LIB_FUNCTION
|
||||
krb5_passwd_result_to_string (krb5_context context,
|
||||
int result)
|
||||
{
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_decode_EncTicketPart (krb5_context context,
|
||||
const void *data,
|
||||
size_t length,
|
||||
@@ -45,7 +45,7 @@ krb5_decode_EncTicketPart (krb5_context context,
|
||||
return decode_EncTicketPart(data, length, t, len);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_encode_EncTicketPart (krb5_context context,
|
||||
void *data,
|
||||
size_t length,
|
||||
@@ -55,7 +55,7 @@ krb5_encode_EncTicketPart (krb5_context context,
|
||||
return encode_EncTicketPart(data, length, t, len);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_decode_EncASRepPart (krb5_context context,
|
||||
const void *data,
|
||||
size_t length,
|
||||
@@ -65,7 +65,7 @@ krb5_decode_EncASRepPart (krb5_context context,
|
||||
return decode_EncASRepPart(data, length, t, len);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_encode_EncASRepPart (krb5_context context,
|
||||
void *data,
|
||||
size_t length,
|
||||
@@ -75,7 +75,7 @@ krb5_encode_EncASRepPart (krb5_context context,
|
||||
return encode_EncASRepPart(data, length, t, len);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_decode_EncTGSRepPart (krb5_context context,
|
||||
const void *data,
|
||||
size_t length,
|
||||
@@ -85,7 +85,7 @@ krb5_decode_EncTGSRepPart (krb5_context context,
|
||||
return decode_EncTGSRepPart(data, length, t, len);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_encode_EncTGSRepPart (krb5_context context,
|
||||
void *data,
|
||||
size_t length,
|
||||
@@ -95,7 +95,7 @@ krb5_encode_EncTGSRepPart (krb5_context context,
|
||||
return encode_EncTGSRepPart(data, length, t, len);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_decode_EncAPRepPart (krb5_context context,
|
||||
const void *data,
|
||||
size_t length,
|
||||
@@ -105,7 +105,7 @@ krb5_decode_EncAPRepPart (krb5_context context,
|
||||
return decode_EncAPRepPart(data, length, t, len);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_encode_EncAPRepPart (krb5_context context,
|
||||
void *data,
|
||||
size_t length,
|
||||
@@ -115,7 +115,7 @@ krb5_encode_EncAPRepPart (krb5_context context,
|
||||
return encode_EncAPRepPart(data, length, t, len);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_decode_Authenticator (krb5_context context,
|
||||
const void *data,
|
||||
size_t length,
|
||||
@@ -125,7 +125,7 @@ krb5_decode_Authenticator (krb5_context context,
|
||||
return decode_Authenticator(data, length, t, len);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_encode_Authenticator (krb5_context context,
|
||||
void *data,
|
||||
size_t length,
|
||||
@@ -135,7 +135,7 @@ krb5_encode_Authenticator (krb5_context context,
|
||||
return encode_Authenticator(data, length, t, len);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_decode_EncKrbCredPart (krb5_context context,
|
||||
const void *data,
|
||||
size_t length,
|
||||
@@ -145,7 +145,7 @@ krb5_decode_EncKrbCredPart (krb5_context context,
|
||||
return decode_EncKrbCredPart(data, length, t, len);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_encode_EncKrbCredPart (krb5_context context,
|
||||
void *data,
|
||||
size_t length,
|
||||
@@ -155,7 +155,7 @@ krb5_encode_EncKrbCredPart (krb5_context context,
|
||||
return encode_EncKrbCredPart (data, length, t, len);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_decode_ETYPE_INFO (krb5_context context,
|
||||
const void *data,
|
||||
size_t length,
|
||||
@@ -165,7 +165,7 @@ krb5_decode_ETYPE_INFO (krb5_context context,
|
||||
return decode_ETYPE_INFO(data, length, t, len);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_encode_ETYPE_INFO (krb5_context context,
|
||||
void *data,
|
||||
size_t length,
|
||||
@@ -175,7 +175,7 @@ krb5_encode_ETYPE_INFO (krb5_context context,
|
||||
return encode_ETYPE_INFO (data, length, t, len);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_decode_ETYPE_INFO2 (krb5_context context,
|
||||
const void *data,
|
||||
size_t length,
|
||||
@@ -185,7 +185,7 @@ krb5_decode_ETYPE_INFO2 (krb5_context context,
|
||||
return decode_ETYPE_INFO2(data, length, t, len);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_encode_ETYPE_INFO2 (krb5_context context,
|
||||
void *data,
|
||||
size_t length,
|
||||
|
@@ -283,7 +283,7 @@ krb5_config_parse_debug (struct fileptr *f,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_config_parse_string_multi(krb5_context context,
|
||||
const char *string,
|
||||
krb5_config_section **res)
|
||||
@@ -303,7 +303,7 @@ krb5_config_parse_string_multi(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_config_parse_file_multi (krb5_context context,
|
||||
const char *fname,
|
||||
krb5_config_section **res)
|
||||
@@ -329,7 +329,7 @@ krb5_config_parse_file_multi (krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_config_parse_file (krb5_context context,
|
||||
const char *fname,
|
||||
krb5_config_section **res)
|
||||
@@ -360,7 +360,7 @@ free_binding (krb5_context context, krb5_config_binding *b)
|
||||
}
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_config_file_free (krb5_context context, krb5_config_section *s)
|
||||
{
|
||||
free_binding (context, s);
|
||||
@@ -490,7 +490,7 @@ krb5_config_vget_list (krb5_context context,
|
||||
return krb5_config_vget (context, c, krb5_config_list, args);
|
||||
}
|
||||
|
||||
const char *
|
||||
const char* KRB5_LIB_FUNCTION
|
||||
krb5_config_get_string (krb5_context context,
|
||||
const krb5_config_section *c,
|
||||
...)
|
||||
@@ -504,7 +504,7 @@ krb5_config_get_string (krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
const char *
|
||||
const char* KRB5_LIB_FUNCTION
|
||||
krb5_config_vget_string (krb5_context context,
|
||||
const krb5_config_section *c,
|
||||
va_list args)
|
||||
@@ -512,7 +512,7 @@ krb5_config_vget_string (krb5_context context,
|
||||
return krb5_config_vget (context, c, krb5_config_string, args);
|
||||
}
|
||||
|
||||
const char *
|
||||
const char* KRB5_LIB_FUNCTION
|
||||
krb5_config_vget_string_default (krb5_context context,
|
||||
const krb5_config_section *c,
|
||||
const char *def_value,
|
||||
@@ -526,7 +526,7 @@ krb5_config_vget_string_default (krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
const char *
|
||||
const char* KRB5_LIB_FUNCTION
|
||||
krb5_config_get_string_default (krb5_context context,
|
||||
const krb5_config_section *c,
|
||||
const char *def_value,
|
||||
@@ -541,7 +541,7 @@ krb5_config_get_string_default (krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
char **
|
||||
char ** KRB5_LIB_FUNCTION
|
||||
krb5_config_vget_strings(krb5_context context,
|
||||
const krb5_config_section *c,
|
||||
va_list args)
|
||||
@@ -601,7 +601,7 @@ krb5_config_get_strings(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_config_free_strings(char **strings)
|
||||
{
|
||||
char **s = strings;
|
||||
@@ -612,7 +612,7 @@ krb5_config_free_strings(char **strings)
|
||||
free(strings);
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_config_vget_bool_default (krb5_context context,
|
||||
const krb5_config_section *c,
|
||||
krb5_boolean def_value,
|
||||
@@ -628,7 +628,7 @@ krb5_config_vget_bool_default (krb5_context context,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_config_vget_bool (krb5_context context,
|
||||
const krb5_config_section *c,
|
||||
va_list args)
|
||||
@@ -636,7 +636,7 @@ krb5_config_vget_bool (krb5_context context,
|
||||
return krb5_config_vget_bool_default (context, c, FALSE, args);
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_config_get_bool_default (krb5_context context,
|
||||
const krb5_config_section *c,
|
||||
krb5_boolean def_value,
|
||||
@@ -650,7 +650,7 @@ krb5_config_get_bool_default (krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_config_get_bool (krb5_context context,
|
||||
const krb5_config_section *c,
|
||||
...)
|
||||
@@ -663,7 +663,7 @@ krb5_config_get_bool (krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
krb5_config_vget_time_default (krb5_context context,
|
||||
const krb5_config_section *c,
|
||||
int def_value,
|
||||
@@ -676,7 +676,7 @@ krb5_config_vget_time_default (krb5_context context,
|
||||
return parse_time (str, NULL);
|
||||
}
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
krb5_config_vget_time (krb5_context context,
|
||||
const krb5_config_section *c,
|
||||
va_list args)
|
||||
@@ -684,7 +684,7 @@ krb5_config_vget_time (krb5_context context,
|
||||
return krb5_config_vget_time_default (context, c, -1, args);
|
||||
}
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
krb5_config_get_time_default (krb5_context context,
|
||||
const krb5_config_section *c,
|
||||
int def_value,
|
||||
@@ -698,7 +698,7 @@ krb5_config_get_time_default (krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
krb5_config_get_time (krb5_context context,
|
||||
const krb5_config_section *c,
|
||||
...)
|
||||
@@ -712,7 +712,7 @@ krb5_config_get_time (krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
krb5_config_vget_int_default (krb5_context context,
|
||||
const krb5_config_section *c,
|
||||
int def_value,
|
||||
@@ -733,7 +733,7 @@ krb5_config_vget_int_default (krb5_context context,
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
krb5_config_vget_int (krb5_context context,
|
||||
const krb5_config_section *c,
|
||||
va_list args)
|
||||
@@ -741,7 +741,7 @@ krb5_config_vget_int (krb5_context context,
|
||||
return krb5_config_vget_int_default (context, c, -1, args);
|
||||
}
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
krb5_config_get_int_default (krb5_context context,
|
||||
const krb5_config_section *c,
|
||||
int def_value,
|
||||
@@ -755,7 +755,7 @@ krb5_config_get_int_default (krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
krb5_config_get_int (krb5_context context,
|
||||
const krb5_config_section *c,
|
||||
...)
|
||||
|
@@ -130,7 +130,7 @@ ni_idlist2binding(void *ni, ni_idlist *idlist, krb5_config_section **ret)
|
||||
return NI_OK;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_config_parse_file (krb5_context context,
|
||||
const char *fname,
|
||||
krb5_config_section **res)
|
||||
|
@@ -184,7 +184,7 @@ init_context_from_config_file(krb5_context context)
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_init_context(krb5_context *context)
|
||||
{
|
||||
krb5_context p;
|
||||
@@ -237,7 +237,7 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_free_context(krb5_context context)
|
||||
{
|
||||
if (context->mutex) {
|
||||
@@ -261,7 +261,7 @@ krb5_free_context(krb5_context context)
|
||||
free(context);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_set_config_files(krb5_context context, char **filenames)
|
||||
{
|
||||
krb5_error_code ret;
|
||||
@@ -316,7 +316,7 @@ add_file(char ***pfilenames, int *len, char *file)
|
||||
* `pq' isn't free, its up the the caller
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_prepend_config_files(const char *filelist, char **pq, char ***ret_pp)
|
||||
{
|
||||
krb5_error_code ret;
|
||||
@@ -369,7 +369,7 @@ krb5_prepend_config_files(const char *filelist, char **pq, char ***ret_pp)
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_prepend_config_files_default(const char *filelist, char ***pfilenames)
|
||||
{
|
||||
krb5_error_code ret;
|
||||
@@ -388,7 +388,7 @@ krb5_prepend_config_files_default(const char *filelist, char ***pfilenames)
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_default_config_files(char ***pfilenames)
|
||||
{
|
||||
const char *files = NULL;
|
||||
@@ -403,7 +403,7 @@ krb5_get_default_config_files(char ***pfilenames)
|
||||
return krb5_prepend_config_files(files, NULL, pfilenames);
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_free_config_files(char **filenames)
|
||||
{
|
||||
char **p;
|
||||
@@ -450,7 +450,7 @@ default_etypes(krb5_context context, krb5_enctype **etype)
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_set_default_in_tkt_etypes(krb5_context context,
|
||||
const krb5_enctype *etypes)
|
||||
{
|
||||
@@ -479,7 +479,7 @@ krb5_set_default_in_tkt_etypes(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_default_in_tkt_etypes(krb5_context context,
|
||||
krb5_enctype **etypes)
|
||||
{
|
||||
@@ -505,7 +505,7 @@ krb5_get_default_in_tkt_etypes(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *
|
||||
const char* KRB5_LIB_FUNCTION
|
||||
krb5_get_err_text(krb5_context context, krb5_error_code code)
|
||||
{
|
||||
const char *p = NULL;
|
||||
@@ -516,7 +516,7 @@ krb5_get_err_text(krb5_context context, krb5_error_code code)
|
||||
return p;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_init_ets(krb5_context context)
|
||||
{
|
||||
if(context->et_list == NULL){
|
||||
@@ -527,19 +527,19 @@ krb5_init_ets(krb5_context context)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_set_use_admin_kdc (krb5_context context, krb5_boolean flag)
|
||||
{
|
||||
context->use_admin_kdc = flag;
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_get_use_admin_kdc (krb5_context context)
|
||||
{
|
||||
return context->use_admin_kdc;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_add_extra_addresses(krb5_context context, krb5_addresses *addresses)
|
||||
{
|
||||
|
||||
@@ -550,7 +550,7 @@ krb5_add_extra_addresses(krb5_context context, krb5_addresses *addresses)
|
||||
return krb5_set_extra_addresses(context, addresses);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_set_extra_addresses(krb5_context context, const krb5_addresses *addresses)
|
||||
{
|
||||
if(context->extra_addresses)
|
||||
@@ -573,7 +573,7 @@ krb5_set_extra_addresses(krb5_context context, const krb5_addresses *addresses)
|
||||
return krb5_copy_addresses(context, addresses, context->extra_addresses);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_extra_addresses(krb5_context context, krb5_addresses *addresses)
|
||||
{
|
||||
if(context->extra_addresses == NULL) {
|
||||
@@ -583,7 +583,7 @@ krb5_get_extra_addresses(krb5_context context, krb5_addresses *addresses)
|
||||
return krb5_copy_addresses(context,context->extra_addresses, addresses);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_add_ignore_addresses(krb5_context context, krb5_addresses *addresses)
|
||||
{
|
||||
|
||||
@@ -594,7 +594,7 @@ krb5_add_ignore_addresses(krb5_context context, krb5_addresses *addresses)
|
||||
return krb5_set_ignore_addresses(context, addresses);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_set_ignore_addresses(krb5_context context, const krb5_addresses *addresses)
|
||||
{
|
||||
if(context->ignore_addresses)
|
||||
@@ -616,7 +616,7 @@ krb5_set_ignore_addresses(krb5_context context, const krb5_addresses *addresses)
|
||||
return krb5_copy_addresses(context, addresses, context->ignore_addresses);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_ignore_addresses(krb5_context context, krb5_addresses *addresses)
|
||||
{
|
||||
if(context->ignore_addresses == NULL) {
|
||||
@@ -626,14 +626,14 @@ krb5_get_ignore_addresses(krb5_context context, krb5_addresses *addresses)
|
||||
return krb5_copy_addresses(context, context->ignore_addresses, addresses);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_set_fcache_version(krb5_context context, int version)
|
||||
{
|
||||
context->fcache_vno = version;
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_fcache_version(krb5_context context, int *version)
|
||||
{
|
||||
*version = context->fcache_vno;
|
||||
|
@@ -55,7 +55,7 @@ static const int _tkt_lifetimes[TKTLIFENUMFIXED] = {
|
||||
1623226, 1735464, 1855462, 1983758, 2120925, 2267576, 2424367, 2592000
|
||||
};
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
_krb5_krb_time_to_life(time_t start, time_t end)
|
||||
{
|
||||
int i;
|
||||
@@ -79,7 +79,7 @@ _krb5_krb_time_to_life(time_t start, time_t end)
|
||||
|
||||
}
|
||||
|
||||
time_t
|
||||
time_t KRB5_LIB_FUNCTION
|
||||
_krb5_krb_life_to_time(int start, int life_)
|
||||
{
|
||||
unsigned char life = (unsigned char) life_;
|
||||
@@ -221,7 +221,7 @@ write_v4_cc(krb5_context context, const char *tkfile,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
_krb5_krb_tf_setup(krb5_context context,
|
||||
struct credentials *v4creds,
|
||||
const char *tkfile,
|
||||
@@ -291,7 +291,7 @@ _krb5_krb_tf_setup(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
_krb5_krb_dest_tkt(krb5_context context, const char *tkfile)
|
||||
{
|
||||
krb5_error_code ret;
|
||||
@@ -323,7 +323,7 @@ _krb5_krb_dest_tkt(krb5_context context, const char *tkfile)
|
||||
* gotten from the KDC and stored in the cred cache `ccache'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb524_convert_creds_kdc(krb5_context context,
|
||||
krb5_creds *in_cred,
|
||||
struct credentials *v4creds)
|
||||
@@ -409,7 +409,7 @@ out2:
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb524_convert_creds_kdc_ccache(krb5_context context,
|
||||
krb5_ccache ccache,
|
||||
krb5_creds *in_cred,
|
||||
|
@@ -39,7 +39,7 @@ RCSID("$Id$");
|
||||
* Copy the list of realms from `from' to `to'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_copy_host_realm(krb5_context context,
|
||||
const krb5_realm *from,
|
||||
krb5_realm **to)
|
||||
|
@@ -36,13 +36,13 @@
|
||||
RCSID("$Id$");
|
||||
|
||||
/* keep this for compatibility with older code */
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_free_creds_contents (krb5_context context, krb5_creds *c)
|
||||
{
|
||||
return krb5_free_cred_contents (context, c);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_free_cred_contents (krb5_context context, krb5_creds *c)
|
||||
{
|
||||
krb5_free_principal (context, c->client);
|
||||
@@ -57,7 +57,7 @@ krb5_free_cred_contents (krb5_context context, krb5_creds *c)
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_copy_creds_contents (krb5_context context,
|
||||
const krb5_creds *incred,
|
||||
krb5_creds *c)
|
||||
@@ -101,7 +101,7 @@ fail:
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_copy_creds (krb5_context context,
|
||||
const krb5_creds *incred,
|
||||
krb5_creds **outcred)
|
||||
@@ -118,7 +118,7 @@ krb5_copy_creds (krb5_context context,
|
||||
return krb5_copy_creds_contents (context, incred, c);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_free_creds (krb5_context context, krb5_creds *c)
|
||||
{
|
||||
krb5_free_cred_contents (context, c);
|
||||
@@ -149,7 +149,7 @@ krb5_times_equal(const krb5_times *a, const krb5_times *b)
|
||||
* determines what equal means).
|
||||
*/
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_compare_creds(krb5_context context, krb5_flags whichfields,
|
||||
const krb5_creds * mcreds, const krb5_creds * creds)
|
||||
{
|
||||
|
@@ -578,7 +578,7 @@ ARCFOUR_string_to_key(krb5_context context,
|
||||
|
||||
/* iter is really 1 based, so iter == 0 will be 1 iteration */
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
_krb5_PKCS5_PBKDF2(krb5_context context, krb5_cksumtype cktype,
|
||||
krb5_data password, krb5_salt salt, u_int32_t iter,
|
||||
krb5_keytype type, krb5_keyblock *key)
|
||||
@@ -1064,7 +1064,7 @@ struct salt_type arcfour_salt[] = {
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_salttype_to_string (krb5_context context,
|
||||
krb5_enctype etype,
|
||||
krb5_salttype stype,
|
||||
@@ -1093,7 +1093,7 @@ krb5_salttype_to_string (krb5_context context,
|
||||
return HEIM_ERR_SALTTYPE_NOSUPP;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_string_to_salttype (krb5_context context,
|
||||
krb5_enctype etype,
|
||||
const char *string,
|
||||
@@ -1118,7 +1118,7 @@ krb5_string_to_salttype (krb5_context context,
|
||||
return HEIM_ERR_SALTTYPE_NOSUPP;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_pw_salt(krb5_context context,
|
||||
krb5_const_principal principal,
|
||||
krb5_salt *salt)
|
||||
@@ -1147,7 +1147,7 @@ krb5_get_pw_salt(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_free_salt(krb5_context context,
|
||||
krb5_salt salt)
|
||||
{
|
||||
@@ -1155,7 +1155,7 @@ krb5_free_salt(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_string_to_key_data (krb5_context context,
|
||||
krb5_enctype enctype,
|
||||
krb5_data password,
|
||||
@@ -1173,7 +1173,7 @@ krb5_string_to_key_data (krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_string_to_key (krb5_context context,
|
||||
krb5_enctype enctype,
|
||||
const char *password,
|
||||
@@ -1186,7 +1186,7 @@ krb5_string_to_key (krb5_context context,
|
||||
return krb5_string_to_key_data(context, enctype, pw, principal, key);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_string_to_key_data_salt (krb5_context context,
|
||||
krb5_enctype enctype,
|
||||
krb5_data password,
|
||||
@@ -1205,7 +1205,7 @@ krb5_string_to_key_data_salt (krb5_context context,
|
||||
* `opaque'), returning the resulting key in `key'
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_string_to_key_data_salt_opaque (krb5_context context,
|
||||
krb5_enctype enctype,
|
||||
krb5_data password,
|
||||
@@ -1235,7 +1235,7 @@ krb5_string_to_key_data_salt_opaque (krb5_context context,
|
||||
* in `key'
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_string_to_key_salt (krb5_context context,
|
||||
krb5_enctype enctype,
|
||||
const char *password,
|
||||
@@ -1248,7 +1248,7 @@ krb5_string_to_key_salt (krb5_context context,
|
||||
return krb5_string_to_key_data_salt(context, enctype, pw, salt, key);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_string_to_key_salt_opaque (krb5_context context,
|
||||
krb5_enctype enctype,
|
||||
const char *password,
|
||||
@@ -1263,7 +1263,7 @@ krb5_string_to_key_salt_opaque (krb5_context context,
|
||||
pw, salt, opaque, key);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_keytype_to_string(krb5_context context,
|
||||
krb5_keytype keytype,
|
||||
char **string)
|
||||
@@ -1281,7 +1281,7 @@ krb5_keytype_to_string(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_string_to_keytype(krb5_context context,
|
||||
const char *string,
|
||||
krb5_keytype *keytype)
|
||||
@@ -1296,7 +1296,7 @@ krb5_string_to_keytype(krb5_context context,
|
||||
return KRB5_PROG_KEYTYPE_NOSUPP;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_enctype_keysize(krb5_context context,
|
||||
krb5_enctype type,
|
||||
size_t *keysize)
|
||||
@@ -1311,7 +1311,7 @@ krb5_enctype_keysize(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_generate_random_keyblock(krb5_context context,
|
||||
krb5_enctype type,
|
||||
krb5_keyblock *key)
|
||||
@@ -1681,7 +1681,7 @@ hmac(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_hmac(krb5_context context,
|
||||
krb5_cksumtype cktype,
|
||||
const void *data,
|
||||
@@ -2072,7 +2072,7 @@ arcfour_checksum_p(struct checksum_type *ct, krb5_crypto crypto)
|
||||
(crypto->key.key->keytype == KEYTYPE_ARCFOUR);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_create_checksum(krb5_context context,
|
||||
krb5_crypto crypto,
|
||||
krb5_key_usage usage,
|
||||
@@ -2162,7 +2162,7 @@ verify_checksum(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_verify_checksum(krb5_context context,
|
||||
krb5_crypto crypto,
|
||||
krb5_key_usage usage,
|
||||
@@ -2190,7 +2190,7 @@ krb5_verify_checksum(krb5_context context,
|
||||
data, len, cksum);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_crypto_get_checksum_type(krb5_context context,
|
||||
krb5_crypto crypto,
|
||||
krb5_cksumtype *type)
|
||||
@@ -2214,7 +2214,7 @@ krb5_crypto_get_checksum_type(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_checksumsize(krb5_context context,
|
||||
krb5_cksumtype type,
|
||||
size_t *size)
|
||||
@@ -2229,7 +2229,7 @@ krb5_checksumsize(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_checksum_is_keyed(krb5_context context,
|
||||
krb5_cksumtype type)
|
||||
{
|
||||
@@ -2243,7 +2243,7 @@ krb5_checksum_is_keyed(krb5_context context,
|
||||
return ct->flags & F_KEYED;
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_checksum_is_collision_proof(krb5_context context,
|
||||
krb5_cksumtype type)
|
||||
{
|
||||
@@ -2257,7 +2257,7 @@ krb5_checksum_is_collision_proof(krb5_context context,
|
||||
return ct->flags & F_CPROOF;
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_checksum_is_disabled(krb5_context context,
|
||||
krb5_cksumtype type)
|
||||
{
|
||||
@@ -2271,7 +2271,7 @@ krb5_checksum_is_disabled(krb5_context context,
|
||||
return (ct->flags & F_DISABLED) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_checksum_disable(krb5_context context,
|
||||
krb5_cksumtype type)
|
||||
{
|
||||
@@ -2394,7 +2394,7 @@ DES_PCBC_encrypt_key_ivec(krb5_context context,
|
||||
* AES draft-raeburn-krb-rijndael-krb-02
|
||||
*/
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
_krb5_aes_cts_encrypt(const unsigned char *in, unsigned char *out,
|
||||
size_t len, const void *aes_key,
|
||||
unsigned char *ivec, const int encrypt)
|
||||
@@ -3026,7 +3026,7 @@ _find_enctype(krb5_enctype type)
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_enctype_to_string(krb5_context context,
|
||||
krb5_enctype etype,
|
||||
char **string)
|
||||
@@ -3046,7 +3046,7 @@ krb5_enctype_to_string(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_string_to_enctype(krb5_context context,
|
||||
const char *string,
|
||||
krb5_enctype *etype)
|
||||
@@ -3062,7 +3062,7 @@ krb5_string_to_enctype(krb5_context context,
|
||||
return KRB5_PROG_ETYPE_NOSUPP;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_enctype_to_oid(krb5_context context,
|
||||
krb5_enctype etype,
|
||||
heim_oid *oid)
|
||||
@@ -3081,7 +3081,7 @@ krb5_enctype_to_oid(krb5_context context,
|
||||
return copy_oid(et->oid, oid);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_oid_to_enctype(krb5_context context,
|
||||
const heim_oid *oid,
|
||||
krb5_enctype *etype)
|
||||
@@ -3097,7 +3097,7 @@ krb5_oid_to_enctype(krb5_context context,
|
||||
return KRB5_PROG_ETYPE_NOSUPP;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_enctype_to_keytype(krb5_context context,
|
||||
krb5_enctype etype,
|
||||
krb5_keytype *keytype)
|
||||
@@ -3113,7 +3113,7 @@ krb5_enctype_to_keytype(krb5_context context,
|
||||
}
|
||||
|
||||
#if 0
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_keytype_to_enctype(krb5_context context,
|
||||
krb5_keytype keytype,
|
||||
krb5_enctype *etype)
|
||||
@@ -3127,7 +3127,7 @@ krb5_keytype_to_enctype(krb5_context context,
|
||||
}
|
||||
#endif
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_keytype_to_enctypes (krb5_context context,
|
||||
krb5_keytype keytype,
|
||||
unsigned *len,
|
||||
@@ -3163,7 +3163,7 @@ krb5_keytype_to_enctypes (krb5_context context,
|
||||
* else, do `krb5_keytype_to_enctypes'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_keytype_to_enctypes_default (krb5_context context,
|
||||
krb5_keytype keytype,
|
||||
unsigned *len,
|
||||
@@ -3189,7 +3189,7 @@ krb5_keytype_to_enctypes_default (krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_enctype_valid(krb5_context context,
|
||||
krb5_enctype etype)
|
||||
{
|
||||
@@ -3207,7 +3207,7 @@ krb5_enctype_valid(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_cksumtype_valid(krb5_context context,
|
||||
krb5_cksumtype ctype)
|
||||
{
|
||||
@@ -3227,7 +3227,7 @@ krb5_cksumtype_valid(krb5_context context,
|
||||
|
||||
|
||||
/* if two enctypes have compatible keys */
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_enctypes_compatible_keys(krb5_context context,
|
||||
krb5_enctype etype1,
|
||||
krb5_enctype etype2)
|
||||
@@ -3621,7 +3621,7 @@ decrypt_internal_special(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_encrypt_ivec(krb5_context context,
|
||||
krb5_crypto crypto,
|
||||
unsigned usage,
|
||||
@@ -3640,7 +3640,7 @@ krb5_encrypt_ivec(krb5_context context,
|
||||
return encrypt_internal(context, crypto, data, len, result, ivec);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_encrypt(krb5_context context,
|
||||
krb5_crypto crypto,
|
||||
unsigned usage,
|
||||
@@ -3651,7 +3651,7 @@ krb5_encrypt(krb5_context context,
|
||||
return krb5_encrypt_ivec(context, crypto, usage, data, len, result, NULL);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_encrypt_EncryptedData(krb5_context context,
|
||||
krb5_crypto crypto,
|
||||
unsigned usage,
|
||||
@@ -3669,7 +3669,7 @@ krb5_encrypt_EncryptedData(krb5_context context,
|
||||
return krb5_encrypt(context, crypto, usage, data, len, &result->cipher);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_decrypt_ivec(krb5_context context,
|
||||
krb5_crypto crypto,
|
||||
unsigned usage,
|
||||
@@ -3688,7 +3688,7 @@ krb5_decrypt_ivec(krb5_context context,
|
||||
return decrypt_internal(context, crypto, data, len, result, ivec);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_decrypt(krb5_context context,
|
||||
krb5_crypto crypto,
|
||||
unsigned usage,
|
||||
@@ -3700,7 +3700,7 @@ krb5_decrypt(krb5_context context,
|
||||
NULL);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_decrypt_EncryptedData(krb5_context context,
|
||||
krb5_crypto crypto,
|
||||
unsigned usage,
|
||||
@@ -3765,7 +3765,7 @@ seed_something(void)
|
||||
return -1;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_generate_random_block(void *buf, size_t len)
|
||||
{
|
||||
static int rng_initialized = 0;
|
||||
@@ -3783,7 +3783,7 @@ krb5_generate_random_block(void *buf, size_t len)
|
||||
|
||||
#else
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_generate_random_block(void *buf, size_t len)
|
||||
{
|
||||
DES_cblock key, out;
|
||||
@@ -3921,7 +3921,7 @@ _new_derived_key(krb5_crypto crypto, unsigned usage)
|
||||
return &d->key;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_derive_key(krb5_context context,
|
||||
const krb5_keyblock *key,
|
||||
krb5_enctype etype,
|
||||
@@ -3981,7 +3981,7 @@ _get_derived_key(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_crypto_init(krb5_context context,
|
||||
const krb5_keyblock *key,
|
||||
krb5_enctype etype,
|
||||
@@ -4038,7 +4038,7 @@ free_key_usage(krb5_context context, struct key_usage *ku)
|
||||
free_key_data(context, &ku->key);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_crypto_destroy(krb5_context context,
|
||||
krb5_crypto crypto)
|
||||
{
|
||||
@@ -4053,7 +4053,7 @@ krb5_crypto_destroy(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_crypto_get_params(krb5_context context,
|
||||
const krb5_crypto crypto,
|
||||
const krb5_data *params,
|
||||
@@ -4088,7 +4088,7 @@ krb5_crypto_get_params(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_crypto_set_params(krb5_context context,
|
||||
const krb5_crypto crypto,
|
||||
const krb5_data *ivec,
|
||||
@@ -4121,7 +4121,7 @@ krb5_crypto_set_params(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_crypto_getblocksize(krb5_context context,
|
||||
krb5_crypto crypto,
|
||||
size_t *blocksize)
|
||||
@@ -4130,7 +4130,7 @@ krb5_crypto_getblocksize(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_crypto_getenctype(krb5_context context,
|
||||
krb5_crypto crypto,
|
||||
krb5_enctype *enctype)
|
||||
@@ -4139,7 +4139,7 @@ krb5_crypto_getenctype(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_crypto_getpadsize(krb5_context context,
|
||||
krb5_crypto crypto,
|
||||
size_t *padsize)
|
||||
@@ -4148,7 +4148,7 @@ krb5_crypto_getpadsize(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_crypto_getconfoundersize(krb5_context context,
|
||||
krb5_crypto crypto,
|
||||
size_t *confoundersize)
|
||||
@@ -4157,7 +4157,7 @@ krb5_crypto_getconfoundersize(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_enctype_is_disabled(krb5_context context,
|
||||
krb5_enctype enctype)
|
||||
{
|
||||
@@ -4171,7 +4171,7 @@ krb5_enctype_is_disabled(krb5_context context,
|
||||
return (et->flags & F_DISABLED) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_enctype_disable(krb5_context context,
|
||||
krb5_enctype enctype)
|
||||
{
|
||||
@@ -4186,7 +4186,7 @@ krb5_enctype_disable(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_string_to_key_derived(krb5_context context,
|
||||
const void *str,
|
||||
size_t len,
|
||||
@@ -4289,7 +4289,7 @@ krb5_get_wrapped_length (krb5_context context,
|
||||
return wrapped_length (context, crypto, data_len);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_random_to_key(krb5_context context,
|
||||
krb5_enctype type,
|
||||
const void *data,
|
||||
|
@@ -35,14 +35,14 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_data_zero(krb5_data *p)
|
||||
{
|
||||
p->length = 0;
|
||||
p->data = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_data_free(krb5_data *p)
|
||||
{
|
||||
if(p->data != NULL)
|
||||
@@ -50,13 +50,13 @@ krb5_data_free(krb5_data *p)
|
||||
krb5_data_zero(p);
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_free_data_contents(krb5_context context, krb5_data *data)
|
||||
{
|
||||
krb5_data_free(data);
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_free_data(krb5_context context,
|
||||
krb5_data *p)
|
||||
{
|
||||
@@ -64,7 +64,7 @@ krb5_free_data(krb5_context context,
|
||||
free(p);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_data_alloc(krb5_data *p, int len)
|
||||
{
|
||||
p->data = malloc(len);
|
||||
@@ -74,7 +74,7 @@ krb5_data_alloc(krb5_data *p, int len)
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_data_realloc(krb5_data *p, int len)
|
||||
{
|
||||
void *tmp;
|
||||
@@ -86,7 +86,7 @@ krb5_data_realloc(krb5_data *p, int len)
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_data_copy(krb5_data *p, const void *data, size_t len)
|
||||
{
|
||||
if (len) {
|
||||
@@ -99,7 +99,7 @@ krb5_data_copy(krb5_data *p, const void *data, size_t len)
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_copy_data(krb5_context context,
|
||||
const krb5_data *indata,
|
||||
krb5_data **outdata)
|
||||
|
@@ -76,7 +76,7 @@ static struct testcase {
|
||||
{0}
|
||||
};
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
struct testcase *t;
|
||||
|
@@ -58,7 +58,7 @@ print_tree(struct krb5_config_binding *b, int level)
|
||||
print_tree(b->next, level);
|
||||
}
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
krb5_context context;
|
||||
|
@@ -41,7 +41,7 @@ RCSID("$Id$");
|
||||
* after the failed call.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_eai_to_heim_errno(int eai_errno, int system_error)
|
||||
{
|
||||
switch(eai_errno) {
|
||||
@@ -78,7 +78,7 @@ krb5_eai_to_heim_errno(int eai_errno, int system_error)
|
||||
}
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_h_errno_to_heim_errno(int eai_errno)
|
||||
{
|
||||
switch(eai_errno) {
|
||||
|
@@ -38,7 +38,7 @@ RCSID("$Id$");
|
||||
#undef __attribute__
|
||||
#define __attribute__(X)
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_free_error_string(krb5_context context, char *str)
|
||||
{
|
||||
HEIMDAL_MUTEX_lock(context->mutex);
|
||||
@@ -47,7 +47,7 @@ krb5_free_error_string(krb5_context context, char *str)
|
||||
HEIMDAL_MUTEX_unlock(context->mutex);
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_clear_error_string(krb5_context context)
|
||||
{
|
||||
HEIMDAL_MUTEX_lock(context->mutex);
|
||||
@@ -58,7 +58,7 @@ krb5_clear_error_string(krb5_context context)
|
||||
HEIMDAL_MUTEX_unlock(context->mutex);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_set_error_string(krb5_context context, const char *fmt, ...)
|
||||
__attribute__((format (printf, 2, 3)))
|
||||
{
|
||||
@@ -71,7 +71,7 @@ krb5_set_error_string(krb5_context context, const char *fmt, ...)
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_vset_error_string(krb5_context context, const char *fmt, va_list args)
|
||||
__attribute__ ((format (printf, 2, 0)))
|
||||
{
|
||||
@@ -86,7 +86,7 @@ krb5_vset_error_string(krb5_context context, const char *fmt, va_list args)
|
||||
return 0;
|
||||
}
|
||||
|
||||
char*
|
||||
char * KRB5_LIB_FUNCTION
|
||||
krb5_get_error_string(krb5_context context)
|
||||
{
|
||||
char *ret;
|
||||
@@ -98,7 +98,7 @@ krb5_get_error_string(krb5_context context)
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_have_error_string(krb5_context context)
|
||||
{
|
||||
char *str;
|
||||
|
@@ -54,7 +54,7 @@ copy_hostname(krb5_context context,
|
||||
* allocated space returned in `new_hostname'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_expand_hostname (krb5_context context,
|
||||
const char *orig_hostname,
|
||||
char **new_hostname)
|
||||
@@ -114,7 +114,7 @@ vanilla_hostname (krb5_context context,
|
||||
* allocated space in `host' and return realms in `realms'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_expand_hostname_realms (krb5_context context,
|
||||
const char *orig_hostname,
|
||||
char **new_hostname,
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_free_kdc_rep(krb5_context context, krb5_kdc_rep *rep)
|
||||
{
|
||||
free_KDC_REP(&rep->kdc_rep);
|
||||
@@ -44,7 +44,7 @@ krb5_free_kdc_rep(krb5_context context, krb5_kdc_rep *rep)
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_xfree (void *ptr)
|
||||
{
|
||||
free (ptr);
|
||||
|
@@ -39,7 +39,7 @@ RCSID("$Id$");
|
||||
* Free all memory allocated by `realmlist'
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_free_host_realm(krb5_context context,
|
||||
krb5_realm *realmlist)
|
||||
{
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_generate_seq_number(krb5_context context,
|
||||
const krb5_keyblock *key,
|
||||
u_int32_t *seqno)
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_generate_subkey(krb5_context context,
|
||||
const krb5_keyblock *key,
|
||||
krb5_keyblock **subkey)
|
||||
|
@@ -268,7 +268,7 @@ get_addrs_int (krb5_context context, krb5_addresses *res, int flags)
|
||||
* Only include loopback address if there are no other.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_all_client_addrs (krb5_context context, krb5_addresses *res)
|
||||
{
|
||||
int flags = LOOP_IF_NONE | EXTRA_ADDRESSES;
|
||||
@@ -284,7 +284,7 @@ krb5_get_all_client_addrs (krb5_context context, krb5_addresses *res)
|
||||
* If that fails, we return the address corresponding to `hostname'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_all_server_addrs (krb5_context context, krb5_addresses *res)
|
||||
{
|
||||
return get_addrs_int (context, res, LOOP | SCAN_INTERFACES);
|
||||
|
@@ -542,7 +542,7 @@ get_cred_kdc_la(krb5_context context, krb5_ccache id, krb5_kdc_flags flags,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_kdc_cred(krb5_context context,
|
||||
krb5_ccache id,
|
||||
krb5_kdc_flags flags,
|
||||
@@ -782,7 +782,7 @@ get_cred_from_kdc_flags(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_cred_from_kdc_opt(krb5_context context,
|
||||
krb5_ccache ccache,
|
||||
krb5_creds *in_creds,
|
||||
@@ -796,7 +796,7 @@ krb5_get_cred_from_kdc_opt(krb5_context context,
|
||||
in_creds, out_creds, ret_tgts);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_cred_from_kdc(krb5_context context,
|
||||
krb5_ccache ccache,
|
||||
krb5_creds *in_creds,
|
||||
@@ -808,7 +808,7 @@ krb5_get_cred_from_kdc(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_credentials_with_flags(krb5_context context,
|
||||
krb5_flags options,
|
||||
krb5_kdc_flags flags,
|
||||
@@ -859,7 +859,7 @@ krb5_get_credentials_with_flags(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_credentials(krb5_context context,
|
||||
krb5_flags options,
|
||||
krb5_ccache ccache,
|
||||
|
@@ -50,7 +50,7 @@ get_env_user(void)
|
||||
return user;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_default_principal (krb5_context context,
|
||||
krb5_principal *princ)
|
||||
{
|
||||
|
@@ -40,7 +40,7 @@ RCSID("$Id$");
|
||||
* Free this memory with krb5_free_host_realm.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_default_realms (krb5_context context,
|
||||
krb5_realm **realms)
|
||||
{
|
||||
@@ -59,7 +59,7 @@ krb5_get_default_realms (krb5_context context,
|
||||
* Return the first default realm. For compatibility.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_default_realm(krb5_context context,
|
||||
krb5_realm *realm)
|
||||
{
|
||||
|
@@ -90,7 +90,7 @@ fail:
|
||||
* If hostname == NULL, pick it from `server'
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_fwd_tgt_creds (krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
const char *hostname,
|
||||
@@ -151,7 +151,7 @@ krb5_fwd_tgt_creds (krb5_context context,
|
||||
*
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_forwarded_creds (krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_ccache ccache,
|
||||
|
@@ -149,7 +149,7 @@ config_find_realm(krb5_context context,
|
||||
* fall back to guessing
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
_krb5_get_host_realm_int (krb5_context context,
|
||||
const char *host,
|
||||
krb5_boolean use_dns,
|
||||
@@ -203,7 +203,7 @@ _krb5_get_host_realm_int (krb5_context context,
|
||||
* Return the realm(s) of `host' as a NULL-terminated list in `realms'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_host_realm(krb5_context context,
|
||||
const char *host,
|
||||
krb5_realm **realms)
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_init_etype (krb5_context context,
|
||||
unsigned *len,
|
||||
krb5_enctype **val,
|
||||
@@ -625,7 +625,7 @@ set_ptypes(krb5_context context,
|
||||
return(1);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_in_cred(krb5_context context,
|
||||
krb5_flags options,
|
||||
const krb5_addresses *addrs,
|
||||
@@ -783,7 +783,7 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_in_tkt(krb5_context context,
|
||||
krb5_flags options,
|
||||
const krb5_addresses *addrs,
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_password_key_proc (krb5_context context,
|
||||
krb5_enctype type,
|
||||
krb5_salt salt,
|
||||
@@ -64,7 +64,7 @@ krb5_password_key_proc (krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_in_tkt_with_password (krb5_context context,
|
||||
krb5_flags options,
|
||||
krb5_addresses *addrs,
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_keytab_key_proc (krb5_context context,
|
||||
krb5_enctype enctype,
|
||||
krb5_salt salt,
|
||||
@@ -68,7 +68,7 @@ krb5_keytab_key_proc (krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_in_tkt_with_keytab (krb5_context context,
|
||||
krb5_flags options,
|
||||
krb5_addresses *addrs,
|
||||
|
@@ -45,7 +45,7 @@ krb5_skey_key_proc (krb5_context context,
|
||||
return krb5_copy_keyblock (context, keyseed, key);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_in_tkt_with_skey (krb5_context context,
|
||||
krb5_flags options,
|
||||
krb5_addresses *addrs,
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
krb5_getportbyname (krb5_context context,
|
||||
const char *service,
|
||||
const char *proto,
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_opt_init(krb5_get_init_creds_opt *opt)
|
||||
{
|
||||
memset (opt, 0, sizeof(*opt));
|
||||
@@ -43,7 +43,7 @@ krb5_get_init_creds_opt_init(krb5_get_init_creds_opt *opt)
|
||||
opt->private = NULL;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_opt_alloc(krb5_context context,
|
||||
krb5_get_init_creds_opt **opt)
|
||||
{
|
||||
@@ -86,7 +86,7 @@ _krb5_get_init_creds_opt_copy(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_opt_free(krb5_get_init_creds_opt *opt)
|
||||
{
|
||||
if (opt->private == NULL)
|
||||
@@ -152,7 +152,7 @@ get_config_bool (krb5_context context,
|
||||
|
||||
static krb5_addresses no_addrs = {0, NULL};
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_opt_set_default_flags(krb5_context context,
|
||||
const char *appname,
|
||||
krb5_const_realm realm,
|
||||
@@ -202,7 +202,7 @@ krb5_get_init_creds_opt_set_default_flags(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_opt_set_tkt_life(krb5_get_init_creds_opt *opt,
|
||||
krb5_deltat tkt_life)
|
||||
{
|
||||
@@ -210,7 +210,7 @@ krb5_get_init_creds_opt_set_tkt_life(krb5_get_init_creds_opt *opt,
|
||||
opt->tkt_life = tkt_life;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_opt_set_renew_life(krb5_get_init_creds_opt *opt,
|
||||
krb5_deltat renew_life)
|
||||
{
|
||||
@@ -218,7 +218,7 @@ krb5_get_init_creds_opt_set_renew_life(krb5_get_init_creds_opt *opt,
|
||||
opt->renew_life = renew_life;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_opt_set_forwardable(krb5_get_init_creds_opt *opt,
|
||||
int forwardable)
|
||||
{
|
||||
@@ -226,7 +226,7 @@ krb5_get_init_creds_opt_set_forwardable(krb5_get_init_creds_opt *opt,
|
||||
opt->forwardable = forwardable;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_opt_set_proxiable(krb5_get_init_creds_opt *opt,
|
||||
int proxiable)
|
||||
{
|
||||
@@ -234,7 +234,7 @@ krb5_get_init_creds_opt_set_proxiable(krb5_get_init_creds_opt *opt,
|
||||
opt->proxiable = proxiable;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_opt_set_etype_list(krb5_get_init_creds_opt *opt,
|
||||
krb5_enctype *etype_list,
|
||||
int etype_list_length)
|
||||
@@ -244,7 +244,7 @@ krb5_get_init_creds_opt_set_etype_list(krb5_get_init_creds_opt *opt,
|
||||
opt->etype_list_length = etype_list_length;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_opt_set_address_list(krb5_get_init_creds_opt *opt,
|
||||
krb5_addresses *addresses)
|
||||
{
|
||||
@@ -252,7 +252,7 @@ krb5_get_init_creds_opt_set_address_list(krb5_get_init_creds_opt *opt,
|
||||
opt->address_list = addresses;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_opt_set_preauth_list(krb5_get_init_creds_opt *opt,
|
||||
krb5_preauthtype *preauth_list,
|
||||
int preauth_list_length)
|
||||
@@ -262,7 +262,7 @@ krb5_get_init_creds_opt_set_preauth_list(krb5_get_init_creds_opt *opt,
|
||||
opt->preauth_list = preauth_list;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_opt_set_salt(krb5_get_init_creds_opt *opt,
|
||||
krb5_data *salt)
|
||||
{
|
||||
@@ -270,7 +270,7 @@ krb5_get_init_creds_opt_set_salt(krb5_get_init_creds_opt *opt,
|
||||
opt->salt = salt;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_opt_set_anonymous(krb5_get_init_creds_opt *opt,
|
||||
int anonymous)
|
||||
{
|
||||
@@ -290,7 +290,7 @@ require_ext_opt(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_opt_set_pa_password(krb5_context context,
|
||||
krb5_get_init_creds_opt *opt,
|
||||
const char *password,
|
||||
@@ -305,7 +305,7 @@ krb5_get_init_creds_opt_set_pa_password(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_opt_set_pac_request(krb5_context context,
|
||||
krb5_get_init_creds_opt *opt,
|
||||
krb5_boolean req_pac)
|
||||
|
@@ -459,7 +459,7 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_keyblock_key_proc (krb5_context context,
|
||||
krb5_keytype type,
|
||||
krb5_data *salt,
|
||||
@@ -469,7 +469,7 @@ krb5_keyblock_key_proc (krb5_context context,
|
||||
return krb5_copy_keyblock (context, keyseed, key);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_keytab(krb5_context context,
|
||||
krb5_creds *creds,
|
||||
krb5_principal client,
|
||||
@@ -1350,7 +1350,7 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds(krb5_context context,
|
||||
krb5_creds *creds,
|
||||
krb5_principal client,
|
||||
@@ -1442,7 +1442,7 @@ krb5_get_init_creds(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_password(krb5_context context,
|
||||
krb5_creds *creds,
|
||||
krb5_principal client,
|
||||
|
@@ -35,14 +35,14 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_keyblock_zero(krb5_keyblock *keyblock)
|
||||
{
|
||||
keyblock->keytype = 0;
|
||||
krb5_data_zero(&keyblock->keyvalue);
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_free_keyblock_contents(krb5_context context,
|
||||
krb5_keyblock *keyblock)
|
||||
{
|
||||
@@ -53,7 +53,7 @@ krb5_free_keyblock_contents(krb5_context context,
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_free_keyblock(krb5_context context,
|
||||
krb5_keyblock *keyblock)
|
||||
{
|
||||
@@ -63,7 +63,7 @@ krb5_free_keyblock(krb5_context context,
|
||||
}
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_copy_keyblock_contents (krb5_context context,
|
||||
const krb5_keyblock *inblock,
|
||||
krb5_keyblock *to)
|
||||
@@ -71,7 +71,7 @@ krb5_copy_keyblock_contents (krb5_context context,
|
||||
return copy_EncryptionKey(inblock, to);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_copy_keyblock (krb5_context context,
|
||||
const krb5_keyblock *inblock,
|
||||
krb5_keyblock **to)
|
||||
|
@@ -40,7 +40,7 @@ RCSID("$Id$");
|
||||
* Return 0 or an error.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_kt_register(krb5_context context,
|
||||
const krb5_kt_ops *ops)
|
||||
{
|
||||
@@ -70,7 +70,7 @@ krb5_kt_register(krb5_context context,
|
||||
* Return 0 or an error
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_kt_resolve(krb5_context context,
|
||||
const char *name,
|
||||
krb5_keytab *id)
|
||||
@@ -123,7 +123,7 @@ krb5_kt_resolve(krb5_context context,
|
||||
* Return 0 or KRB5_CONFIG_NOTENUFSPACE if `namesize' is too short.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_kt_default_name(krb5_context context, char *name, size_t namesize)
|
||||
{
|
||||
if (strlcpy (name, context->default_keytab, namesize) >= namesize) {
|
||||
@@ -138,7 +138,7 @@ krb5_kt_default_name(krb5_context context, char *name, size_t namesize)
|
||||
* Return 0 or KRB5_CONFIG_NOTENUFSPACE if `namesize' is too short.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_kt_default_modify_name(krb5_context context, char *name, size_t namesize)
|
||||
{
|
||||
const char *kt = NULL;
|
||||
@@ -169,7 +169,7 @@ krb5_kt_default_modify_name(krb5_context context, char *name, size_t namesize)
|
||||
* Return 0 or an error.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_kt_default(krb5_context context, krb5_keytab *id)
|
||||
{
|
||||
return krb5_kt_resolve (context, context->default_keytab, id);
|
||||
@@ -181,7 +181,7 @@ krb5_kt_default(krb5_context context, krb5_keytab *id)
|
||||
* Return 0 or an error.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_kt_read_service_key(krb5_context context,
|
||||
krb5_pointer keyprocarg,
|
||||
krb5_principal principal,
|
||||
@@ -215,7 +215,7 @@ krb5_kt_read_service_key(krb5_context context,
|
||||
* `prefixsize'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_kt_get_type(krb5_context context,
|
||||
krb5_keytab keytab,
|
||||
char *prefix,
|
||||
@@ -230,7 +230,7 @@ krb5_kt_get_type(krb5_context context,
|
||||
* Return 0 or an error.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_kt_get_name(krb5_context context,
|
||||
krb5_keytab keytab,
|
||||
char *name,
|
||||
@@ -244,7 +244,7 @@ krb5_kt_get_name(krb5_context context,
|
||||
* Return 0 or an error.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_kt_close(krb5_context context,
|
||||
krb5_keytab id)
|
||||
{
|
||||
@@ -262,7 +262,7 @@ krb5_kt_close(krb5_context context,
|
||||
* Return TRUE if they compare the same, FALSE otherwise.
|
||||
*/
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_kt_compare(krb5_context context,
|
||||
krb5_keytab_entry *entry,
|
||||
krb5_const_principal principal,
|
||||
@@ -286,7 +286,7 @@ krb5_kt_compare(krb5_context context,
|
||||
* Return 0 or an error.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_kt_get_entry(krb5_context context,
|
||||
krb5_keytab id,
|
||||
krb5_const_principal principal,
|
||||
@@ -351,7 +351,7 @@ krb5_kt_get_entry(krb5_context context,
|
||||
* Copy the contents of `in' into `out'.
|
||||
* Return 0 or an error. */
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_kt_copy_entry_contents(krb5_context context,
|
||||
const krb5_keytab_entry *in,
|
||||
krb5_keytab_entry *out)
|
||||
@@ -380,7 +380,7 @@ fail:
|
||||
* Free the contents of `entry'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_kt_free_entry(krb5_context context,
|
||||
krb5_keytab_entry *entry)
|
||||
{
|
||||
@@ -394,7 +394,7 @@ krb5_kt_free_entry(krb5_context context,
|
||||
* Return 0 or an error.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_kt_start_seq_get(krb5_context context,
|
||||
krb5_keytab id,
|
||||
krb5_kt_cursor *cursor)
|
||||
@@ -414,7 +414,7 @@ krb5_kt_start_seq_get(krb5_context context,
|
||||
* Return 0 or an error.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_kt_next_entry(krb5_context context,
|
||||
krb5_keytab id,
|
||||
krb5_keytab_entry *entry,
|
||||
@@ -433,7 +433,7 @@ krb5_kt_next_entry(krb5_context context,
|
||||
* Release all resources associated with `cursor'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_kt_end_seq_get(krb5_context context,
|
||||
krb5_keytab id,
|
||||
krb5_kt_cursor *cursor)
|
||||
@@ -452,7 +452,7 @@ krb5_kt_end_seq_get(krb5_context context,
|
||||
* Return 0 or an error.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_kt_add_entry(krb5_context context,
|
||||
krb5_keytab id,
|
||||
krb5_keytab_entry *entry)
|
||||
@@ -471,7 +471,7 @@ krb5_kt_add_entry(krb5_context context,
|
||||
* Return 0 or an error.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_kt_remove_entry(krb5_context context,
|
||||
krb5_keytab id,
|
||||
krb5_keytab_entry *entry)
|
||||
|
@@ -269,7 +269,7 @@ append_host_string(krb5_context context, struct krb5_krbhst_data *kd,
|
||||
* return a readable representation of `host' in `hostname, hostlen'
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_krbhst_format_string(krb5_context context, const krb5_krbhst_info *host,
|
||||
char *hostname, size_t hostlen)
|
||||
{
|
||||
@@ -310,7 +310,7 @@ make_hints(struct addrinfo *hints, int proto)
|
||||
* in `host'. free:ing is handled by krb5_krbhst_free.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_krbhst_get_addrinfo(krb5_context context, krb5_krbhst_info *host,
|
||||
struct addrinfo **ai)
|
||||
{
|
||||
@@ -641,7 +641,7 @@ common_init(krb5_context context,
|
||||
* initialize `handle' to look for hosts of type `type' in realm `realm'
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_krbhst_init(krb5_context context,
|
||||
const char *realm,
|
||||
unsigned int type,
|
||||
@@ -650,7 +650,7 @@ krb5_krbhst_init(krb5_context context,
|
||||
return krb5_krbhst_init_flags(context, realm, type, 0, handle);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_krbhst_init_flags(krb5_context context,
|
||||
const char *realm,
|
||||
unsigned int type,
|
||||
@@ -697,7 +697,7 @@ krb5_krbhst_init_flags(krb5_context context,
|
||||
* return the next host information from `handle' in `host'
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_krbhst_next(krb5_context context,
|
||||
krb5_krbhst_handle handle,
|
||||
krb5_krbhst_info **host)
|
||||
@@ -713,7 +713,7 @@ krb5_krbhst_next(krb5_context context,
|
||||
* in `hostname' (or length `hostlen)
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_krbhst_next_as_string(krb5_context context,
|
||||
krb5_krbhst_handle handle,
|
||||
char *hostname,
|
||||
@@ -728,13 +728,13 @@ krb5_krbhst_next_as_string(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_krbhst_reset(krb5_context context, krb5_krbhst_handle handle)
|
||||
{
|
||||
handle->index = &handle->hosts;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_krbhst_free(krb5_context context, krb5_krbhst_handle handle)
|
||||
{
|
||||
krb5_krbhst_info *h, *next;
|
||||
@@ -796,7 +796,7 @@ gethostlist(krb5_context context, const char *realm,
|
||||
* return an malloced list of kadmin-hosts for `realm' in `hostlist'
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_krb_admin_hst (krb5_context context,
|
||||
const krb5_realm *realm,
|
||||
char ***hostlist)
|
||||
@@ -808,7 +808,7 @@ krb5_get_krb_admin_hst (krb5_context context,
|
||||
* return an malloced list of changepw-hosts for `realm' in `hostlist'
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_krb_changepw_hst (krb5_context context,
|
||||
const krb5_realm *realm,
|
||||
char ***hostlist)
|
||||
@@ -820,7 +820,7 @@ krb5_get_krb_changepw_hst (krb5_context context,
|
||||
* return an malloced list of 524-hosts for `realm' in `hostlist'
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_krb524hst (krb5_context context,
|
||||
const krb5_realm *realm,
|
||||
char ***hostlist)
|
||||
@@ -833,7 +833,7 @@ krb5_get_krb524hst (krb5_context context,
|
||||
* return an malloced list of KDC's for `realm' in `hostlist'
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_krbhst (krb5_context context,
|
||||
const krb5_realm *realm,
|
||||
char ***hostlist)
|
||||
@@ -845,7 +845,7 @@ krb5_get_krbhst (krb5_context context,
|
||||
* free all the memory allocated in `hostlist'
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_free_krbhst (krb5_context context,
|
||||
char **hostlist)
|
||||
{
|
||||
|
@@ -39,7 +39,7 @@ RCSID("$Id$");
|
||||
* Return TRUE iff `principal' is allowed to login as `luser'.
|
||||
*/
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_kuserok (krb5_context context,
|
||||
krb5_principal principal,
|
||||
const char *luser)
|
||||
|
@@ -114,7 +114,7 @@ find_value(const char *s, struct s2i *table)
|
||||
return table->val;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_initlog(krb5_context context,
|
||||
const char *program,
|
||||
krb5_log_facility **fac)
|
||||
@@ -134,7 +134,7 @@ krb5_initlog(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_addlog_func(krb5_context context,
|
||||
krb5_log_facility *fac,
|
||||
int min,
|
||||
@@ -253,7 +253,7 @@ open_file(krb5_context context, krb5_log_facility *fac, int min, int max,
|
||||
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_addlog_dest(krb5_context context, krb5_log_facility *f, const char *orig)
|
||||
{
|
||||
krb5_error_code ret = 0;
|
||||
@@ -336,7 +336,7 @@ krb5_addlog_dest(krb5_context context, krb5_log_facility *f, const char *orig)
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_openlog(krb5_context context,
|
||||
const char *program,
|
||||
krb5_log_facility **fac)
|
||||
@@ -360,7 +360,7 @@ krb5_openlog(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_closelog(krb5_context context,
|
||||
krb5_log_facility *fac)
|
||||
{
|
||||
@@ -373,7 +373,7 @@ krb5_closelog(krb5_context context,
|
||||
#undef __attribute__
|
||||
#define __attribute__(X)
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_vlog_msg(krb5_context context,
|
||||
krb5_log_facility *fac,
|
||||
char **reply,
|
||||
@@ -412,7 +412,7 @@ krb5_vlog_msg(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_vlog(krb5_context context,
|
||||
krb5_log_facility *fac,
|
||||
int level,
|
||||
@@ -423,7 +423,7 @@ krb5_vlog(krb5_context context,
|
||||
return krb5_vlog_msg(context, fac, NULL, level, fmt, ap);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_log_msg(krb5_context context,
|
||||
krb5_log_facility *fac,
|
||||
int level,
|
||||
@@ -442,7 +442,7 @@ krb5_log_msg(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_log(krb5_context context,
|
||||
krb5_log_facility *fac,
|
||||
int level,
|
||||
|
@@ -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)
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_mk_error(krb5_context context,
|
||||
krb5_error_code error_code,
|
||||
const char *e_text,
|
||||
|
@@ -36,7 +36,7 @@
|
||||
RCSID("$Id$");
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_mk_priv(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
const krb5_data *userdata,
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_mk_rep(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_data *outbuf)
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_mk_req_exact(krb5_context context,
|
||||
krb5_auth_context *auth_context,
|
||||
const krb5_flags ap_req_options,
|
||||
@@ -79,7 +79,7 @@ krb5_mk_req_exact(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_mk_req(krb5_context context,
|
||||
krb5_auth_context *auth_context,
|
||||
const krb5_flags ap_req_options,
|
||||
|
@@ -160,7 +160,7 @@ _krb5_mk_req_internal(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_mk_req_extended(krb5_context context,
|
||||
krb5_auth_context *auth_context,
|
||||
const krb5_flags ap_req_options,
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_mk_safe(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
const krb5_data *userdata,
|
||||
|
@@ -92,7 +92,7 @@ static struct testcase {
|
||||
{NULL, 0}
|
||||
};
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
unsigned char data[MAXSIZE];
|
||||
|
@@ -95,7 +95,7 @@ add1(unsigned char *a, unsigned char *b, size_t len)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
_krb5_n_fold(const void *str, size_t len, void *key, size_t size)
|
||||
{
|
||||
/* if len < size we need at most N * len bytes, ie < 2 * size;
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_ssize_t
|
||||
krb5_ssize_t KRB5_LIB_FUNCTION
|
||||
krb5_net_read (krb5_context context,
|
||||
void *p_fd,
|
||||
void *buf,
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_ssize_t
|
||||
krb5_ssize_t KRB5_LIB_FUNCTION
|
||||
krb5_net_write (krb5_context context,
|
||||
void *p_fd,
|
||||
const void *buf,
|
||||
@@ -46,7 +46,7 @@ krb5_net_write (krb5_context context,
|
||||
return net_write (fd, buf, len);
|
||||
}
|
||||
|
||||
krb5_ssize_t
|
||||
krb5_ssize_t KRB5_LIB_FUNCTION
|
||||
krb5_net_write_block(krb5_context context,
|
||||
void *p_fd,
|
||||
const void *buf,
|
||||
|
@@ -44,7 +44,7 @@ krb5_find_padata(PA_DATA *val, unsigned len, int type, int *index)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
krb5_padata_add(krb5_context context, METHOD_DATA *md,
|
||||
int type, void *buf, size_t len)
|
||||
{
|
||||
|
@@ -62,7 +62,7 @@ static struct testcase {
|
||||
{"a/b/c", "a/b/c@", "", 3, {"a", "b", "c"}, FALSE},
|
||||
{NULL, NULL, "", 0, { NULL }, FALSE}};
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
struct testcase *t;
|
||||
|
@@ -140,7 +140,7 @@ static unsigned dhpublicnumber_num[] =
|
||||
heim_oid heim_dhpublicnumber_oid =
|
||||
oid_enc(dhpublicnumber_num);
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
_krb5_pk_cert_free(struct krb5_pk_cert *cert)
|
||||
{
|
||||
if (cert->cert)
|
||||
@@ -194,7 +194,7 @@ set_digest_alg(DigestAlgorithmIdentifier *id,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
_krb5_pk_create_sign(krb5_context context,
|
||||
const heim_oid *eContentType,
|
||||
krb5_data *eContent,
|
||||
@@ -536,7 +536,7 @@ build_auth_pack_win2k(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
_krb5_pk_mk_ContentInfo(krb5_context context,
|
||||
const krb5_data *buf,
|
||||
const heim_oid *oid,
|
||||
@@ -682,7 +682,7 @@ pk_mk_padata(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
_krb5_pk_mk_padata(krb5_context context,
|
||||
void *c,
|
||||
const KDC_REQ_BODY *req_body,
|
||||
@@ -991,7 +991,7 @@ any_to_CertificateSet(krb5_context context, heim_any *cert,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
_krb5_pk_verify_sign(krb5_context context,
|
||||
const char *data,
|
||||
size_t length,
|
||||
@@ -1599,7 +1599,7 @@ _krb5_pk_convert_rep(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
_krb5_pk_rd_pa_reply(krb5_context context,
|
||||
void *c,
|
||||
krb5_enctype etype,
|
||||
@@ -1686,7 +1686,7 @@ ssl_pass_cb(char *buf, int size, int rwflag, void *u)
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
_krb5_pk_load_openssl_id(krb5_context context,
|
||||
struct krb5_pk_identity **ret_id,
|
||||
const char *user_id,
|
||||
@@ -1906,7 +1906,7 @@ _krb5_pk_load_openssl_id(krb5_context context,
|
||||
|
||||
#endif /* PKINIT */
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_opt_free_pkinit(krb5_get_init_creds_opt *opt)
|
||||
{
|
||||
#ifdef PKINIT
|
||||
@@ -1930,7 +1930,7 @@ krb5_get_init_creds_opt_free_pkinit(krb5_get_init_creds_opt *opt)
|
||||
#endif
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_init_creds_opt_set_pkinit(krb5_context context,
|
||||
krb5_get_init_creds_opt *opt,
|
||||
const char *user_id,
|
||||
|
@@ -49,7 +49,7 @@ RCSID("$Id$");
|
||||
#define princ_ncomp(P, N) ((P)->name.name_string.val[(N)])
|
||||
#define princ_realm(P) ((P)->realm)
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_free_principal(krb5_context context,
|
||||
krb5_principal p)
|
||||
{
|
||||
@@ -59,7 +59,7 @@ krb5_free_principal(krb5_context context,
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_principal_set_type(krb5_context context,
|
||||
krb5_principal principal,
|
||||
int type)
|
||||
@@ -67,21 +67,21 @@ krb5_principal_set_type(krb5_context context,
|
||||
princ_type(principal) = type;
|
||||
}
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
krb5_principal_get_type(krb5_context context,
|
||||
krb5_principal principal)
|
||||
{
|
||||
return princ_type(principal);
|
||||
}
|
||||
|
||||
const char *
|
||||
const char* KRB5_LIB_FUNCTION
|
||||
krb5_principal_get_realm(krb5_context context,
|
||||
krb5_principal principal)
|
||||
{
|
||||
return princ_realm(principal);
|
||||
}
|
||||
|
||||
const char *
|
||||
const char* KRB5_LIB_FUNCTION
|
||||
krb5_principal_get_comp_string(krb5_context context,
|
||||
krb5_principal principal,
|
||||
unsigned int component)
|
||||
@@ -91,7 +91,7 @@ krb5_principal_get_comp_string(krb5_context context,
|
||||
return princ_ncomp(principal, component);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_parse_name(krb5_context context,
|
||||
const char *name,
|
||||
krb5_principal *principal)
|
||||
@@ -287,7 +287,7 @@ unparse_name_fixed(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_unparse_name_fixed(krb5_context context,
|
||||
krb5_const_principal principal,
|
||||
char *name,
|
||||
@@ -296,7 +296,7 @@ krb5_unparse_name_fixed(krb5_context context,
|
||||
return unparse_name_fixed(context, principal, name, len, FALSE);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_unparse_name_fixed_short(krb5_context context,
|
||||
krb5_const_principal principal,
|
||||
char *name,
|
||||
@@ -343,7 +343,7 @@ unparse_name(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_unparse_name(krb5_context context,
|
||||
krb5_const_principal principal,
|
||||
char **name)
|
||||
@@ -351,7 +351,7 @@ krb5_unparse_name(krb5_context context,
|
||||
return unparse_name(context, principal, name, FALSE);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_unparse_name_short(krb5_context context,
|
||||
krb5_const_principal principal,
|
||||
char **name)
|
||||
@@ -361,7 +361,7 @@ krb5_unparse_name_short(krb5_context context,
|
||||
|
||||
#if 0 /* not implemented */
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_unparse_name_ext(krb5_context context,
|
||||
krb5_const_principal principal,
|
||||
char **name,
|
||||
@@ -380,7 +380,7 @@ krb5_princ_realm(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_princ_set_realm(krb5_context context,
|
||||
krb5_principal principal,
|
||||
krb5_realm *realm)
|
||||
@@ -389,7 +389,7 @@ krb5_princ_set_realm(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_build_principal(krb5_context context,
|
||||
krb5_principal *principal,
|
||||
int rlen,
|
||||
@@ -485,7 +485,7 @@ build_principal(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_make_principal(krb5_context context,
|
||||
krb5_principal *principal,
|
||||
krb5_const_realm realm,
|
||||
@@ -508,7 +508,7 @@ krb5_make_principal(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_build_principal_va(krb5_context context,
|
||||
krb5_principal *principal,
|
||||
int rlen,
|
||||
@@ -518,7 +518,7 @@ krb5_build_principal_va(krb5_context context,
|
||||
return build_principal(context, principal, rlen, realm, va_princ, ap);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_build_principal_va_ext(krb5_context context,
|
||||
krb5_principal *principal,
|
||||
int rlen,
|
||||
@@ -529,7 +529,7 @@ krb5_build_principal_va_ext(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_build_principal_ext(krb5_context context,
|
||||
krb5_principal *principal,
|
||||
int rlen,
|
||||
@@ -545,7 +545,7 @@ krb5_build_principal_ext(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_copy_principal(krb5_context context,
|
||||
krb5_const_principal inprinc,
|
||||
krb5_principal *outprinc)
|
||||
@@ -568,7 +568,7 @@ krb5_copy_principal(krb5_context context,
|
||||
* return TRUE iff princ1 == princ2 (without considering the realm)
|
||||
*/
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_principal_compare_any_realm(krb5_context context,
|
||||
krb5_const_principal princ1,
|
||||
krb5_const_principal princ2)
|
||||
@@ -587,7 +587,7 @@ krb5_principal_compare_any_realm(krb5_context context,
|
||||
* return TRUE iff princ1 == princ2
|
||||
*/
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_principal_compare(krb5_context context,
|
||||
krb5_const_principal princ1,
|
||||
krb5_const_principal princ2)
|
||||
@@ -601,7 +601,7 @@ krb5_principal_compare(krb5_context context,
|
||||
* return TRUE iff realm(princ1) == realm(princ2)
|
||||
*/
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_realm_compare(krb5_context context,
|
||||
krb5_const_principal princ1,
|
||||
krb5_const_principal princ2)
|
||||
@@ -613,7 +613,7 @@ krb5_realm_compare(krb5_context context,
|
||||
* return TRUE iff princ matches pattern
|
||||
*/
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_principal_match(krb5_context context,
|
||||
krb5_const_principal princ,
|
||||
krb5_const_principal pattern)
|
||||
@@ -694,7 +694,7 @@ get_name_conversion(krb5_context context, const char *realm, const char *name)
|
||||
* if `func', use that function for validating the conversion
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_425_conv_principal_ext(krb5_context context,
|
||||
const char *name,
|
||||
const char *instance,
|
||||
@@ -887,7 +887,7 @@ no_host:
|
||||
return HEIM_ERR_V4_PRINC_NO_CONV;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_425_conv_principal(krb5_context context,
|
||||
const char *name,
|
||||
const char *instance,
|
||||
@@ -980,7 +980,7 @@ name_convert(krb5_context context, const char *name, const char *realm,
|
||||
* three parameters. They have to be 40 bytes each (ANAME_SZ).
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_524_conv_principal(krb5_context context,
|
||||
const krb5_principal principal,
|
||||
char *name,
|
||||
@@ -1051,7 +1051,7 @@ krb5_524_conv_principal(krb5_context context,
|
||||
* Create a principal in `ret_princ' for the service `sname' running
|
||||
* on host `hostname'. */
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_sname_to_principal (krb5_context context,
|
||||
const char *hostname,
|
||||
const char *sname,
|
||||
|
@@ -37,14 +37,14 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_std_usage(int code, struct getargs *args, int num_args)
|
||||
{
|
||||
arg_printusage(args, num_args, NULL, "");
|
||||
exit(code);
|
||||
}
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
krb5_program_setup(krb5_context *context, int argc, char **argv,
|
||||
struct getargs *args, int num_args,
|
||||
void (*usage)(int, struct getargs*, int))
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
int
|
||||
int KRB5_LIB_FUNCTION
|
||||
krb5_prompter_posix (krb5_context context,
|
||||
void *data,
|
||||
const char *name,
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rd_cred(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_data *in_data,
|
||||
@@ -272,7 +272,7 @@ krb5_rd_cred(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rd_cred2 (krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
krb5_ccache ccache,
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rd_error(krb5_context context,
|
||||
krb5_data *msg,
|
||||
KRB_ERROR *result)
|
||||
@@ -51,14 +51,14 @@ krb5_rd_error(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_free_error_contents (krb5_context context,
|
||||
krb5_error *error)
|
||||
{
|
||||
free_KRB_ERROR(error);
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_free_error (krb5_context context,
|
||||
krb5_error *error)
|
||||
{
|
||||
@@ -66,7 +66,7 @@ krb5_free_error (krb5_context context,
|
||||
free (error);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_error_from_rd_error(krb5_context context,
|
||||
const krb5_error *error,
|
||||
const krb5_creds *creds)
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rd_priv(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
const krb5_data *inbuf,
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rd_rep(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
const krb5_data *inbuf,
|
||||
@@ -108,7 +108,7 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_free_ap_rep_enc_part (krb5_context context,
|
||||
krb5_ap_rep_enc_part *val)
|
||||
{
|
||||
|
@@ -101,7 +101,7 @@ decrypt_authenticator (krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_decode_ap_req(krb5_context context,
|
||||
const krb5_data *inbuf,
|
||||
krb5_ap_req *ap_req)
|
||||
@@ -155,7 +155,7 @@ check_transited(krb5_context context, Ticket *ticket, EncTicketPart *enc)
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_decrypt_ticket(krb5_context context,
|
||||
Ticket *ticket,
|
||||
krb5_keyblock *key,
|
||||
@@ -204,7 +204,7 @@ krb5_decrypt_ticket(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_verify_authenticator_checksum(krb5_context context,
|
||||
krb5_auth_context ac,
|
||||
void *data,
|
||||
@@ -244,7 +244,7 @@ out:
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_verify_ap_req(krb5_context context,
|
||||
krb5_auth_context *auth_context,
|
||||
krb5_ap_req *ap_req,
|
||||
@@ -265,7 +265,7 @@ krb5_verify_ap_req(krb5_context context,
|
||||
KRB5_KU_AP_REQ_AUTH);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_verify_ap_req2(krb5_context context,
|
||||
krb5_auth_context *auth_context,
|
||||
krb5_ap_req *ap_req,
|
||||
@@ -401,7 +401,7 @@ krb5_verify_ap_req2(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rd_req_with_keyblock(krb5_context context,
|
||||
krb5_auth_context *auth_context,
|
||||
const krb5_data *inbuf,
|
||||
@@ -476,7 +476,7 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rd_req(krb5_context context,
|
||||
krb5_auth_context *auth_context,
|
||||
const krb5_data *inbuf,
|
||||
|
@@ -82,7 +82,7 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rd_safe(krb5_context context,
|
||||
krb5_auth_context auth_context,
|
||||
const krb5_data *inbuf,
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_read_message (krb5_context context,
|
||||
krb5_pointer p_fd,
|
||||
krb5_data *data)
|
||||
@@ -67,7 +67,7 @@ krb5_read_message (krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_read_priv_message(krb5_context context,
|
||||
krb5_auth_context ac,
|
||||
krb5_pointer p_fd,
|
||||
@@ -84,7 +84,7 @@ krb5_read_priv_message(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_read_safe_message(krb5_context context,
|
||||
krb5_auth_context ac,
|
||||
krb5_pointer p_fd,
|
||||
|
@@ -45,7 +45,7 @@ match_exact(const void *data, const char *appl_version)
|
||||
return strcmp(data, appl_version) == 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_recvauth(krb5_context context,
|
||||
krb5_auth_context *auth_context,
|
||||
krb5_pointer p_fd,
|
||||
@@ -61,7 +61,7 @@ krb5_recvauth(krb5_context context,
|
||||
keytab, ticket);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_recvauth_match_version(krb5_context context,
|
||||
krb5_auth_context *auth_context,
|
||||
krb5_pointer p_fd,
|
||||
|
@@ -40,7 +40,7 @@ struct krb5_rcache_data {
|
||||
char *name;
|
||||
};
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rc_resolve(krb5_context context,
|
||||
krb5_rcache id,
|
||||
const char *name)
|
||||
@@ -53,7 +53,7 @@ krb5_rc_resolve(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rc_resolve_type(krb5_context context,
|
||||
krb5_rcache *id,
|
||||
const char *type)
|
||||
@@ -71,7 +71,7 @@ krb5_rc_resolve_type(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rc_resolve_full(krb5_context context,
|
||||
krb5_rcache *id,
|
||||
const char *string_name)
|
||||
@@ -89,19 +89,19 @@ krb5_rc_resolve_full(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
const char *
|
||||
const char* KRB5_LIB_FUNCTION
|
||||
krb5_rc_default_name(krb5_context context)
|
||||
{
|
||||
return "FILE:/var/run/default_rcache";
|
||||
}
|
||||
|
||||
const char *
|
||||
const char* KRB5_LIB_FUNCTION
|
||||
krb5_rc_default_type(krb5_context context)
|
||||
{
|
||||
return "FILE";
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rc_default(krb5_context context,
|
||||
krb5_rcache *id)
|
||||
{
|
||||
@@ -113,7 +113,7 @@ struct rc_entry{
|
||||
unsigned char data[16];
|
||||
};
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rc_initialize(krb5_context context,
|
||||
krb5_rcache id,
|
||||
krb5_deltat auth_lifespan)
|
||||
@@ -134,14 +134,14 @@ krb5_rc_initialize(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rc_recover(krb5_context context,
|
||||
krb5_rcache id)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rc_destroy(krb5_context context,
|
||||
krb5_rcache id)
|
||||
{
|
||||
@@ -156,7 +156,7 @@ krb5_rc_destroy(krb5_context context,
|
||||
return krb5_rc_close(context, id);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rc_close(krb5_context context,
|
||||
krb5_rcache id)
|
||||
{
|
||||
@@ -181,7 +181,7 @@ checksum_authenticator(Authenticator *auth, void *data)
|
||||
MD5_Final (data, &md5);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rc_store(krb5_context context,
|
||||
krb5_rcache id,
|
||||
krb5_donot_replay *rep)
|
||||
@@ -229,14 +229,14 @@ krb5_rc_store(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rc_expunge(krb5_context context,
|
||||
krb5_rcache id)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_rc_get_lifespan(krb5_context context,
|
||||
krb5_rcache id,
|
||||
krb5_deltat *auth_lifespan)
|
||||
@@ -254,21 +254,21 @@ krb5_rc_get_lifespan(krb5_context context,
|
||||
return KRB5_RC_IO_UNKNOWN;
|
||||
}
|
||||
|
||||
const char*
|
||||
const char* KRB5_LIB_FUNCTION
|
||||
krb5_rc_get_name(krb5_context context,
|
||||
krb5_rcache id)
|
||||
{
|
||||
return id->name;
|
||||
}
|
||||
|
||||
const char*
|
||||
const char* KRB5_LIB_FUNCTION
|
||||
krb5_rc_get_type(krb5_context context,
|
||||
krb5_rcache id)
|
||||
{
|
||||
return "FILE";
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_get_server_rcache(krb5_context context,
|
||||
const krb5_data *piece,
|
||||
krb5_rcache *id)
|
||||
|
@@ -304,7 +304,7 @@ send_via_proxy (krb5_context context,
|
||||
* in `receive'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_sendto (krb5_context context,
|
||||
const krb5_data *send_data,
|
||||
krb5_krbhst_handle handle,
|
||||
@@ -367,7 +367,7 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_sendto_kdc(krb5_context context,
|
||||
const krb5_data *send_data,
|
||||
const krb5_realm *realm,
|
||||
@@ -376,7 +376,7 @@ krb5_sendto_kdc(krb5_context context,
|
||||
return krb5_sendto_kdc_flags(context, send_data, realm, receive, 0);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_sendto_kdc_flags(krb5_context context,
|
||||
const krb5_data *send_data,
|
||||
const krb5_realm *realm,
|
||||
|
@@ -62,7 +62,7 @@ RCSID("$Id$");
|
||||
* }
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_sendauth(krb5_context context,
|
||||
krb5_auth_context *auth_context,
|
||||
krb5_pointer p_fd,
|
||||
|
@@ -65,7 +65,7 @@ string_to_list (krb5_context context, const char *s, krb5_realm **list)
|
||||
* Otherwise, the realm(s) are figured out from configuration or DNS.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_set_default_realm(krb5_context context,
|
||||
const char *realm)
|
||||
{
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_sock_to_principal (krb5_context context,
|
||||
int sock,
|
||||
const char *sname,
|
||||
|
@@ -42,62 +42,62 @@ RCSID("$Id$");
|
||||
#define BYTEORDER_IS_HOST(SP) (BYTEORDER_IS((SP), KRB5_STORAGE_BYTEORDER_HOST) || \
|
||||
krb5_storage_is_flags((SP), KRB5_STORAGE_HOST_BYTEORDER))
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_storage_set_flags(krb5_storage *sp, krb5_flags flags)
|
||||
{
|
||||
sp->flags |= flags;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_storage_clear_flags(krb5_storage *sp, krb5_flags flags)
|
||||
{
|
||||
sp->flags &= ~flags;
|
||||
}
|
||||
|
||||
krb5_boolean
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_storage_is_flags(krb5_storage *sp, krb5_flags flags)
|
||||
{
|
||||
return (sp->flags & flags) == flags;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_storage_set_byteorder(krb5_storage *sp, krb5_flags byteorder)
|
||||
{
|
||||
sp->flags &= ~KRB5_STORAGE_BYTEORDER_MASK;
|
||||
sp->flags |= byteorder;
|
||||
}
|
||||
|
||||
krb5_flags
|
||||
krb5_flags KRB5_LIB_FUNCTION
|
||||
krb5_storage_get_byteorder(krb5_storage *sp, krb5_flags byteorder)
|
||||
{
|
||||
return sp->flags & KRB5_STORAGE_BYTEORDER_MASK;
|
||||
}
|
||||
|
||||
off_t
|
||||
off_t KRB5_LIB_FUNCTION
|
||||
krb5_storage_seek(krb5_storage *sp, off_t offset, int whence)
|
||||
{
|
||||
return (*sp->seek)(sp, offset, whence);
|
||||
}
|
||||
|
||||
krb5_ssize_t
|
||||
krb5_ssize_t KRB5_LIB_FUNCTION
|
||||
krb5_storage_read(krb5_storage *sp, void *buf, size_t len)
|
||||
{
|
||||
return sp->fetch(sp, buf, len);
|
||||
}
|
||||
|
||||
krb5_ssize_t
|
||||
krb5_ssize_t KRB5_LIB_FUNCTION
|
||||
krb5_storage_write(krb5_storage *sp, const void *buf, size_t len)
|
||||
{
|
||||
return sp->store(sp, buf, len);
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_storage_set_eof_code(krb5_storage *sp, int code)
|
||||
{
|
||||
sp->eof_code = code;
|
||||
}
|
||||
|
||||
krb5_ssize_t
|
||||
krb5_ssize_t KRB5_LIB_FUNCTION
|
||||
_krb5_put_int(void *buffer, unsigned long value, size_t size)
|
||||
{
|
||||
unsigned char *p = buffer;
|
||||
@@ -109,7 +109,7 @@ _krb5_put_int(void *buffer, unsigned long value, size_t size)
|
||||
return size;
|
||||
}
|
||||
|
||||
krb5_ssize_t
|
||||
krb5_ssize_t KRB5_LIB_FUNCTION
|
||||
_krb5_get_int(void *buffer, unsigned long *value, size_t size)
|
||||
{
|
||||
unsigned char *p = buffer;
|
||||
@@ -121,7 +121,7 @@ _krb5_get_int(void *buffer, unsigned long *value, size_t size)
|
||||
return size;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_storage_free(krb5_storage *sp)
|
||||
{
|
||||
if(sp->free)
|
||||
@@ -131,7 +131,7 @@ krb5_storage_free(krb5_storage *sp)
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_storage_to_data(krb5_storage *sp, krb5_data *data)
|
||||
{
|
||||
off_t pos;
|
||||
@@ -170,7 +170,7 @@ krb5_store_int(krb5_storage *sp,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_store_int32(krb5_storage *sp,
|
||||
int32_t value)
|
||||
{
|
||||
@@ -197,7 +197,7 @@ krb5_ret_int(krb5_storage *sp,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_ret_int32(krb5_storage *sp,
|
||||
int32_t *value)
|
||||
{
|
||||
@@ -211,7 +211,7 @@ krb5_ret_int32(krb5_storage *sp,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_store_int16(krb5_storage *sp,
|
||||
int16_t value)
|
||||
{
|
||||
@@ -222,7 +222,7 @@ krb5_store_int16(krb5_storage *sp,
|
||||
return krb5_store_int(sp, value, 2);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_ret_int16(krb5_storage *sp,
|
||||
int16_t *value)
|
||||
{
|
||||
@@ -239,7 +239,7 @@ krb5_ret_int16(krb5_storage *sp,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_store_int8(krb5_storage *sp,
|
||||
int8_t value)
|
||||
{
|
||||
@@ -251,7 +251,7 @@ krb5_store_int8(krb5_storage *sp,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_ret_int8(krb5_storage *sp,
|
||||
int8_t *value)
|
||||
{
|
||||
@@ -263,7 +263,7 @@ krb5_ret_int8(krb5_storage *sp,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_store_data(krb5_storage *sp,
|
||||
krb5_data data)
|
||||
{
|
||||
@@ -280,7 +280,7 @@ krb5_store_data(krb5_storage *sp,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_ret_data(krb5_storage *sp,
|
||||
krb5_data *data)
|
||||
{
|
||||
@@ -301,7 +301,7 @@ krb5_ret_data(krb5_storage *sp,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_store_string(krb5_storage *sp, const char *s)
|
||||
{
|
||||
krb5_data data;
|
||||
@@ -310,7 +310,7 @@ krb5_store_string(krb5_storage *sp, const char *s)
|
||||
return krb5_store_data(sp, data);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_ret_string(krb5_storage *sp,
|
||||
char **string)
|
||||
{
|
||||
@@ -328,7 +328,7 @@ krb5_ret_string(krb5_storage *sp,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_store_stringz(krb5_storage *sp, const char *s)
|
||||
{
|
||||
size_t len = strlen(s) + 1;
|
||||
@@ -344,7 +344,7 @@ krb5_store_stringz(krb5_storage *sp, const char *s)
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_ret_stringz(krb5_storage *sp,
|
||||
char **string)
|
||||
{
|
||||
@@ -378,7 +378,7 @@ krb5_ret_stringz(krb5_storage *sp,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_store_principal(krb5_storage *sp,
|
||||
krb5_principal p)
|
||||
{
|
||||
@@ -404,7 +404,7 @@ krb5_store_principal(krb5_storage *sp,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_ret_principal(krb5_storage *sp,
|
||||
krb5_principal *princ)
|
||||
{
|
||||
@@ -447,7 +447,7 @@ krb5_ret_principal(krb5_storage *sp,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_store_keyblock(krb5_storage *sp, krb5_keyblock p)
|
||||
{
|
||||
int ret;
|
||||
@@ -465,7 +465,7 @@ krb5_store_keyblock(krb5_storage *sp, krb5_keyblock p)
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_ret_keyblock(krb5_storage *sp, krb5_keyblock *p)
|
||||
{
|
||||
int ret;
|
||||
@@ -484,7 +484,7 @@ krb5_ret_keyblock(krb5_storage *sp, krb5_keyblock *p)
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_store_times(krb5_storage *sp, krb5_times times)
|
||||
{
|
||||
int ret;
|
||||
@@ -498,7 +498,7 @@ krb5_store_times(krb5_storage *sp, krb5_times times)
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_ret_times(krb5_storage *sp, krb5_times *times)
|
||||
{
|
||||
int ret;
|
||||
@@ -517,7 +517,7 @@ krb5_ret_times(krb5_storage *sp, krb5_times *times)
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_store_address(krb5_storage *sp, krb5_address p)
|
||||
{
|
||||
int ret;
|
||||
@@ -527,7 +527,7 @@ krb5_store_address(krb5_storage *sp, krb5_address p)
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_ret_address(krb5_storage *sp, krb5_address *adr)
|
||||
{
|
||||
int16_t t;
|
||||
@@ -539,7 +539,7 @@ krb5_ret_address(krb5_storage *sp, krb5_address *adr)
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_store_addrs(krb5_storage *sp, krb5_addresses p)
|
||||
{
|
||||
int i;
|
||||
@@ -553,7 +553,7 @@ krb5_store_addrs(krb5_storage *sp, krb5_addresses p)
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_ret_addrs(krb5_storage *sp, krb5_addresses *adr)
|
||||
{
|
||||
int i;
|
||||
@@ -573,7 +573,7 @@ krb5_ret_addrs(krb5_storage *sp, krb5_addresses *adr)
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_store_authdata(krb5_storage *sp, krb5_authdata auth)
|
||||
{
|
||||
krb5_error_code ret;
|
||||
@@ -589,7 +589,7 @@ krb5_store_authdata(krb5_storage *sp, krb5_authdata auth)
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_ret_authdata(krb5_storage *sp, krb5_authdata *auth)
|
||||
{
|
||||
krb5_error_code ret;
|
||||
@@ -628,7 +628,7 @@ bitswap32(int32_t b)
|
||||
*
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_store_creds(krb5_storage *sp, krb5_creds *creds)
|
||||
{
|
||||
int ret;
|
||||
@@ -669,7 +669,7 @@ krb5_store_creds(krb5_storage *sp, krb5_creds *creds)
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_ret_creds(krb5_storage *sp, krb5_creds *creds)
|
||||
{
|
||||
krb5_error_code ret;
|
||||
|
@@ -112,7 +112,7 @@ emem_free(krb5_storage *sp)
|
||||
free(s->base);
|
||||
}
|
||||
|
||||
krb5_storage *
|
||||
krb5_storage * KRB5_LIB_FUNCTION
|
||||
krb5_storage_emem(void)
|
||||
{
|
||||
krb5_storage *sp = malloc(sizeof(krb5_storage));
|
||||
|
@@ -66,7 +66,7 @@ fd_free(krb5_storage * sp)
|
||||
close(FD(sp));
|
||||
}
|
||||
|
||||
krb5_storage *
|
||||
krb5_storage * KRB5_LIB_FUNCTION
|
||||
krb5_storage_from_fd(int fd)
|
||||
{
|
||||
krb5_storage *sp;
|
||||
|
@@ -87,7 +87,7 @@ mem_seek(krb5_storage *sp, off_t offset, int whence)
|
||||
return s->ptr - s->base;
|
||||
}
|
||||
|
||||
krb5_storage *
|
||||
krb5_storage * KRB5_LIB_FUNCTION
|
||||
krb5_storage_from_mem(void *buf, size_t len)
|
||||
{
|
||||
krb5_storage *sp = malloc(sizeof(krb5_storage));
|
||||
@@ -112,7 +112,7 @@ krb5_storage_from_mem(void *buf, size_t len)
|
||||
return sp;
|
||||
}
|
||||
|
||||
krb5_storage *
|
||||
krb5_storage * KRB5_LIB_FUNCTION
|
||||
krb5_storage_from_data(krb5_data *data)
|
||||
{
|
||||
return krb5_storage_from_mem(data->data, data->length);
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_free_ticket(krb5_context context,
|
||||
krb5_ticket *ticket)
|
||||
{
|
||||
@@ -46,7 +46,7 @@ krb5_free_ticket(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_copy_ticket(krb5_context context,
|
||||
const krb5_ticket *from,
|
||||
krb5_ticket **to)
|
||||
@@ -81,7 +81,7 @@ krb5_copy_ticket(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_ticket_get_client(krb5_context context,
|
||||
const krb5_ticket *ticket,
|
||||
krb5_principal *client)
|
||||
@@ -89,7 +89,7 @@ krb5_ticket_get_client(krb5_context context,
|
||||
return krb5_copy_principal(context, ticket->client, client);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_ticket_get_server(krb5_context context,
|
||||
const krb5_ticket *ticket,
|
||||
krb5_principal *server)
|
||||
@@ -97,7 +97,7 @@ krb5_ticket_get_server(krb5_context context,
|
||||
return krb5_copy_principal(context, ticket->server, server);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_ticket_get_authorization_data_type(krb5_context context,
|
||||
krb5_ticket *ticket,
|
||||
int type,
|
||||
|
@@ -41,7 +41,7 @@ RCSID("$Id$");
|
||||
* KDC time and local system time.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_set_real_time (krb5_context context,
|
||||
krb5_timestamp sec,
|
||||
int32_t usec)
|
||||
@@ -64,7 +64,7 @@ krb5_set_real_time (krb5_context context,
|
||||
* return ``corrected'' time in `timeret'.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_timeofday (krb5_context context,
|
||||
krb5_timestamp *timeret)
|
||||
{
|
||||
@@ -76,7 +76,7 @@ krb5_timeofday (krb5_context context,
|
||||
* like gettimeofday but with time correction to the KDC
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_us_timeofday (krb5_context context,
|
||||
krb5_timestamp *sec,
|
||||
int32_t *usec)
|
||||
@@ -90,7 +90,7 @@ krb5_us_timeofday (krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_format_time(krb5_context context, time_t t,
|
||||
char *s, size_t len, krb5_boolean include_time)
|
||||
{
|
||||
@@ -103,7 +103,7 @@ krb5_format_time(krb5_context context, time_t t,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_string_to_deltat(const char *string, krb5_deltat *deltat)
|
||||
{
|
||||
if((*deltat = parse_time(string, "s")) == -1)
|
||||
|
@@ -299,7 +299,7 @@ decode_realms(krb5_context context,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_domain_x500_decode(krb5_context context,
|
||||
krb5_data tr, char ***realms, int *num_realms,
|
||||
const char *client_realm, const char *server_realm)
|
||||
@@ -362,7 +362,7 @@ krb5_domain_x500_decode(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_domain_x500_encode(char **realms, int num_realms, krb5_data *encoding)
|
||||
{
|
||||
char *s = NULL;
|
||||
@@ -393,7 +393,7 @@ krb5_domain_x500_encode(char **realms, int num_realms, krb5_data *encoding)
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_check_transited(krb5_context context,
|
||||
krb5_const_realm client_realm,
|
||||
krb5_const_realm server_realm,
|
||||
@@ -431,7 +431,7 @@ krb5_check_transited(krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_check_transited_realms(krb5_context context,
|
||||
const char *const *realms,
|
||||
int num_realms,
|
||||
|
@@ -35,13 +35,13 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_verify_init_creds_opt_init(krb5_verify_init_creds_opt *options)
|
||||
{
|
||||
memset (options, 0, sizeof(*options));
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_verify_init_creds_opt_set_ap_req_nofail(krb5_verify_init_creds_opt *options,
|
||||
int ap_req_nofail)
|
||||
{
|
||||
@@ -69,7 +69,7 @@ fail_verify_is_ok (krb5_context context,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_verify_init_creds(krb5_context context,
|
||||
krb5_creds *creds,
|
||||
krb5_principal ap_req_server,
|
||||
|
@@ -90,7 +90,7 @@ verify_common (krb5_context context,
|
||||
* As a side effect, fresh tickets are obtained and stored in `ccache'.
|
||||
*/
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_verify_opt_init(krb5_verify_opt *opt)
|
||||
{
|
||||
memset(opt, 0, sizeof(*opt));
|
||||
@@ -98,31 +98,31 @@ krb5_verify_opt_init(krb5_verify_opt *opt)
|
||||
opt->service = "host";
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_verify_opt_set_ccache(krb5_verify_opt *opt, krb5_ccache ccache)
|
||||
{
|
||||
opt->ccache = ccache;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_verify_opt_set_keytab(krb5_verify_opt *opt, krb5_keytab keytab)
|
||||
{
|
||||
opt->keytab = keytab;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_verify_opt_set_secure(krb5_verify_opt *opt, krb5_boolean secure)
|
||||
{
|
||||
opt->secure = secure;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_verify_opt_set_service(krb5_verify_opt *opt, const char *service)
|
||||
{
|
||||
opt->service = service;
|
||||
}
|
||||
|
||||
void
|
||||
void KRB5_LIB_FUNCTION
|
||||
krb5_verify_opt_set_flags(krb5_verify_opt *opt, unsigned int flags)
|
||||
{
|
||||
opt->flags |= flags;
|
||||
@@ -164,7 +164,7 @@ verify_user_opt_int(krb5_context context,
|
||||
#undef OPT
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_verify_user_opt(krb5_context context,
|
||||
krb5_principal principal,
|
||||
const char *password,
|
||||
@@ -202,7 +202,7 @@ krb5_verify_user_opt(krb5_context context,
|
||||
|
||||
/* compat function that calls above */
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_verify_user(krb5_context context,
|
||||
krb5_principal principal,
|
||||
krb5_ccache ccache,
|
||||
@@ -226,7 +226,7 @@ krb5_verify_user(krb5_context context,
|
||||
* ignored and all the local realms are tried.
|
||||
*/
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_verify_user_lrealm(krb5_context context,
|
||||
krb5_principal principal,
|
||||
krb5_ccache ccache,
|
||||
|
@@ -96,7 +96,7 @@ _warnerr(krb5_context context, int do_errtext,
|
||||
#undef __attribute__
|
||||
#define __attribute__(X)
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_vwarn(krb5_context context, krb5_error_code code,
|
||||
const char *fmt, va_list ap)
|
||||
__attribute__ ((format (printf, 3, 0)))
|
||||
@@ -105,7 +105,7 @@ krb5_vwarn(krb5_context context, krb5_error_code code,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_warn(krb5_context context, krb5_error_code code, const char *fmt, ...)
|
||||
__attribute__ ((format (printf, 3, 4)))
|
||||
{
|
||||
@@ -113,14 +113,14 @@ krb5_warn(krb5_context context, krb5_error_code code, const char *fmt, ...)
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_vwarnx(krb5_context context, const char *fmt, va_list ap)
|
||||
__attribute__ ((format (printf, 2, 0)))
|
||||
{
|
||||
return _warnerr(context, 0, 0, 1, fmt, ap);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_warnx(krb5_context context, const char *fmt, ...)
|
||||
__attribute__ ((format (printf, 2, 3)))
|
||||
{
|
||||
@@ -128,7 +128,7 @@ krb5_warnx(krb5_context context, const char *fmt, ...)
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_verr(krb5_context context, int eval, krb5_error_code code,
|
||||
const char *fmt, va_list ap)
|
||||
__attribute__ ((noreturn, format (printf, 4, 0)))
|
||||
@@ -138,7 +138,7 @@ krb5_verr(krb5_context context, int eval, krb5_error_code code,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_err(krb5_context context, int eval, krb5_error_code code,
|
||||
const char *fmt, ...)
|
||||
__attribute__ ((noreturn, format (printf, 4, 5)))
|
||||
@@ -147,7 +147,7 @@ krb5_err(krb5_context context, int eval, krb5_error_code code,
|
||||
exit(eval);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_verrx(krb5_context context, int eval, const char *fmt, va_list ap)
|
||||
__attribute__ ((noreturn, format (printf, 3, 0)))
|
||||
{
|
||||
@@ -155,7 +155,7 @@ krb5_verrx(krb5_context context, int eval, const char *fmt, va_list ap)
|
||||
exit(eval);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_errx(krb5_context context, int eval, const char *fmt, ...)
|
||||
__attribute__ ((noreturn, format (printf, 3, 4)))
|
||||
{
|
||||
@@ -163,7 +163,7 @@ krb5_errx(krb5_context context, int eval, const char *fmt, ...)
|
||||
exit(eval);
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_vabort(krb5_context context, krb5_error_code code,
|
||||
const char *fmt, va_list ap)
|
||||
__attribute__ ((noreturn, format (printf, 3, 0)))
|
||||
@@ -173,7 +173,7 @@ krb5_vabort(krb5_context context, krb5_error_code code,
|
||||
}
|
||||
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_abort(krb5_context context, krb5_error_code code, const char *fmt, ...)
|
||||
__attribute__ ((noreturn, format (printf, 3, 4)))
|
||||
{
|
||||
@@ -181,7 +181,7 @@ krb5_abort(krb5_context context, krb5_error_code code, const char *fmt, ...)
|
||||
abort();
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_vabortx(krb5_context context, const char *fmt, va_list ap)
|
||||
__attribute__ ((noreturn, format (printf, 2, 0)))
|
||||
{
|
||||
@@ -189,7 +189,7 @@ krb5_vabortx(krb5_context context, const char *fmt, va_list ap)
|
||||
abort();
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_abortx(krb5_context context, const char *fmt, ...)
|
||||
__attribute__ ((noreturn, format (printf, 2, 3)))
|
||||
{
|
||||
@@ -197,7 +197,7 @@ krb5_abortx(krb5_context context, const char *fmt, ...)
|
||||
abort();
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_set_warn_dest(krb5_context context, krb5_log_facility *fac)
|
||||
{
|
||||
context->warn_dest = fac;
|
||||
|
@@ -35,7 +35,7 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_write_message (krb5_context context,
|
||||
krb5_pointer p_fd,
|
||||
krb5_data *data)
|
||||
@@ -55,7 +55,7 @@ krb5_write_message (krb5_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_write_priv_message(krb5_context context,
|
||||
krb5_auth_context ac,
|
||||
krb5_pointer p_fd,
|
||||
@@ -72,7 +72,7 @@ krb5_write_priv_message(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_write_safe_message(krb5_context context,
|
||||
krb5_auth_context ac,
|
||||
krb5_pointer p_fd,
|
||||
|
Reference in New Issue
Block a user