add asn1.h for decode function
authorJohn Kohl <jtkohl@mit.edu>
Wed, 18 Apr 1990 17:37:45 +0000 (17:37 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 18 Apr 1990 17:37:45 +0000 (17:37 +0000)
add const to function signatures as appropriate

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

src/lib/krb5/krb/gc_via_tgt.c
src/lib/krb5/krb/kdc_rep_dc.c

index 3152ca7bd42d61eca3f740c5fd43dfe93f817477..e9cb15cdd8d501b8898670cf23f65cbdfb94ea6f 100644 (file)
@@ -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;
index adf98210540153b4d8f3939babab90031559a8ae..74299f72dbf811d5c114c7c69aaee1dee7bb2940 100644 (file)
@@ -17,6 +17,7 @@ static char rcsid_kdc_rep_dc_c [] =
 
 #include <krb5/copyright.h>
 #include <krb5/krb5.h>
+#include <krb5/asn1.h>
 #include <krb5/krb5_err.h>
 #include <krb5/ext-proto.h>
 #include <errno.h>
@@ -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;