*cp = tolower(*cp);
if (retval = krb5_sname_to_principal(hp->h_name, POP_SERVICE,
- FALSE, /* FALSE means don't
- canonicalize hostname
- (we already have...) */
- &server)) {
+ KRB5_NT_SRV_HST, &server)) {
goto krb5error;
}
krb5_init_ets();
- if (retval = krb5_sname_to_principal(p->myhost, "pop", TRUE, &server)) {
+ if (retval = krb5_sname_to_principal(p->myhost, "pop", KRB5_NT_SRV_HOST,
+ &server)) {
pop_msg(p, POP_FAILURE,
"server mis-configured, can't get principal--%s",
error_message(retval));