Move prototypes for krb5int_send_tgs and krb5int_decode_tgs_rep to int-proto.h.
authorEzra Peisach <epeisach@mit.edu>
Mon, 16 Nov 2009 01:49:21 +0000 (01:49 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 16 Nov 2009 01:49:21 +0000 (01:49 +0000)
These functions are not exported by the library.

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

src/include/k5-int.h
src/lib/krb5/krb/decode_kdc.c
src/lib/krb5/krb/int-proto.h
src/lib/krb5/krb/send_tgs.c

index b88239b12f2a8e0b488bfceb7e37d9728d4ae181..beb13f9644cc4cf19553f95dfa36bb8c8e4a07ef 100644 (file)
@@ -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,
index 19451eea44a73ac6a3f38a08fb944694011ae017..f998a4676ae81060cba4578f09cc37a3ee5802c3 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 #include "k5-int.h"
+#include "int-proto.h"
 
 /*
   Takes a KDC_REP message and decrypts encrypted part using etype and
index 081a8a34ba805bf666f081cf18a622e97eb84388..44ea69d4e60339ec2a7a0b2d9673c0a622da621d 100644 (file)
 #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__ */
index 398855009d5043c80b210569272ef4843068d9a8..bee982b08b72e5d30d888dfcc45bbbb3ebe4f4a0 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 #include "k5-int.h"
+#include "int-proto.h"
 
 /*
   Constructs a TGS request