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_auth_con_setflags  Set the flags in auth_context krb5_auth_con_setflags Set the flags in auth_context
go to next page: krb5_auth_con_setrcache  Set the replay cachekrb5_auth_con_setrcache Set the replay cache
end of book navigation links

krb5_auth_con_setports -- Set port fields in the auth_context 



C Prototype 

krb5_error_code krb5_auth_con_setports(
         krb5_context           context,
         krb5_auth_context      auth_context,
         krb5_address           *local_port,
         krb5_address           *remote_port );      

Arguments 

context
(input/output)
 The context structure.
auth_context (input/output)
 A per-connection context.
local_addr (input) Local address.
remote_addr (input) Remote address.

Description 

This routine copies the local_port and remote_port addresses into auth_context. If either address is NULL, the previous address remains in place. These addresses are set by krb5_auth_con_genaddrs.

Return Values 

This routine returns the following KRB5 status code:

0
Successful completion.
ENOMEM
Insufficient memory.


go to previous page: krb5_auth_con_setflags  Set the flags in auth_context krb5_auth_con_setflags Set the flags in auth_context
go to next page: krb5_auth_con_setrcache  Set the replay cachekrb5_auth_con_setrcache Set the replay cache