Add krb5_convert_etype function - converts from protocol keytypes
(that really are enctypes) to internal representation. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4353 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -186,6 +186,23 @@ krb5_etype_to_keytype(krb5_context context,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
krb5_error_code
|
||||||
|
krb5_convert_etype(krb5_context context,
|
||||||
|
krb5_keytype *keytype)
|
||||||
|
{
|
||||||
|
#ifdef KTYPE_IS_ETYPE
|
||||||
|
krb5_error_code ret;
|
||||||
|
krb5_keytype kt;
|
||||||
|
ret = krb5_etype_to_keytype(context,
|
||||||
|
(krb5_enctype)*keytype,
|
||||||
|
&kt);
|
||||||
|
if(ret)
|
||||||
|
return ret;
|
||||||
|
*keytype = kt;
|
||||||
|
#endif
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
krb5_generate_random_block(void *buf, size_t len)
|
krb5_generate_random_block(void *buf, size_t len)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user