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_copy_addresses  Copy Kerberos addresses krb5_copy_addresses Copy Kerberos addresses
go to next page: krb5_copy_authenticator  Copy an authenticator structurekrb5_copy_authenticator Copy an authenticator structure
end of book navigation links

krb5_copy_authdata -- Copy a Kerberos authdata structure 



C Prototype 

krb5_error_code krb5_copy_authdata(
         krb5_context           context,
         krb5_authdata * const  *inauthdat,
         krb5_authdata          ***outauthdat );

Arguments 

context
(input/output)
 The context structure.
inauthdat (input) An array of krb5_authdata structures. The last element must be NULL.
outauthdat (output)  A copy of the array of krb5_authdata structures.

Description 

This routine copies an authdata structure, filling in *outauthdat to point to the newly allocated copy, which should be freed with krb5_free_authdata.

Return Values 

This routine returns the following KRB5 status code:

0
Successful completion.
ENOMEM
Insufficient memory.


go to previous page: krb5_copy_addresses  Copy Kerberos addresses krb5_copy_addresses Copy Kerberos addresses
go to next page: krb5_copy_authenticator  Copy an authenticator structurekrb5_copy_authenticator Copy an authenticator structure