add krb5_use_keytype
authorJohn Kohl <jtkohl@mit.edu>
Wed, 13 Feb 1991 15:58:48 +0000 (15:58 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 13 Feb 1991 15:58:48 +0000 (15:58 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1691 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/encryption.h

index 129565c766c8e444aafe186f91fd82a0bf47cfeb..0fbacdcfff1e6f32000c5101511640221d7f6ab6 100644 (file)
@@ -150,6 +150,8 @@ extern int krb5_max_cksum;          /* max entry in array */
 
 /* set up *eblockp to use etype */
 #define krb5_use_cstype(eblockp, etype) (eblockp)->crypto_entry = krb5_csarray[(etype)]->system
+/* ...or keytype */
+#define krb5_use_keytype(eblockp, keytype) (eblockp)->crypto_entry = krb5_keytype_array[(keytype)]->system
 
 #define krb5_encrypt(inptr, outptr, size, eblock, ivec) (*(eblock)->crypto_entry->encrypt_func)(inptr, outptr, size, eblock, ivec)
 #define krb5_decrypt(inptr, outptr, size, eblock, ivec) (*(eblock)->crypto_entry->decrypt_func)(inptr, outptr, size, eblock, ivec)