krb5 commit: Fix RFC 5587 const pointer typedefs

Greg Hudson ghudson at MIT.EDU
Tue Feb 12 00:47:19 EST 2013


https://github.com/krb5/krb5/commit/884e040c0478c94585395a03dfbb0bbdee7c5ed4
commit 884e040c0478c94585395a03dfbb0bbdee7c5ed4
Author: Greg Hudson <ghudson at mit.edu>
Date:   Mon Feb 11 21:13:15 2013 -0500

    Fix RFC 5587 const pointer typedefs
    
    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 |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/gssapi/generic/gssapi.hin b/src/lib/gssapi/generic/gssapi.hin
index 15d685d..54433f7 100644
--- a/src/lib/gssapi/generic/gssapi.hin
+++ b/src/lib/gssapi/generic/gssapi.hin
@@ -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;
 


More information about the cvs-krb5 mailing list