krb5_error_code krb5_set_principal_realm ( krb5_context context, krbt5_principal principal, const char *realm );
The context structure.
The Kerberos principal name.
The new realm to which the context should be set.
This routine sets the realm in the current context to realm.
This routine returns the following KRB5 status codes:
Successful completion.
ENOMEM