Lines Matching defs:code

52  * and the DNS-SRVrecs code does not do that).
93 krb5_error_code code;
97 code = profile_get_string(context->profile, "libdefaults",
99 if (value == 0 && code == 0)
100 code = profile_get_string(context->profile, "libdefaults",
102 if (code)
176 /* Translate to standard errno code. */
179 /* Translate to standard errno code. */
202 /* An error code we haven't handled? */
386 krb5_error_code code;
396 code = krb5int_open_plugin_dirs (objdirs, NULL, &ctx->libkrb5_plugins,
398 if (code)
402 code = krb5int_get_plugin_dir_data (&ctx->libkrb5_plugins,
404 if (code) {
406 krb5_get_error_message(ctx, code));
418 code = vtbl->init(ctx, &blob);
419 if (code)
422 code = vtbl->lookup(blob, svc, realm->data, socktype, family,
425 if (code == KRB5_PLUGIN_NO_HANDLE) {
431 if (code != 0) {
434 code, error_message(code));
436 return code;
480 krb5_error_code code;
499 code = lookup_func(ctx, svc, realm->data, socktype, family,
501 if (code == KRB5_PLUGIN_NO_HANDLE) {
503 return code;
505 if (code != 0) {
508 code, error_message(code));
509 return code;
527 krb5_error_code code;
564 code = profile_get_values(context->profile, realm_srv_names, &hl);
565 if (code) {
567 error_message(code));
568 if (code == PROF_NO_SECTION || code == PROF_NO_RELATION)
569 code = KRB5_REALM_UNKNOWN;
571 return code;
587 krb5_error_code code;
615 code = 0;
617 code = krb5int_make_srv_query_realm(realm, dnsname, "_udp", &head);
618 if (code)
619 Tprintf("dns udp lookup returned error %d\n", code);
621 if ((socktype == SOCK_STREAM || socktype == 0) && code == 0) {
622 code = krb5int_make_srv_query_realm(realm, dnsname, "_tcp", &head);
623 if (code)
624 Tprintf("dns tcp lookup returned error %d\n", code);
659 krb5_error_code code;
663 code = 0;
665 code = add_host_to_list (addrlist, entry->host,
673 code = add_host_to_list (addrlist, entry->host,
677 if (code) {
678 Tprintf(" fail add_host code=%d %s\n", code, entry->host);
683 return code;
767 int code, i;
842 code = add_host_to_list (addrlist, hostlist[i], p1, p2,
845 code = add_host_to_list (addrlist, hostlist[i], p1, p2,
847 if (code == 0)
848 code = add_host_to_list (addrlist, hostlist[i], p1, p2,
853 return code;
866 krb5_error_code code;
877 code = override_locate_server(context, realm, &al, svc, socktype, family);
878 if (code != KRB5_PLUGIN_NO_HANDLE) {
879 if (code == 0)
883 return (code);
887 code = module_locate_server(context, realm, &al, svc, socktype, family);
888 Tprintf("module_locate_server returns %d\n", code);
889 if (code == KRB5_PLUGIN_NO_HANDLE) {
895 code = prof_locate_server(context, realm, &hostlist, svc);
903 if (code && svc == locate_service_kpasswd &&
905 code = prof_locate_server(context, realm, &hostlist,
916 if (code && !krb5_is_referral_realm(realm)) {
922 code = code2;
930 if (code != 0) {
938 return code;
981 code = prof_hostnames2netaddrs(hostlist, svc,
984 code = dns_hostnames2netaddrs(dns_list_head, svc,
986 if (code) {
991 return code;
1005 code = dns_locate_server(context, realm, &dns_list_head,
1008 if (code == 0 && dns_list_head) {
1012 code = dns_hostnames2netaddrs(dns_list_head, svc,
1016 if (code == 0 && al.naddrs > 0) {
1098 krb5_error_code code = KRB5_REALM_UNKNOWN;
1107 code = krb5int_make_srv_query_realm(realm, name, proto, &head);
1108 if (code)
1109 return (code);
1126 return (code);