Lines Matching defs:code
51 * and the DNS-SRVrecs code does not do that).
88 krb5_error_code code;
92 code = profile_get_string(context->profile, "libdefaults",
94 if (value == 0 && code == 0)
95 code = profile_get_string(context->profile, "libdefaults",
97 if (code)
171 /* Translate to standard errno code. */
174 /* Translate to standard errno code. */
197 /* An error code we haven't handled? */
381 krb5_error_code code;
391 code = krb5int_open_plugin_dirs (objdirs, NULL, &ctx->libkrb5_plugins,
393 if (code)
397 code = krb5int_get_plugin_dir_data (&ctx->libkrb5_plugins,
399 if (code) {
401 krb5_get_error_message(ctx, code));
413 code = vtbl->init(ctx, &blob);
414 if (code)
417 code = vtbl->lookup(blob, svc, realm->data, socktype, family,
420 if (code == KRB5_PLUGIN_NO_HANDLE) {
426 if (code != 0) {
429 code, error_message(code));
431 return code;
456 krb5_error_code code;
493 code = profile_get_values(context->profile, realm_srv_names, &hl);
494 if (code) {
496 error_message(code));
497 if (code == PROF_NO_SECTION || code == PROF_NO_RELATION)
498 code = KRB5_REALM_UNKNOWN;
500 return code;
516 krb5_error_code code;
544 code = 0;
546 code = krb5int_make_srv_query_realm(realm, dnsname, "_udp", &head);
547 if (code)
548 Tprintf("dns udp lookup returned error %d\n", code);
550 if ((socktype == SOCK_STREAM || socktype == 0) && code == 0) {
551 code = krb5int_make_srv_query_realm(realm, dnsname, "_tcp", &head);
552 if (code)
553 Tprintf("dns tcp lookup returned error %d\n", code);
588 krb5_error_code code;
592 code = 0;
594 code = add_host_to_list (addrlist, entry->host,
602 code = add_host_to_list (addrlist, entry->host,
606 if (code) {
607 Tprintf(" fail add_host code=%d %s\n", code, entry->host);
612 return code;
696 int code, i;
771 code = add_host_to_list (addrlist, hostlist[i], p1, p2,
774 code = add_host_to_list (addrlist, hostlist[i], p1, p2,
776 if (code == 0)
777 code = add_host_to_list (addrlist, hostlist[i], p1, p2,
782 return code;
795 krb5_error_code code;
802 code = module_locate_server(context, realm, &al, svc, socktype, family);
803 Tprintf("module_locate_server returns %d\n", code);
804 if (code == KRB5_PLUGIN_NO_HANDLE) {
810 code = prof_locate_server(context, realm, &hostlist, svc);
818 if (code && svc == locate_service_kpasswd &&
820 code = prof_locate_server(context, realm, &hostlist,
831 if (code && !krb5_is_referral_realm(realm)) {
837 code = code2;
845 if (code != 0) {
853 return code;
896 code = prof_hostnames2netaddrs(hostlist, svc,
899 code = dns_hostnames2netaddrs(dns_list_head, svc,
901 if (code) {
906 return code;
920 code = dns_locate_server(context, realm, &dns_list_head,
923 if (code == 0 && dns_list_head) {
927 code = dns_hostnames2netaddrs(dns_list_head, svc,
931 if (code == 0 && al.naddrs > 0) {
1013 krb5_error_code code = KRB5_REALM_UNKNOWN;
1022 code = krb5int_make_srv_query_realm(realm, name, proto, &head);
1023 if (code)
1024 return (code);
1041 return (code);