skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 3:... HP Open Source Security for OpenVMS Volume 3:...
go to beginning of chapter: KRB5 (Kerberos V5) Application Programming Interface KRB5 (Kerberos V5) Application Programming Interface
go to previous page: krb5_set_default_tgs_enctypes  Set default TGS encryption types krb5_set_default_tgs_enctypes Set default TGS encryption types
go to next page: krb5_sname_to_principal  Generate a full principal name from a service namekrb5_sname_to_principal Generate a full principal name from...
end of book navigation links

krb5_set_principal_realm -- Set the realm in the current context 



C Prototype 

krb5_error_code krb5_set_principal_realm (
        krb5_context            context,
        krbt5_principal         principal,
        const char              *realm );

Arguments 

context
(input/output)
 The context structure.
principal (input) The Kerberos principal name.
realm (input) The new realm to which the context should be set.

Description 

This routine sets the realm in the current context to realm.

Return Values 

This routine returns the following KRB5 status codes:

0
Successful completion.
EINVAL
Invalid parameter.
ENOMEM
Insufficient memory.


go to previous page: krb5_set_default_tgs_enctypes  Set default TGS encryption types krb5_set_default_tgs_enctypes Set default TGS encryption types
go to next page: krb5_sname_to_principal  Generate a full principal name from a service namekrb5_sname_to_principal Generate a full principal name from...