1 /* This is a generated file */ 2 #ifndef __kdc_private_h__ 3 #define __kdc_private_h__ 4 5 #include <stdarg.h> 6 7 krb5_error_code 8 _kdc_add_KRB5SignedPath ( 9 krb5_context /*context*/, 10 krb5_kdc_configuration */*config*/, 11 hdb_entry_ex */*krbtgt*/, 12 krb5_enctype /*enctype*/, 13 krb5_principal /*client*/, 14 krb5_const_principal /*server*/, 15 krb5_principals /*principals*/, 16 EncTicketPart */*tkt*/); 17 18 krb5_error_code 19 _kdc_add_inital_verified_cas ( 20 krb5_context /*context*/, 21 krb5_kdc_configuration */*config*/, 22 pk_client_params */*cp*/, 23 EncTicketPart */*tkt*/); 24 25 krb5_error_code 26 _kdc_as_rep ( 27 kdc_request_t /*r*/, 28 krb5_data */*reply*/, 29 const char */*from*/, 30 struct sockaddr */*from_addr*/, 31 int /*datagram_reply*/); 32 33 krb5_error_code 34 _kdc_check_access ( 35 krb5_context /*context*/, 36 krb5_kdc_configuration */*config*/, 37 hdb_entry_ex */*client_ex*/, 38 const char */*client_name*/, 39 hdb_entry_ex */*server_ex*/, 40 const char */*server_name*/, 41 KDC_REQ */*req*/, 42 METHOD_DATA */*method_data*/); 43 44 krb5_boolean 45 _kdc_check_addresses ( 46 krb5_context /*context*/, 47 krb5_kdc_configuration */*config*/, 48 HostAddresses */*addresses*/, 49 const struct sockaddr */*from*/); 50 51 krb5_error_code 52 _kdc_db_fetch ( 53 krb5_context /*context*/, 54 krb5_kdc_configuration */*config*/, 55 krb5_const_principal /*principal*/, 56 unsigned /*flags*/, 57 krb5uint32 */*kvno_ptr*/, 58 HDB **/*db*/, 59 hdb_entry_ex **/*h*/); 60 61 krb5_error_code 62 _kdc_do_digest ( 63 krb5_context /*context*/, 64 krb5_kdc_configuration */*config*/, 65 const struct DigestREQ */*req*/, 66 krb5_data */*reply*/, 67 const char */*from*/, 68 struct sockaddr */*addr*/); 69 70 krb5_error_code 71 _kdc_do_kx509 ( 72 krb5_context /*context*/, 73 krb5_kdc_configuration */*config*/, 74 const struct Kx509Request */*req*/, 75 krb5_data */*reply*/, 76 const char */*from*/, 77 struct sockaddr */*addr*/); 78 79 krb5_error_code 80 _kdc_encode_reply ( 81 krb5_context /*context*/, 82 krb5_kdc_configuration */*config*/, 83 krb5_crypto /*armor_crypto*/, 84 uint32_t /*nonce*/, 85 KDC_REP */*rep*/, 86 EncTicketPart */*et*/, 87 EncKDCRepPart */*ek*/, 88 krb5_enctype /*etype*/, 89 int /*skvno*/, 90 const EncryptionKey */*skey*/, 91 int /*ckvno*/, 92 const EncryptionKey */*reply_key*/, 93 int /*rk_is_subkey*/, 94 const char **/*e_text*/, 95 krb5_data */*reply*/); 96 97 krb5_error_code 98 _kdc_fast_mk_error ( 99 krb5_context /*context*/, 100 kdc_request_t /*r*/, 101 METHOD_DATA */*error_method*/, 102 krb5_crypto /*armor_crypto*/, 103 const KDC_REQ_BODY */*req_body*/, 104 krb5_error_code /*outer_error*/, 105 const char */*e_text*/, 106 krb5_principal /*error_server*/, 107 const PrincipalName */*error_client_name*/, 108 const Realm */*error_client_realm*/, 109 time_t */*csec*/, 110 int */*cusec*/, 111 krb5_data */*error_msg*/); 112 113 krb5_error_code 114 _kdc_fast_mk_response ( 115 krb5_context /*context*/, 116 krb5_crypto /*armor_crypto*/, 117 METHOD_DATA */*pa_data*/, 118 krb5_keyblock */*strengthen_key*/, 119 KrbFastFinished */*finished*/, 120 krb5uint32 /*nonce*/, 121 krb5_data */*data*/); 122 123 krb5_error_code 124 _kdc_fast_unwrap_request (kdc_request_t /*r*/); 125 126 krb5_error_code 127 _kdc_find_etype ( 128 krb5_context /*context*/, 129 krb5_boolean /*use_strongest_session_key*/, 130 krb5_boolean /*is_preauth*/, 131 hdb_entry_ex */*princ*/, 132 krb5_enctype */*etypes*/, 133 unsigned /*len*/, 134 krb5_enctype */*ret_enctype*/, 135 Key **/*ret_key*/); 136 137 const PA_DATA* 138 _kdc_find_padata ( 139 const KDC_REQ */*req*/, 140 int */*start*/, 141 int /*type*/); 142 143 void 144 _kdc_fix_time (time_t **/*t*/); 145 146 void 147 _kdc_free_ent ( 148 krb5_context /*context*/, 149 hdb_entry_ex */*ent*/); 150 151 krb5_error_code 152 _kdc_generate_ecdh_keyblock ( 153 krb5_context /*context*/, 154 void */*ec_key_pk*/, 155 void **/*ec_key_key*/, 156 unsigned char **/*dh_gen_key*/, 157 size_t */*dh_gen_keylen*/); 158 159 krb5_error_code 160 _kdc_get_ecdh_param ( 161 krb5_context /*context*/, 162 krb5_kdc_configuration */*config*/, 163 SubjectPublicKeyInfo */*dh_key_info*/, 164 void **/*out*/); 165 166 krb5_error_code 167 _kdc_get_preferred_key ( 168 krb5_context /*context*/, 169 krb5_kdc_configuration */*config*/, 170 hdb_entry_ex */*h*/, 171 const char */*name*/, 172 krb5_enctype */*enctype*/, 173 Key **/*key*/); 174 175 krb5_boolean 176 _kdc_is_anon_request (const KDC_REQ_BODY */*b*/); 177 178 krb5_boolean 179 _kdc_is_anonymous ( 180 krb5_context /*context*/, 181 krb5_principal /*principal*/); 182 183 krb5_boolean 184 _kdc_is_weak_exception ( 185 krb5_principal /*principal*/, 186 krb5_enctype /*etype*/); 187 188 void 189 _kdc_log_timestamp ( 190 krb5_context /*context*/, 191 krb5_kdc_configuration */*config*/, 192 const char */*type*/, 193 KerberosTime /*authtime*/, 194 KerberosTime */*starttime*/, 195 KerberosTime /*endtime*/, 196 KerberosTime */*renew_till*/); 197 198 krb5_error_code 199 _kdc_make_anonymous_principalname (PrincipalName */*pn*/); 200 201 krb5_error_code 202 _kdc_pac_generate ( 203 krb5_context /*context*/, 204 hdb_entry_ex */*client*/, 205 krb5_pac */*pac*/); 206 207 krb5_error_code 208 _kdc_pac_verify ( 209 krb5_context /*context*/, 210 const krb5_principal /*client_principal*/, 211 const krb5_principal /*delegated_proxy_principal*/, 212 hdb_entry_ex */*client*/, 213 hdb_entry_ex */*server*/, 214 hdb_entry_ex */*krbtgt*/, 215 krb5_pac */*pac*/, 216 int */*verified*/); 217 218 krb5_error_code 219 _kdc_pk_check_client ( 220 krb5_context /*context*/, 221 krb5_kdc_configuration */*config*/, 222 HDB */*clientdb*/, 223 hdb_entry_ex */*client*/, 224 pk_client_params */*cp*/, 225 char **/*subject_name*/); 226 227 void 228 _kdc_pk_free_client_ec_param ( 229 krb5_context /*context*/, 230 void */*ec_key_pk*/, 231 void */*ec_key_key*/); 232 233 void 234 _kdc_pk_free_client_param ( 235 krb5_context /*context*/, 236 pk_client_params */*cp*/); 237 238 krb5_error_code 239 _kdc_pk_mk_pa_reply ( 240 krb5_context /*context*/, 241 krb5_kdc_configuration */*config*/, 242 pk_client_params */*cp*/, 243 const hdb_entry_ex */*client*/, 244 krb5_enctype /*sessionetype*/, 245 const KDC_REQ */*req*/, 246 const krb5_data */*req_buffer*/, 247 krb5_keyblock */*reply_key*/, 248 krb5_keyblock */*sessionkey*/, 249 METHOD_DATA */*md*/); 250 251 krb5_error_code 252 _kdc_pk_rd_padata ( 253 krb5_context /*context*/, 254 krb5_kdc_configuration */*config*/, 255 const KDC_REQ */*req*/, 256 const PA_DATA */*pa*/, 257 hdb_entry_ex */*client*/, 258 pk_client_params **/*ret_params*/); 259 260 krb5_error_code 261 _kdc_serialize_ecdh_key ( 262 krb5_context /*context*/, 263 void */*key*/, 264 unsigned char **/*out*/, 265 size_t */*out_len*/); 266 267 krb5_error_code 268 _kdc_tgs_rep ( 269 krb5_context /*context*/, 270 krb5_kdc_configuration */*config*/, 271 KDC_REQ */*req*/, 272 krb5_data */*data*/, 273 const char */*from*/, 274 struct sockaddr */*from_addr*/, 275 int /*datagram_reply*/); 276 277 krb5_error_code 278 _kdc_tkt_add_if_relevant_ad ( 279 krb5_context /*context*/, 280 EncTicketPart */*tkt*/, 281 int /*type*/, 282 const krb5_data */*data*/); 283 284 krb5_error_code 285 _kdc_try_kx509_request ( 286 void */*ptr*/, 287 size_t /*len*/, 288 struct Kx509Request */*req*/, 289 size_t */*size*/); 290 291 #endif /* __kdc_private_h__ */ 292