[27757] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit: Don't use "bool" for ASN.1 boolean macros

daemon@ATHENA.MIT.EDU (Greg Hudson)
Tue May 14 00:14:10 2013

Date: Tue, 14 May 2013 00:14:04 -0400
From: Greg Hudson <ghudson@mit.edu>
Message-Id: <201305140414.r4E4E4vW012877@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/1799f7b5d9cf4390148248d603d99a3695ddfafe
commit 1799f7b5d9cf4390148248d603d99a3695ddfafe
Author: Nate Rosenblum <nater@maginatics.com>
Date:   Mon May 13 20:26:31 2013 -0700

    Don't use "bool" for ASN.1 boolean macros
    
    When building for IOS targets with clang, the stdbool.h header is
    included by default. This header includes the following C99
    definition:
    
        #define bool _Bool
    
    which wrecks havoc with the DEFBOOLTYPE macro.
    
    ticket: 7525

 src/lib/krb5/asn.1/asn1_k_encode.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/krb5/asn.1/asn1_k_encode.c b/src/lib/krb5/asn.1/asn1_k_encode.c
index 68a907f..b4c15bb 100644
--- a/src/lib/krb5/asn.1/asn1_k_encode.c
+++ b/src/lib/krb5/asn.1/asn1_k_encode.c
@@ -41,7 +41,7 @@ init_int32_minus1(void *p)
     *(krb5_int32 *)p = -1;
 }
 
-DEFBOOLTYPE(bool, krb5_boolean);
+DEFBOOLTYPE(boolean, krb5_boolean);
 DEFINTTYPE(int32, krb5_int32);
 DEFPTRTYPE(int32_ptr, int32);
 DEFCOUNTEDSEQOFTYPE(cseqof_int32, krb5_int32, int32_ptr);
@@ -1008,7 +1008,7 @@ static const struct atype_info *pa_s4u_x509_user_fields[] = {
 };
 DEFSEQTYPE(pa_s4u_x509_user, krb5_pa_s4u_x509_user, pa_s4u_x509_user_fields);
 
-DEFFIELD(pa_pac_req_0, krb5_pa_pac_req, include_pac, 0, bool);
+DEFFIELD(pa_pac_req_0, krb5_pa_pac_req, include_pac, 0, boolean);
 static const struct atype_info *pa_pac_req_fields[] = {
     &k5_atype_pa_pac_req_0
 };
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post