From: John Kohl Date: Mon, 27 Nov 1989 11:45:17 +0000 (+0000) Subject: fix include for copyright X-Git-Tag: krb5-1.0-alpha2~1339 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3654a0536d6978dd2ab34af18511591326c7179f;p=krb5.git fix include for copyright fix up interface for encryption function don't use "private" (reserved in ANSI C) krb5_keyblock needs to be pointed to (not in-line) in the encrypt block. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@34 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/encryption.h b/src/include/krb5/encryption.h index b9769265a..cfed5e400 100644 --- a/src/include/krb5/encryption.h +++ b/src/include/krb5/encryption.h @@ -11,7 +11,7 @@ * Encryption interface-related declarations */ -#include +#include #ifndef __KRB5_ENCRYPTION__ #define __KRB5_ENCRYPTION__ @@ -25,10 +25,10 @@ typedef struct _krb5_keyblock { /* could be used in a table to find an etype and initialize a block */ typedef struct _krb5_cryptosystem_entry { - int (*encrypt_func)(/* void *in, void *out, krb5_keyblock *key, - void *private */); - int (*decrypt_func)(/* void *in, void *out, krb5_keyblock *key, - void *private */); + int (*encrypt_func)(/* void *in, void *out, size_t length, + krb5_encrypt_block *block */); + int (*decrypt_func)(/* void *in, void *out, size_t length, + krb5_encrypt_block *block */); int (*process_key)(/* krb5_encrypt_block *block, krb5_keyblock *key */); int block_length; int pad_minimum; /* needed for cksum size computation */ @@ -37,8 +37,8 @@ typedef struct _krb5_cryptosystem_entry { typedef struct _krb5_encrypt_block { krb5_cryptosystem_entry crypto_entry; - krb5_keyblock key; - void *private; /* for private use, e.g. DES + krb5_keyblock *key; + void *priv; /* for private use, e.g. DES key schedules */ } krb5_encrypt_block;