1
krb5_init_keyblock - Initialize an empty krb5_keyblock .
2
==========================================================
6
.. c:function:: krb5_error_code krb5_init_keyblock(krb5_context context, krb5_enctype enctype, size_t length, krb5_keyblock ** out)
13
**[in]** **context** - Library context
15
**[in]** **enctype** - Encryption type
17
**[in]** **length** - Length of keyblock (or 0)
19
**[out]** **out** - New keyblock structure
26
- 0 Success; otherwise - Kerberos error codes
37
Initialize a new keyblock and allocate storage for the contents of the key. It is legal to pass in a length of 0, in which case contents are left unallocated. Use :c:func:`krb5_free_keyblock()` to free *out* when it is no longer needed.
57
If *length* is set to 0, contents are left unallocated.