]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Constify service and hostname in krb5_mk_req()
authorAndreas Schneider <asn@samba.org>
Wed, 14 Dec 2016 16:20:30 +0000 (17:20 +0100)
committerTom Yu <tlyu@mit.edu>
Thu, 5 Jan 2017 02:34:43 +0000 (21:34 -0500)
ticket: 8526 (new)

src/include/krb5/krb5.hin
src/lib/krb5/krb/mk_req.c

index ac22f4c550982836655f83e074b5cb1ace78c1bc..71de2f65106e8e89a42733c3fd4f9b41048382c2 100644 (file)
@@ -3221,8 +3221,9 @@ krb5_get_credentials_renew(krb5_context context, krb5_flags options,
  */
 krb5_error_code KRB5_CALLCONV
 krb5_mk_req(krb5_context context, krb5_auth_context *auth_context,
-            krb5_flags ap_req_options, char *service, char *hostname,
-            krb5_data *in_data, krb5_ccache ccache, krb5_data *outbuf);
+            krb5_flags ap_req_options, const char *service,
+            const char *hostname, krb5_data *in_data, krb5_ccache ccache,
+            krb5_data *outbuf);
 
 /**
  * Create a @c KRB_AP_REQ message using supplied credentials.
index 542ef6d4aee5c592c5d679b435d0f74fb8c647d0..162c05b5cbd984539b039e012165f44db7c41bc0 100644 (file)
@@ -48,8 +48,9 @@
 
 krb5_error_code KRB5_CALLCONV
 krb5_mk_req(krb5_context context, krb5_auth_context *auth_context,
-            krb5_flags ap_req_options, char *service, char *hostname,
-            krb5_data *in_data, krb5_ccache ccache, krb5_data *outbuf)
+            krb5_flags ap_req_options, const char *service,
+            const char *hostname, krb5_data *in_data, krb5_ccache ccache,
+            krb5_data *outbuf)
 {
     krb5_error_code       retval;
     krb5_principal        server;