8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / lib / gss_mechs / mech_krb5 / krb5 / krb / int-proto.h
blob7905d76905f3a3501efedfd8bc376c6e09955db2
1 /*
2 * lib/krb5/krb/int-proto.h
4 * Copyright 1990,1991 the Massachusetts Institute of Technology.
5 * All Rights Reserved.
7 * Export of this software from the United States of America may
8 * require a specific license from the United States Government.
9 * It is the responsibility of any person or organization contemplating
10 * export to obtain such a license before exporting.
12 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
13 * distribute this software and its documentation for any purpose and
14 * without fee is hereby granted, provided that the above copyright
15 * notice appear in all copies and that both that copyright notice and
16 * this permission notice appear in supporting documentation, and that
17 * the name of M.I.T. not be used in advertising or publicity pertaining
18 * to distribution of the software without specific, written prior
19 * permission. Furthermore if you modify this software you must label
20 * your software as modified software and not distribute it in such a
21 * fashion that it might be confused with the original M.I.T. software.
22 * M.I.T. makes no representations about the suitability of
23 * this software for any purpose. It is provided "as is" without express
24 * or implied warranty.
27 * Function prototypes for Kerberos V5 library internal functions.
31 #ifndef KRB5_INT_FUNC_PROTO__
32 #define KRB5_INT_FUNC_PROTO__
34 krb5_error_code krb5_tgtname
35 (krb5_context context,
36 const krb5_data *,
37 const krb5_data *,
38 krb5_principal *);
40 krb5_error_code krb5_libdefault_boolean
41 (krb5_context, const krb5_data *, const char *,
42 int *);
44 krb5_error_code krb5_ser_authdata_init (krb5_context);
45 krb5_error_code krb5_ser_address_init (krb5_context);
46 krb5_error_code krb5_ser_authenticator_init (krb5_context);
47 krb5_error_code krb5_ser_checksum_init (krb5_context);
48 krb5_error_code krb5_ser_keyblock_init (krb5_context);
49 krb5_error_code krb5_ser_principal_init (krb5_context);
51 krb5_error_code
52 krb5_preauth_supply_preauth_data(krb5_context context,
53 krb5_gic_opt_ext *opte,
54 const char *attr,
55 const char *value);
57 #define in_clock_skew(date, now) (labs((date)-(now)) < context->clockskew)
59 #define IS_TGS_PRINC(c, p) \
60 (krb5_princ_size((c), (p)) == 2 && \
61 data_eq_string(*krb5_princ_component((c), (p), 0), KRB5_TGS_NAME))
63 #endif /* KRB5_INT_FUNC_PROTO__ */