From 9a9b1978560b9758d69fbcd7028d098e363f7e8f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 15 Feb 2007 13:01:18 +0000 Subject: r21364: cosmetic change: it's nicer to use the KEYTYPE_ macro for the keytype field... metze (This used to be commit e96aa8980097712d7666a85f17c7214486d99618) --- source4/dsdb/samdb/ldb_modules/password_hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/dsdb') diff --git a/source4/dsdb/samdb/ldb_modules/password_hash.c b/source4/dsdb/samdb/ldb_modules/password_hash.c index 201a5d295a..58a408a3d9 100644 --- a/source4/dsdb/samdb/ldb_modules/password_hash.c +++ b/source4/dsdb/samdb/ldb_modules/password_hash.c @@ -231,7 +231,7 @@ static int add_krb5_keys_from_password(struct ldb_module *module, struct ldb_mes struct ldb_val val; int ret; - if (keys[i].key.keytype == ETYPE_ARCFOUR_HMAC_MD5) { + if (keys[i].key.keytype == KEYTYPE_ARCFOUR) { /* We might end up doing this below: * This ensures we get the unicode * conversion right. This should also @@ -282,7 +282,7 @@ static int add_krb5_keys_from_NThash(struct ldb_module *module, struct ldb_messa } krb5_ret = krb5_keyblock_init(smb_krb5_context->krb5_context, - ETYPE_ARCFOUR_HMAC_MD5, + KEYTYPE_ARCFOUR, ntPwdHash->hash, sizeof(ntPwdHash->hash), &key.key); if (krb5_ret) { -- cgit