]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix RFC 5587 const pointer typedefs
authorGreg Hudson <ghudson@mit.edu>
Tue, 12 Feb 2013 02:13:15 +0000 (21:13 -0500)
committerGreg Hudson <ghudson@mit.edu>
Tue, 12 Feb 2013 02:13:15 +0000 (21:13 -0500)
gss_const_ctx_id_t, gss_const_cred_id_t, and gss_const_name_t are
supposed to be const pointers to the appropriate structures, not the
structures themselves.  These are not used by any prototypes yet, and
no application would have any reason to use them as they are, so it
should be safe to change them within the public header.

ticket: 7567 (new)
target_version: 1.11.1
tags: pullup

src/lib/gssapi/generic/gssapi.hin

index 15d685d8c08c2d88439f7695f73d15995d7d5dd3..54433f7035c1bc7d3d47c7f0ef804deaa8a8a695 100644 (file)
@@ -838,9 +838,9 @@ gss_set_neg_mechs(
  */
 typedef const gss_buffer_desc *gss_const_buffer_t;
 typedef const struct gss_channel_bindings_struct *gss_const_channel_bindings_t;
-typedef const struct gss_ctx_id_struct gss_const_ctx_id_t;
-typedef const struct gss_cred_id_struct gss_const_cred_id_t;
-typedef const struct gss_name_struct gss_const_name_t;
+typedef const struct gss_ctx_id_struct *gss_const_ctx_id_t;
+typedef const struct gss_cred_id_struct *gss_const_cred_id_t;
+typedef const struct gss_name_struct *gss_const_name_t;
 typedef const gss_OID_desc *gss_const_OID;
 typedef const gss_OID_set_desc *gss_const_OID_set;