From b551c5b15188979d02d53480238db2abed0015fe Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 20 Nov 1990 14:41:07 +0000 Subject: [PATCH] add krb5_use_cstype macro git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1481 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 dd86b7589..8e4f1355c 100644 --- a/src/include/krb5/encryption.h +++ b/src/include/krb5/encryption.h @@ -141,6 +141,8 @@ extern int krb5_max_cksum; /* max entry in array */ #define valid_cksumtype(cktype) ((cktype <= krb5_max_cksum) && (cktype > 0) && krb5_cksumarray[cktype]) +/* set up *eblockp to use etype */ +#define krb5_use_cstype(eblockp, etype) (eblockp)->crypto_entry = krb5_csarray[(etype)]->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