Lines Matching defs:code

62     krb5_error_code code;
65 code = krb5int_locate_server (context, realm, addrlist,
68 if (code == KRB5_REALM_CANT_RESOLVE || code == KRB5_REALM_UNKNOWN) {
69 code = krb5int_locate_server (context, realm, addrlist,
71 if (!code) {
84 return (code);
89 * This routine is used for a callback in sendto_kdc.c code. Simply
104 krb5_error_code code = 0;
119 code = SOCKET_ERRNO;
133 code = krb5_os_localaddr(ctx->context, &addrs);
134 if (code)
142 code = errno;
158 if ((code = krb5_auth_con_setaddrs(ctx->context, ctx->auth_context,
163 code = krb5int_mk_setpw_req(ctx->context,
170 code = krb5int_mk_chpw_req(ctx->context,
175 if (code)
182 return code;
202 krb5_error_code code = 0;
216 if ((code = krb5_auth_con_init(callback_ctx.context,
220 if ((code = krb5_mk_req_extended(callback_ctx.context,
229 if ((code = krb5_locate_kpasswd(callback_ctx.context,
241 if ((code = krb5int_sendto(callback_ctx.context,
266 if ((code = krb5_auth_con_setaddrs(callback_ctx.context,
273 code = krb5int_rd_setpw_rep(callback_ctx.context,
279 code = krb5int_rd_chpw_rep(callback_ctx.context,
285 if (code) {
286 if (code == KRB5KRB_ERR_RESPONSE_TOO_BIG && !useTcp ) {
300 code = krb5int_setpw_result_code_string(callback_ctx.context,
304 code = krb5_chpw_result_code_string(callback_ctx.context,
307 if(code)
313 code = ENOMEM;
319 if (code == KRB5KRB_ERR_RESPONSE_TOO_BIG && !useTcp ) {
334 return(code);
373 krb5_error_code code;
382 code = krb5_cc_get_principal (context, ccache, &creds.client);
383 if (!code) {
384 code = krb5_build_principal(context, &creds.server,
388 if (!code) {
389 code = krb5_get_credentials(context, 0, ccache, &creds, &credsp);
390 if (!code) {
391 code = krb5_set_password(context, credsp, newpw, change_password_for,
399 return code;