conditionalize check for unsalted key

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2962 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-08-13 00:11:59 +00:00
parent 356a2aa666
commit d1a8bfb2b7

View File

@@ -164,6 +164,8 @@ do_version4(unsigned char *buf,
goto out1;
}
#if 0
/* this is not necessary with the new code in libkrb */
/* find a properly salted key */
while(ckey->salt == NULL || ckey->salt->length != 0)
ret = hdb_next_keytype2key(context, client, KEYTYPE_DES, &ckey);
@@ -174,6 +176,7 @@ do_version4(unsigned char *buf,
"No version-4 salted key in database");
goto out1;
}
#endif
ret = hdb_keytype2key(context, server, KEYTYPE_DES, &skey);
if(ret){