summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-02-15 13:01:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:48:20 -0500
commit9a9b1978560b9758d69fbcd7028d098e363f7e8f (patch)
treec038ed7ca56dbf7c9d5ef1247740ac930e834857 /source4/dsdb/samdb
parentcdafaa15b59771b3c625151dd7cf82a60b5ad528 (diff)
downloadsamba-9a9b1978560b9758d69fbcd7028d098e363f7e8f.tar.gz
samba-9a9b1978560b9758d69fbcd7028d098e363f7e8f.tar.bz2
samba-9a9b1978560b9758d69fbcd7028d098e363f7e8f.zip
r21364: cosmetic change: it's nicer to use the KEYTYPE_ macro
for the keytype field... metze (This used to be commit e96aa8980097712d7666a85f17c7214486d99618)
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/password_hash.c4
1 files changed, 2 insertions, 2 deletions
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) {