r21364: cosmetic change: it's nicer to use the KEYTYPE_ macro
authorStefan Metzmacher <metze@samba.org>
Thu, 15 Feb 2007 13:01:18 +0000 (13:01 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:48:20 +0000 (14:48 -0500)
for the keytype field...

metze
(This used to be commit e96aa8980097712d7666a85f17c7214486d99618)

source4/dsdb/samdb/ldb_modules/password_hash.c

index 201a5d295a25527ef0aa356b25a54e44cfcc3124..58a408a3d9adee4ae6e285496ab1b77cdf920df0 100644 (file)
@@ -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) {