From ba076089caa523565c50b7514e4fa5644c9ac2af Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Mon, 27 Nov 1995 00:36:33 +0000 Subject: [PATCH] * preauth.c: Ultrix is broken. Prototype obtain_enc_ts_padata() and process_pw_salt() explicitly rather than using the typedef in k5-int.h becaus that typedef is to a function pointer now. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7123 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 7 +++++++ src/lib/krb5/krb/preauth.c | 36 ++++++++++++++++++++++++++++++++++-- 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index a85215426..3092f3ae4 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,10 @@ +Sun Nov 26 19:31:18 1995 Tom Yu + + * preauth.c: Ultrix is broken. Prototype obtain_enc_ts_padata() + and process_pw_salt() explicitly rather than using the + typedef in k5-int.h becaus that typedef is to a function + pointer now. + Fri Nov 17 22:35:52 1995 Theodore Y. Ts'o * get_in_tkt.c (decrypt_as_reply): diff --git a/src/lib/krb5/krb/preauth.c b/src/lib/krb5/krb/preauth.c index 86aa899b5..e062f0606 100644 --- a/src/lib/krb5/krb/preauth.c +++ b/src/lib/krb5/krb/preauth.c @@ -36,8 +36,40 @@ #include #endif -static krb5_preauth_obtain_proc obtain_enc_ts_padata; -static krb5_preauth_process_proc process_pw_salt; +static krb5_error_code obtain_enc_ts_padata +KRB5_NPROTOTYPE((krb5_context, + krb5_pa_data *, + krb5_etype_info, + krb5_keyblock *, + krb5_error_code ( * )(krb5_context, + krb5_const krb5_enctype, + krb5_data *, + krb5_const_pointer, + krb5_keyblock **), + krb5_const_pointer, + krb5_creds *, + krb5_kdc_req *, + krb5_pa_data **)); + +static krb5_error_code process_pw_salt +KRB5_NPROTOTYPE((krb5_context, + krb5_pa_data *, + krb5_kdc_req *, + krb5_kdc_rep *, + krb5_error_code ( * )(krb5_context, + krb5_const krb5_enctype, + krb5_data *, + krb5_const_pointer, + krb5_keyblock **), + krb5_const_pointer, + krb5_error_code ( * )(krb5_context, + krb5_const krb5_keyblock *, + krb5_const_pointer, + krb5_kdc_rep * ), + krb5_keyblock **, + krb5_creds *, + krb5_int32 *, + krb5_int32 *)); static krb5_preauth_ops preauth_systems[] = { { -- 2.26.2