summaryrefslogtreecommitdiff
path: root/kerberosIV/krb/krb_locl.h
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1997-12-12 05:30:35 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1997-12-12 05:30:35 +0000
commiteaf036b10d59d4a3ed4c0374ecd429610c80b2f9 (patch)
tree7e5f616bc347f6e420e75a57b6720fb0cbdcde1c /kerberosIV/krb/krb_locl.h
parent38e69210c9cb774ff8ff883f1c83317a96ef9203 (diff)
Another upgrade of kth-krb + many fixes of strcpys and unchecked pointers.
Diffstat (limited to 'kerberosIV/krb/krb_locl.h')
-rw-r--r--kerberosIV/krb/krb_locl.h63
1 files changed, 40 insertions, 23 deletions
diff --git a/kerberosIV/krb/krb_locl.h b/kerberosIV/krb/krb_locl.h
index 75b668a5170..bab6f8f1c27 100644
--- a/kerberosIV/krb/krb_locl.h
+++ b/kerberosIV/krb/krb_locl.h
@@ -84,36 +84,42 @@ extern int krb_debug;
extern int krb_ap_req_debug;
extern int krb_dns_debug;
-/* Temporary fixes for krb_{rd,mk}_safe */
-#define DES_QUAD_GUESS 0
-#define DES_QUAD_NEW 1
-#define DES_QUAD_OLD 2
-
-/* Set this to one of the constants above to specify default checksum
- type to emit */
-#define DES_QUAD_DEFAULT DES_QUAD_GUESS
-
/* Utils */
-int krb_name_to_name(const char *, char *, size_t);
+int
+krb_name_to_name __P((
+ const char *host,
+ char *phost,
+ size_t phost_size));
-void encrypt_ktext(KTEXT cip, des_cblock *key, int encrypt);
-int kdc_reply_cred(KTEXT cip, CREDENTIALS *cred);
-int kdc_reply_cipher(KTEXT reply, KTEXT cip);
+void
+encrypt_ktext __P((
+ KTEXT cip,
+ des_cblock *key,
+ int encrypt));
-void k_ricercar(char*);
+int
+kdc_reply_cipher __P((
+ KTEXT reply,
+ KTEXT cip));
-/* safe multiple strcat */
-int k_concat(char*, size_t, ...);
-int k_vconcat(char*, size_t, va_list);
+int
+kdc_reply_cred __P((
+ KTEXT cip,
+ CREDENTIALS *cred));
-/* mallocing versions of the above */
-size_t k_vmconcat (char**, size_t, va_list);
-size_t k_mconcat (char**, size_t, ...);
+void
+k_ricercar __P((char *name));
-/* used in rd_safe.c and mk_safe.c */
-void fixup_quad_cksum(void *start, size_t len, des_cblock *key,
- void *new_checksum, void *old_checksum, int little);
+/* used in rd_safe.c and mk_safe.c */
+void
+fixup_quad_cksum __P((
+ void *start,
+ size_t len,
+ des_cblock *key,
+ void *new_checksum,
+ void *old_checksum,
+ int little));
/* stuff from libroken*/
@@ -125,4 +131,15 @@ void fixup_quad_cksum(void *start, size_t len, des_cblock *key,
#define FALSE 0
#endif
+char *strtok_r(char *s1, const char *s2, char **lasts);
+
+/* Temporary fixes for krb_{rd,mk}_safe */
+#define DES_QUAD_GUESS 0
+#define DES_QUAD_NEW 1
+#define DES_QUAD_OLD 2
+
+/* Set this to one of the constants above to specify default checksum
+ type to emit */
+#define DES_QUAD_DEFAULT DES_QUAD_GUESS
+
#endif /* __krb_locl_h */