From 352c58f2b61c8e5df83fb6285dd3f9f6514ebd72 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 13 Feb 1991 15:58:48 +0000 Subject: [PATCH] add krb5_use_keytype git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1691 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/encryption.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/include/krb5/encryption.h b/src/include/krb5/encryption.h index 129565c76..0fbacdcff 100644 --- a/src/include/krb5/encryption.h +++ b/src/include/krb5/encryption.h @@ -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) -- 2.26.2