Move prototypes for krb5int_send_tgs and krb5int_decode_tgs_rep to int-proto.h.
[krb5.git] / src / lib / krb5 / krb / int-proto.h
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__ */