aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2009-11-16 01:49:21 +0000
committerEzra Peisach <epeisach@mit.edu>2009-11-16 01:49:21 +0000
commite1cfc10df16d9319405fd101c21bf328515fa3a3 (patch)
tree197ae93f24b332d18d56a2a585a3a7741f05b196
parent8c43f6c2b4adf17f117d40e2f5861b5e5bb7ccc2 (diff)
downloadkrb5-e1cfc10df16d9319405fd101c21bf328515fa3a3.zip
krb5-e1cfc10df16d9319405fd101c21bf328515fa3a3.tar.gz
krb5-e1cfc10df16d9319405fd101c21bf328515fa3a3.tar.bz2
Move prototypes for krb5int_send_tgs and krb5int_decode_tgs_rep to int-proto.h.
These functions are not exported by the library. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23232 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/include/k5-int.h21
-rw-r--r--src/lib/krb5/krb/decode_kdc.c1
-rw-r--r--src/lib/krb5/krb/int-proto.h36
-rw-r--r--src/lib/krb5/krb/send_tgs.c1
4 files changed, 30 insertions, 29 deletions
diff --git a/src/include/k5-int.h b/src/include/k5-int.h
index b88239b..beb13f9 100644
--- a/src/include/k5-int.h
+++ b/src/include/k5-int.h
@@ -2672,27 +2672,6 @@ krb5_error_code krb5_set_config_files(krb5_context, const char **);
krb5_error_code KRB5_CALLCONV krb5_get_default_config_files(char ***filenames);
void KRB5_CALLCONV krb5_free_config_files(char **filenames);
-krb5_error_code krb5int_send_tgs(krb5_context, krb5_flags,
- const krb5_ticket_times *,
- const krb5_enctype *,
- krb5_const_principal, krb5_address *const *,
- krb5_authdata *const *,
- krb5_pa_data *const *, const krb5_data *,
- krb5_creds *,
- krb5_error_code (*gcvt_fct)(krb5_context,
- krb5_keyblock *,
- krb5_kdc_req *,
- void *),
- void *gcvt_data, krb5_response *,
- krb5_keyblock **subkey);
-/* The subkey field is an output parameter; if a
- * tgs-rep is received then the subkey will be filled
- * in with the subkey needed to decrypt the TGS
- * response. Otherwise it will be set to null.
- */
-krb5_error_code krb5int_decode_tgs_rep(krb5_context, krb5_data *,
- const krb5_keyblock *, krb5_keyusage,
- krb5_kdc_rep ** );
krb5_error_code krb5int_find_authdata(krb5_context context,
krb5_authdata *const *ticket_authdata,
diff --git a/src/lib/krb5/krb/decode_kdc.c b/src/lib/krb5/krb/decode_kdc.c
index 19451ee..f998a46 100644
--- a/src/lib/krb5/krb/decode_kdc.c
+++ b/src/lib/krb5/krb/decode_kdc.c
@@ -29,6 +29,7 @@
*/
#include "k5-int.h"
+#include "int-proto.h"
/*
Takes a KDC_REP message and decrypts encrypted part using etype and
diff --git a/src/lib/krb5/krb/int-proto.h b/src/lib/krb5/krb/int-proto.h
index 081a8a3..44ea69d 100644
--- a/src/lib/krb5/krb/int-proto.h
+++ b/src/lib/krb5/krb/int-proto.h
@@ -32,15 +32,13 @@
#ifndef KRB5_INT_FUNC_PROTO__
#define KRB5_INT_FUNC_PROTO__
-krb5_error_code krb5_tgtname
-(krb5_context context,
- const krb5_data *,
- const krb5_data *,
- krb5_principal *);
+krb5_error_code
+krb5_tgtname(krb5_context context, const krb5_data *, const krb5_data *,
+ krb5_principal *);
-krb5_error_code krb5_libdefault_boolean
-(krb5_context, const krb5_data *, const char *,
- int *);
+krb5_error_code
+krb5_libdefault_boolean(krb5_context, const krb5_data *, const char *,
+ int *);
krb5_error_code krb5_ser_authdata_init (krb5_context);
krb5_error_code krb5_ser_address_init (krb5_context);
@@ -87,4 +85,26 @@ krb5_get_cred_via_tkt_ext (krb5_context context, krb5_creds *tkt,
krb5_creds **out_cred,
krb5_keyblock **out_subkey);
+krb5_error_code krb5int_send_tgs(krb5_context, krb5_flags,
+ const krb5_ticket_times *,
+ const krb5_enctype *,
+ krb5_const_principal, krb5_address *const *,
+ krb5_authdata *const *,
+ krb5_pa_data *const *, const krb5_data *,
+ krb5_creds *,
+ krb5_error_code (*gcvt_fct)(krb5_context,
+ krb5_keyblock *,
+ krb5_kdc_req *,
+ void *),
+ void *gcvt_data, krb5_response *,
+ krb5_keyblock **subkey);
+/* The subkey field is an output parameter; if a
+ * tgs-rep is received then the subkey will be filled
+ * in with the subkey needed to decrypt the TGS
+ * response. Otherwise it will be set to null.
+ */
+krb5_error_code krb5int_decode_tgs_rep(krb5_context, krb5_data *,
+ const krb5_keyblock *, krb5_keyusage,
+ krb5_kdc_rep ** );
+
#endif /* KRB5_INT_FUNC_PROTO__ */
diff --git a/src/lib/krb5/krb/send_tgs.c b/src/lib/krb5/krb/send_tgs.c
index 3988550..bee982b 100644
--- a/src/lib/krb5/krb/send_tgs.c
+++ b/src/lib/krb5/krb/send_tgs.c
@@ -29,6 +29,7 @@
*/
#include "k5-int.h"
+#include "int-proto.h"
/*
Constructs a TGS request