use macros to hide abstraction
authorJohn Kohl <jtkohl@mit.edu>
Thu, 20 Sep 1990 15:21:51 +0000 (15:21 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 20 Sep 1990 15:21:51 +0000 (15:21 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1137 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/fetch_mkey.c
src/lib/kdb/verify_mky.c

index 313786930bf8431fc6236abb3a82be4f6fb7ba2a..0f074258fe28a2c2cf847933693a8b0659a9e68c 100644 (file)
@@ -75,10 +75,7 @@ OLDDECLARG(krb5_keyblock *,key)
 
        pwd.data = password;
        pwd.length = size;
-       retval = (*eblock->crypto_entry->string_to_key)(key->keytype,
-                                                       key,
-                                                       &pwd,
-                                                       mname);
+       retval = krb5_string_to_key(eblock, key->keytype, key, &pwd, mname);
        bzero(password, sizeof(password)); /* erase it */
        return retval;
 
index 7652add97ccdc9393350b18fb6bac98b56fc11e7..5767ba10d854126899533816e0fb4c5ad833f4e2 100644 (file)
@@ -53,19 +53,19 @@ krb5_encrypt_block *eblock;
     }  
 
     /* do any necessary key pre-processing */
-    if (retval = (*eblock->crypto_entry->process_key)(eblock, mkey)) {
+    if (retval = krb5_process_key(eblock, mkey)) {
        return(retval);
     }
     if (retval = krb5_kdb_decrypt_key(eblock, &master_entry.key, &tempkey)) {
-       (void) (*eblock->crypto_entry->finish_key)(eblock);
+       (void) krb5_finish_key(eblock);
        return retval;
     }
     if (bcmp((char *)mkey->contents, (char *)tempkey.contents,
              mkey->length)) {
        retval = KRB5_KDB_BADMASTERKEY;
-       (void) (*eblock->crypto_entry->finish_key)(eblock);
+       (void) krb5_finish_key(eblock);
     } else
-       retval = (*eblock->crypto_entry->finish_key)(eblock);
+       retval = krb5_finish_key(eblock);
     
     return retval;
 }