fix include for copyright
authorJohn Kohl <jtkohl@mit.edu>
Mon, 27 Nov 1989 11:45:17 +0000 (11:45 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Mon, 27 Nov 1989 11:45:17 +0000 (11:45 +0000)
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

src/include/krb5/encryption.h

index b9769265ac6061607ae8ffcb66910ef46f20188f..cfed5e40007a196d5b03c32608c2acb544c28cf5 100644 (file)
@@ -11,7 +11,7 @@
  * Encryption interface-related declarations
  */
 
-#include <krb5/mit-copyright.h>
+#include <krb5/copyright.h>
 
 #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;