From: John Kohl Date: Wed, 13 Feb 1991 15:58:48 +0000 (+0000) Subject: add krb5_use_keytype X-Git-Tag: krb5-1.0-alpha4~281 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=352c58f2b61c8e5df83fb6285dd3f9f6514ebd72;p=krb5.git add krb5_use_keytype git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1691 dc483132-0cff-0310-8789-dd5450dbe970 --- 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)