summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-27 15:52:47 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-28 07:57:28 +1000
commit1ed607057087cd5e9f1deebe472a1a6d9009a32f (patch)
tree122fa7512f59026db356bed04716269a902cb783 /source4
parent0f7aa3db52ac10177993e8f05569c7d378d66440 (diff)
downloadsamba-1ed607057087cd5e9f1deebe472a1a6d9009a32f.tar.gz
samba-1ed607057087cd5e9f1deebe472a1a6d9009a32f.tar.bz2
samba-1ed607057087cd5e9f1deebe472a1a6d9009a32f.zip
lib/krb5_wrap: Move kerberos_enctype_to_bitmap() into krb5_wrap
Diffstat (limited to 'source4')
-rw-r--r--source4/kdc/db-glue.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/source4/kdc/db-glue.c b/source4/kdc/db-glue.c
index 7bb2db2fb0..ab606e8e23 100644
--- a/source4/kdc/db-glue.c
+++ b/source4/kdc/db-glue.c
@@ -67,26 +67,6 @@ static const char *trust_attrs[] = {
};
-/* Translate between the IETF encryption type values and the Microsoft
- * msDS-SupportedEncryptionTypes values */
-static uint32_t kerberos_enctype_to_bitmap(krb5_enctype enc_type_enum)
-{
- switch (enc_type_enum) {
- case ENCTYPE_DES_CBC_CRC:
- return ENC_CRC32;
- case ENCTYPE_DES_CBC_MD5:
- return ENC_RSA_MD5;
- case ENCTYPE_ARCFOUR_HMAC_MD5:
- return ENC_RC4_HMAC_MD5;
- case ENCTYPE_AES128_CTS_HMAC_SHA1_96:
- return ENC_HMAC_SHA1_96_AES128;
- case ENCTYPE_AES256_CTS_HMAC_SHA1_96:
- return ENC_HMAC_SHA1_96_AES256;
- default:
- return 0;
- }
-}
-
static KerberosTime ldb_msg_find_krb5time_ldap_time(struct ldb_message *msg, const char *attr, KerberosTime default_val)
{
const char *tmp;