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_keyblock  Copy a keyblock krb5_copy_keyblock Copy a keyblock
go to next page: krb5_copy_principal  Copy a principal structurekrb5_copy_principal Copy a principal structure
end of book navigation links

krb5_copy_keyblock_contents -- Copy a keyblock's contents 



C Prototype 

krb5_error_code krb5_copy_keyblock_contents(
         krb5_context           context,
         const krb5_keyblock    *from,
         krb5_keyblock          *to );

Arguments 

context
(input/output)
 The context structure.
from (input)  The keyblock to copy the contents of.
to (output)  A pointer to a copy of the keyblock contents.

Description 

This routine copies keyblock contents from from to to, including allocated storage. The allocated storage should be freed by using free(to->contents).

Return Values 

This routine returns the following KRB5 status code:

0
Successful completion.
ENOMEM
Insufficient memory.


go to previous page: krb5_copy_keyblock  Copy a keyblock krb5_copy_keyblock Copy a keyblock
go to next page: krb5_copy_principal  Copy a principal structurekrb5_copy_principal Copy a principal structure