add krb5_enctype_enable and some doxygen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23583 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -3742,6 +3742,18 @@ krb5_crypto_getconfoundersize(krb5_context context,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disable enctyption type
|
||||||
|
*
|
||||||
|
* @param context Kerberos 5 context
|
||||||
|
* @param enctype encryption type to disable
|
||||||
|
*
|
||||||
|
* @return Return an error code or 0.
|
||||||
|
*
|
||||||
|
* @ingroup krb5
|
||||||
|
*/
|
||||||
|
|
||||||
krb5_error_code KRB5_LIB_FUNCTION
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
krb5_enctype_disable(krb5_context context,
|
krb5_enctype_disable(krb5_context context,
|
||||||
krb5_enctype enctype)
|
krb5_enctype enctype)
|
||||||
@@ -3758,6 +3770,34 @@ krb5_enctype_disable(krb5_context context,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enable enctyption type
|
||||||
|
*
|
||||||
|
* @param context Kerberos 5 context
|
||||||
|
* @param enctype encryption type to enable
|
||||||
|
*
|
||||||
|
* @return Return an error code or 0.
|
||||||
|
*
|
||||||
|
* @ingroup krb5
|
||||||
|
*/
|
||||||
|
|
||||||
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
|
krb5_enctype_enable(krb5_context context,
|
||||||
|
krb5_enctype enctype)
|
||||||
|
{
|
||||||
|
struct encryption_type *et = _find_enctype(enctype);
|
||||||
|
if(et == NULL) {
|
||||||
|
if (context)
|
||||||
|
krb5_set_error_message (context, KRB5_PROG_ETYPE_NOSUPP,
|
||||||
|
"encryption type %d not supported",
|
||||||
|
enctype);
|
||||||
|
return KRB5_PROG_ETYPE_NOSUPP;
|
||||||
|
}
|
||||||
|
et->flags &= ~F_DISABLED;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
krb5_error_code KRB5_LIB_FUNCTION
|
krb5_error_code KRB5_LIB_FUNCTION
|
||||||
krb5_string_to_key_derived(krb5_context context,
|
krb5_string_to_key_derived(krb5_context context,
|
||||||
const void *str,
|
const void *str,
|
||||||
|
Reference in New Issue
Block a user