MIT Kerberos Documentation

krb5_copy_keyblock - Copy a keyblock.

krb5_error_code krb5_copy_keyblock(krb5_context context, const krb5_keyblock * from, krb5_keyblock ** to)

[in] context - Library context

[in] from - Keyblock to be copied

[out] to - Copy of keyblock from

  • 0 Success; otherwise - Kerberos error codes

This function creates a new keyblock with the same contents as from . Use krb5_free_keyblock() to free to when it is no longer needed.