From patchwork Thu Jun 9 14:29:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Hartman X-Patchwork-Id: 865592 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p59EbuuX004653 for ; Thu, 9 Jun 2011 14:37:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752098Ab1FIOh4 (ORCPT ); Thu, 9 Jun 2011 10:37:56 -0400 Received: from permutation-city.suchdamage.org ([69.25.196.28]:52218 "EHLO mail.suchdamage.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751871Ab1FIOhz (ORCPT ); Thu, 9 Jun 2011 10:37:55 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 09 Jun 2011 14:37:57 +0000 (UTC) X-Greylist: delayed 524 seconds by postgrey-1.27 at vger.kernel.org; Thu, 09 Jun 2011 10:37:55 EDT Received: from carter-zimmerman.suchdamage.org (carter-zimmerman.suchdamage.org [69.25.196.178]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "laptop", Issuer "laptop" (not verified)) by mail.suchdamage.org (Postfix) with ESMTPS id DA81220464; Thu, 9 Jun 2011 10:24:41 -0400 (EDT) Received: by carter-zimmerman.suchdamage.org (Postfix, from userid 8042) id 0C15B4426; Thu, 9 Jun 2011 10:29:03 -0400 (EDT) From: Sam Hartman To: Kevin Coffman Cc: Didier Raboud , linux-nfs@vger.kernel.org, 629553@bugs.debian.org, 629692@bugs.debian.org Subject: Re: libgssglue: incompatible with krb5 1.9 References: <20110609013756.GA5304@master.debian.org> Date: Thu, 09 Jun 2011 10:29:03 -0400 In-Reply-To: (Kevin Coffman's message of "Thu, 9 Jun 2011 01:18:43 -0400") Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Here's the MIT diff that introduces the types: commit 21479bb4df589793a4fc25aedb59d599043eb95b Author: lhoward Date: Sun Apr 3 08:02:53 2011 +0000 Use RFC 5587 const types for draft-josefsson-gss-capsulate APIs git-svn-id: svn://anonsvn.mit.edu/svn/krb5/trunk@24821 dc483132-0cff-0310-8789-dd5450dbe970 (cherry picked from commit 4a46936a36f47e54134b24d7083cfd45a2d009bc) --- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/src/lib/gssapi/generic/gssapi_ext.h b/src/lib/gssapi/generic/gssapi_ext.h index a2a8bcd..31d972b 100644 --- a/src/lib/gssapi/generic/gssapi_ext.h +++ b/src/lib/gssapi/generic/gssapi_ext.h @@ -387,22 +387,22 @@ OM_uint32 KRB5_CALLCONV gss_release_any_name_mapping /* draft-josefsson-gss-capsulate */ OM_uint32 KRB5_CALLCONV gss_encapsulate_token ( - const gss_buffer_t, /* input_token */ - const gss_OID, /* token_oid */ - const gss_buffer_t /* output_token */ + gss_const_buffer_t, /* input_token */ + gss_const_OID, /* token_oid */ + gss_buffer_t /* output_token */ ); OM_uint32 KRB5_CALLCONV gss_decapsulate_token ( - const gss_buffer_t, /* input_token */ - const gss_OID, /* token_oid */ + gss_const_buffer_t, /* input_token */ + gss_const_OID, /* token_oid */ gss_buffer_t /* output_token */ ); int KRB5_CALLCONV gss_oid_equal ( - const gss_OID, /* first_oid */ - const gss_OID /* second_oid */ + gss_const_OID, /* first_oid */ + gss_const_OID /* second_oid */ ); #ifdef __cplusplus diff --git a/src/lib/gssapi/mechglue/g_decapsulate_token.c b/src/lib/gssapi/mechglue/g_decapsulate_token.c index a12d8f7..42b9e07 100644 --- a/src/lib/gssapi/mechglue/g_decapsulate_token.c +++ b/src/lib/gssapi/mechglue/g_decapsulate_token.c @@ -33,8 +33,8 @@ #include "mglueP.h" OM_uint32 -gss_decapsulate_token(const gss_buffer_t input_token, - const gss_OID token_oid, +gss_decapsulate_token(gss_const_buffer_t input_token, + gss_const_OID token_oid, gss_buffer_t output_token) { OM_uint32 minor; diff --git a/src/lib/gssapi/mechglue/g_encapsulate_token.c b/src/lib/gssapi/mechglue/g_encapsulate_token.c index a60c796..b26e147 100644 --- a/src/lib/gssapi/mechglue/g_encapsulate_token.c +++ b/src/lib/gssapi/mechglue/g_encapsulate_token.c @@ -33,8 +33,8 @@ #include "mglueP.h" OM_uint32 -gss_encapsulate_token(const gss_buffer_t input_token, - const gss_OID token_oid, +gss_encapsulate_token(gss_const_buffer_t input_token, + gss_const_OID token_oid, gss_buffer_t output_token) { unsigned int tokenSize; diff --git a/src/lib/gssapi/mechglue/g_oid_ops.c b/src/lib/gssapi/mechglue/g_oid_ops.c index aa6d807..db3cd78 100644 --- a/src/lib/gssapi/mechglue/g_oid_ops.c +++ b/src/lib/gssapi/mechglue/g_oid_ops.c @@ -111,8 +111,8 @@ gssint_copy_oid_set( int gss_oid_equal( - const gss_OID first_oid, - const gss_OID second_oid) + gss_const_OID first_oid, + gss_const_OID second_oid) { return g_OID_equal(first_oid, second_oid); }