* kdc_preauth.c: #@&^(!! Ultrix cc sucks. Typedef to function
authorTom Yu <tlyu@mit.edu>
Fri, 1 Dec 1995 02:00:33 +0000 (02:00 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 1 Dec 1995 02:00:33 +0000 (02:00 +0000)
pointer rather than function prototype to avoid lossage.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7143 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/ChangeLog
src/kdc/kdc_preauth.c

index 7b6e747db487e81b2a9f04526c3013549ce8acb6..54a73eeacad29e4f3ed36bede7573824a51759b2 100644 (file)
@@ -1,3 +1,8 @@
+Thu Nov 30 20:57:11 1995  Tom Yu  <tlyu@dragons-lair.MIT.EDU>
+
+       * kdc_preauth.c: #@&^(!! Ultrix cc sucks.  Typedef to function
+               pointer rather than function prototype to avoid lossage.
+
 Wed Nov 29 13:31:39 1995  Theodore Y. Ts'o  <tytso@dcl>
 
        * do_tgs_req.c (process_tgs_req): Removed extra eblock argument
index 10cd2c52ddf04f6fd2d8e31be4b4c7eaba0be85f..2e7303f5e3d0fe374b4a56bc7606775fab74aa3c 100644 (file)
 #include "extern.h"
 #include <stdio.h>
 
-typedef krb5_error_code (verify_proc)
+typedef krb5_error_code (*verify_proc)
     KRB5_PROTOTYPE((krb5_context, krb5_db_entry *client,
                    krb5_kdc_req *request,
                    krb5_enc_tkt_part * enc_tkt_reply, krb5_pa_data *data));
 
-typedef krb5_error_code (edata_proc)
+typedef krb5_error_code (*edata_proc)
     KRB5_PROTOTYPE((krb5_context, krb5_kdc_req *request,
                    krb5_db_entry *client, krb5_db_entry *server,
                    krb5_pa_data *data));
 
-typedef krb5_error_code (return_proc)
+typedef krb5_error_code (*return_proc)
     KRB5_PROTOTYPE((krb5_context, krb5_pa_data * padata, 
                    krb5_db_entry *client,
                    krb5_kdc_req *request, krb5_kdc_rep *reply,
@@ -49,14 +49,27 @@ typedef krb5_error_code (return_proc)
 typedef struct _krb5_preauth_systems {
     int                type;
     int                flags;
-    edata_proc *get_edata;
-    verify_proc        *verify_padata;
-    return_proc *return_padata;
+    edata_proc get_edata;
+    verify_proc        verify_padata;
+    return_proc return_padata;
 } krb5_preauth_systems;
 
-static verify_proc verify_enc_timestamp;
-static edata_proc get_etype_info;
-static return_proc return_pw_salt;
+static krb5_error_code verify_enc_timestamp
+    KRB5_PROTOTYPE((krb5_context, krb5_db_entry *client,
+                   krb5_kdc_req *request,
+                   krb5_enc_tkt_part * enc_tkt_reply, krb5_pa_data *data));
+
+static krb5_error_code get_etype_info
+    KRB5_PROTOTYPE((krb5_context, krb5_kdc_req *request,
+                   krb5_db_entry *client, krb5_db_entry *server,
+                   krb5_pa_data *data));
+static krb5_error_code return_pw_salt
+    KRB5_PROTOTYPE((krb5_context, krb5_pa_data * padata, 
+                   krb5_db_entry *client,
+                   krb5_kdc_req *request, krb5_kdc_rep *reply,
+                   krb5_key_data *client_key,
+                   krb5_keyblock *encrypting_key,
+                   krb5_pa_data **send_pa));
 
 /*
  * Preauth property flags