HP Open Source Security for OpenVMS Volume 3:... |
KRB5 (Kerberos V5) Application Programming Interface |
|
|
| |
krb5_copy_keyblock -- Copy a keyblock
krb5_error_code krb5_copy_keyblock(
krb5_context context,
const krb5_key lock *from,
krb5_keyblock **to );
| context (input/output) | The context structure. | |
| from (input) | The keyblock to copy. | |
| to (output) | A pointer to a copy of the keyblock. |
Description ![]()
This routine copies a keyblock, and sets the *to argument
to point to the newly allocated copy, which should be freed with krb5_free_keyblock.
Return
Values ![]()
This routine returns the following KRB5 status code:
|
0
|
Successful completion. |
|
ENOMEM |
Insufficient memory. |
|
|