From: John Kohl Date: Wed, 18 Apr 1990 17:37:45 +0000 (+0000) Subject: add asn1.h for decode function X-Git-Tag: krb5-1.0-alpha2~902 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d84be6b45aa307b6c781a0b0e6e865c96b7d98b8;p=krb5.git add asn1.h for decode function add const to function signatures as appropriate git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@493 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/gc_via_tgt.c b/src/lib/krb5/krb/gc_via_tgt.c index 3152ca7bd..e9cb15cdd 100644 --- a/src/lib/krb5/krb/gc_via_tgt.c +++ b/src/lib/krb5/krb/gc_via_tgt.c @@ -27,17 +27,17 @@ static char rcsid_gcvtgt_c[] = #include "int-proto.h" krb5_error_code -krb5_get_cred_via_tgt (DECLARG(krb5_creds *, tgt), - DECLARG(krb5_flags, kdcoptions), - DECLARG(krb5_enctype, etype), - DECLARG(krb5_cksumtype, sumtype), - DECLARG(krb5_address **, addrs), +krb5_get_cred_via_tgt (DECLARG(const krb5_creds *, tgt), + DECLARG(const krb5_flags, kdcoptions), + DECLARG(const krb5_enctype, etype), + DECLARG(const krb5_cksumtype, sumtype), + DECLARG(const krb5_address **, addrs), DECLARG(krb5_creds *, cred)) -OLDDECLARG(krb5_creds *, tgt) -OLDDECLARG(krb5_flags, kdcoptions) -OLDDECLARG(krb5_enctype, etype) -OLDDECLARG(krb5_cksumtype, sumtype) -OLDDECLARG(krb5_address **, addrs) +OLDDECLARG(const krb5_creds *, tgt) +OLDDECLARG(const krb5_flags, kdcoptions) +OLDDECLARG(const krb5_enctype, etype) +OLDDECLARG(const krb5_cksumtype, sumtype) +OLDDECLARG(const krb5_address **, addrs) OLDDECLARG(krb5_creds *, cred) { krb5_error_code retval; diff --git a/src/lib/krb5/krb/kdc_rep_dc.c b/src/lib/krb5/krb/kdc_rep_dc.c index adf982105..74299f72d 100644 --- a/src/lib/krb5/krb/kdc_rep_dc.c +++ b/src/lib/krb5/krb/kdc_rep_dc.c @@ -17,6 +17,7 @@ static char rcsid_kdc_rep_dc_c [] = #include #include +#include #include #include #include @@ -29,11 +30,11 @@ static char rcsid_kdc_rep_dc_c [] = /*ARGSUSED*/ krb5_error_code -krb5_kdc_rep_decrypt_proc(DECLARG(krb5_keyblock *, key), - DECLARG(krb5_pointer, decryptarg), +krb5_kdc_rep_decrypt_proc(DECLARG(const krb5_keyblock *, key), + DECLARG(const krb5_pointer, decryptarg), DECLARG(krb5_kdc_rep *, dec_rep)) -OLDDECLARG(krb5_keyblock *, key) -OLDDECLARG(krb5_pointer, decryptarg) +OLDDECLARG(const krb5_keyblock *, key) +OLDDECLARG(const krb5_pointer, decryptarg) OLDDECLARG(krb5_kdc_rep *, dec_rep) { krb5_error_code retval;