KRB5_GET_KRBHST(3) | Library Functions Manual | KRB5_GET_KRBHST(3) |
krb5_error_code
krb5_get_krbhst(krb5_context context, const krb5_realm *realm, char ***hostlist);
krb5_error_code
krb5_get_krb_admin_hst(krb5_context context, const krb5_realm *realm, char ***hostlist);
krb5_error_code
krb5_get_krb_changepw_hst(krb5_context context, const krb5_realm *realm, char ***hostlist);
krb5_error_code
krb5_get_krb524hst(krb5_context context, const krb5_realm *realm, char ***hostlist);
krb5_error_code
krb5_free_krbhst(krb5_context context, char **hostlist);
After a call to one of these functions, hostlist is a NULL terminated list of strings, pointing to the requested Kerberos hosts. These should be freed with krb5_free_krbhst() when done with.
char **hosts, **p; krb5_get_krbhst(context, "MY.REALM", &hosts); for(p = hosts; *p; p++) printf("%s\n", *p); krb5_free_krbhst(context, hosts);
April 24, 2005 | NetBSD 7.2 |