From jhall at maoz.com Fri Aug 8 14:39:02 2003 From: jhall at maoz.com (Jeremy Hall) Date: Fri Aug 8 14:39:02 2003 Subject: [gnutls-dev] problems compiling opencdk from CVS Message-ID: <200308081241.h78Cf46t004106@sith.maoz.com> Hello, I am trying to compile opencdk, which I believe is a dependency for gnutls. I have installed libgcrypt-1.1.42 and the CVS of libtasn1, but opencdk fails to compile because mpi.h is not found (cipher.h:24) I have tried a variety of foolish things which have resulted in loads of errors, but all I want to do is have a working gnutls because centericq requires it to build IT from CVS. I see that moving away from libgcrypt is a high priority, so maybe I've just missed some notification that I need to check out some aditional library to make things go. Suggestions welcome. _J From nspring at cs.washington.edu Fri Aug 8 19:12:02 2003 From: nspring at cs.washington.edu (Neil Spring) Date: Fri Aug 8 19:12:02 2003 Subject: [gnutls-dev] problems compiling opencdk from CVS In-Reply-To: <200308081241.h78Cf46t004106@sith.maoz.com> Message-ID: On Friday, Aug 8, 2003, at 05:41 US/Pacific, Jeremy Hall wrote: > I have installed libgcrypt-1.1.42 and the CVS of libtasn1, but opencdk > fails to compile because mpi.h is not found (cipher.h:24) > Suggestions welcome. what happens if you downgrade to gcrypt 1.1.12? -neil -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 186 bytes Desc: not available URL: From twoaday at freakmail.de Sat Aug 9 10:41:01 2003 From: twoaday at freakmail.de (Timo Schulz) Date: Sat Aug 9 10:41:01 2003 Subject: [gnutls-dev] problems compiling opencdk from CVS In-Reply-To: <200308081241.h78Cf46t004106@sith.maoz.com> References: <200308081241.h78Cf46t004106@sith.maoz.com> Message-ID: <20030808143601.GC1230@daredevil.joesixpack.net> On Fri Aug 08 2003; 08:41, Jeremy Hall wrote: > I have installed libgcrypt-1.1.42 and the CVS of libtasn1, but opencdk > fails to compile because mpi.h is not found (cipher.h:24) OpenCDK is *NOT* compatible with this version. I need to port it to the new API but soon OpenCDK will have its own crypto stuff and we don't need Libgcrypt at all. Until this is done, the OpenPGP support for GnuTLS won't work :-(. Timo -- Windows Privacy Tools "Der Tugendhafte begn?gt sich, von dem zu (http://winpt.sourceforge.net) tr?umen, was der B?se im Leben verwirklicht." OpenPGP Key 0xBF3DF9B4 -- Platon From jhall at maoz.com Sat Aug 9 11:18:01 2003 From: jhall at maoz.com (Jeremy Hall) Date: Sat Aug 9 11:18:01 2003 Subject: [gnutls-dev] problems compiling opencdk from CVS In-Reply-To: <20030808143601.GC1230@daredevil.joesixpack.net> from Timo Schulz at "Aug 8, 2003 04:36:01 pm" Message-ID: <200308090919.h799JRpf009836@sith.maoz.com> Hi Timo, The only reason I am trying to get opencdk to work is because I want to compile gnutls, and I can't build the auto* files without its presence. _J In the new year, Timo Schulz wrote: > On Fri Aug 08 2003; 08:41, Jeremy Hall wrote: > > > I have installed libgcrypt-1.1.42 and the CVS of libtasn1, but opencdk > > fails to compile because mpi.h is not found (cipher.h:24) > > OpenCDK is *NOT* compatible with this version. I need to port it to > the new API but soon OpenCDK will have its own crypto stuff and we > don't need Libgcrypt at all. > > Until this is done, the OpenPGP support for GnuTLS won't work :-(. > > > Timo > > -- > Windows Privacy Tools "Der Tugendhafte begn?gt sich, von dem zu > (http://winpt.sourceforge.net) tr?umen, was der B?se im Leben verwirklicht." > OpenPGP Key 0xBF3DF9B4 -- Platon > > > > > _______________________________________________ > Gnutls-dev mailing list > Gnutls-dev at gnupg.org > http://lists.gnupg.org/mailman/listinfo/gnutls-dev > From nmav at gnutls.org Sat Aug 9 18:40:02 2003 From: nmav at gnutls.org (Nikos Mavroyanopoulos) Date: Sat Aug 9 18:40:02 2003 Subject: [gnutls-dev] problems compiling opencdk from CVS In-Reply-To: <20030808143601.GC1230@daredevil.joesixpack.net> References: <200308081241.h78Cf46t004106@sith.maoz.com> <20030808143601.GC1230@daredevil.joesixpack.net> Message-ID: <20030809164320.GA941@gnutls.org> On Fri, Aug 08, 2003 at 04:36:01PM +0200, Timo Schulz wrote: > > I have installed libgcrypt-1.1.42 and the CVS of libtasn1, but opencdk > > fails to compile because mpi.h is not found (cipher.h:24) > OpenCDK is *NOT* compatible with this version. I need to port it to > the new API but soon OpenCDK will have its own crypto stuff and we > don't need Libgcrypt at all. > Until this is done, the OpenPGP support for GnuTLS won't work :-(. gnutls also cannot be built with libgcrypt 1.1.42. Only the new development releases will support it. The 0.8.x releases will only support libgcrypt 1.1.12. > Timo > -- > Windows Privacy Tools "Der Tugendhafte begn?gt sich, von dem zu > (http://winpt.sourceforge.net) tr?umen, was der B?se im Leben verwirklicht." > OpenPGP Key 0xBF3DF9B4 -- Platon -- Nikos Mavroyanopoulos From nmav at gnutls.org Thu Aug 21 00:07:01 2003 From: nmav at gnutls.org (Nikos Mavroyanopoulos) Date: Thu Aug 21 00:07:01 2003 Subject: [gnutls-dev] gnutls 0.8.10 Message-ID: <20030820220845.GA3044@gnutls.org> There has been a release of gnutls 0.8.10 some days ago. This release fixes a bug in the server name indication code (backported from the 0.9.x releases). -- Nikos Mavroyanopoulos From nmav at gnutls.org Thu Aug 28 09:37:02 2003 From: nmav at gnutls.org (Nikos Mavroyanopoulos) Date: Thu Aug 28 09:37:02 2003 Subject: [gnutls-dev] gnutls 0.9.7 Message-ID: <20030828074004.GA958@gnutls.org> A few days ago I've released gnutls 0.9.7. That version contains all the planned functionality for the 1.0.0 version except for the openpgp part. The changes are: - The tex files are now included in the distribution. - The library can now decrypt PKCS #12 files encrypted with the RC2-40 cipher. - The missing rfc2818_hostname object is now included. - Several corrections and bug fixes in the library by Arne Thomassen . - CR is now allowed in the base64 decoder. -- Nikos Mavroyanopoulos From wk at gnupg.org Fri Aug 29 11:12:02 2003 From: wk at gnupg.org (Werner Koch) Date: Fri Aug 29 11:12:02 2003 Subject: [gnutls-dev] gnutls 0.9.7 In-Reply-To: <20030828074004.GA958@gnutls.org> (Nikos Mavroyanopoulos's message of "Thu, 28 Aug 2003 10:40:04 +0300") References: <20030828074004.GA958@gnutls.org> Message-ID: <87ptioakvn.fsf@alberti.g10code.de> On Thu, 28 Aug 2003 10:40:04 +0300, Nikos Mavroyanopoulos said: > A few days ago I've released gnutls 0.9.7. That version contains > all the planned functionality for the 1.0.0 version except for I have not looked into it yet, so I don't know whether libgcrypt has already been modified for use with libgcrypt's new API. It is very unlikely that we will fix anything in 1.1.12 so moving to 1.1.42 is very important. If there is anything where we can help, we will certainly do so. Along with gnupg-1.9, gnutls is the major test application for Libgcrypt. In the meantime we made the pthread linking problems easier and also fixed a couple of bugs. Should we make a new release of Libgcrypt this weekend? Shalom-Salam, Werner -- Werner Koch The GnuPG Experts http://g10code.com Free Software Foundation Europe http://fsfeurope.org From nmav at gnutls.org Fri Aug 29 16:36:02 2003 From: nmav at gnutls.org (Nikos Mavroyanopoulos) Date: Fri Aug 29 16:36:02 2003 Subject: [gnutls-dev] gnutls 0.9.7 In-Reply-To: <87ptioakvn.fsf@alberti.g10code.de> References: <20030828074004.GA958@gnutls.org> <87ptioakvn.fsf@alberti.g10code.de> Message-ID: <20030829143902.GA1121@gnutls.org> On Fri, Aug 29, 2003 at 11:11:40AM +0200, Werner Koch wrote: > > A few days ago I've released gnutls 0.9.7. That version contains > > all the planned functionality for the 1.0.0 version except for > I have not looked into it yet, so I don't know whether libgcrypt has > already been modified for use with libgcrypt's new API. It is very > unlikely that we will fix anything in 1.1.12 so moving to 1.1.42 is > very important. If there is anything where we can help, we will > certainly do so. Along with gnupg-1.9, gnutls is the major test > application for Libgcrypt. > In the meantime we made the pthread linking problems easier and also > fixed a couple of bugs. Should we make a new release of Libgcrypt this > weekend? This would help a lot, since the 0.9.7 version depends on libgcrypt (cvs 1.1.43) since the .42 had some bugs with gnutls. > Shalom-Salam, > Werner > -- > Werner Koch > The GnuPG Experts http://g10code.com > Free Software Foundation Europe http://fsfeurope.org -- Nikos Mavroyanopoulos From ivo at o2w.nl Sat Aug 30 00:35:02 2003 From: ivo at o2w.nl (Ivo Timmermans) Date: Sat Aug 30 00:35:02 2003 Subject: [gnutls-dev] MS-style newlines in certificate files Message-ID: <20030829223716.GA2258@juarez> Hi, Apparently MS-DOS-style newlines (\r\n) aren't supported by gnutls' base-64 decoder; parsing certificate files with these newlines yield error -34 (Certificate parsing error). Is it possible to support this style of newlines? Possibly Apple newlines (\r) too? See http://bugs.debian.org/202454 for details. Ivo -- Mein Gott, Henry! Hinter dir! Der Mobster von Loch Ness! - Nichtlustig From nmav at gnutls.org Sat Aug 30 11:21:02 2003 From: nmav at gnutls.org (Nikos Mavroyanopoulos) Date: Sat Aug 30 11:21:02 2003 Subject: [gnutls-dev] MS-style newlines in certificate files In-Reply-To: <20030829223716.GA2258@juarez> References: <20030829223716.GA2258@juarez> Message-ID: <20030830092428.GB1640@gnutls.org> On Sat, Aug 30, 2003 at 12:37:16AM +0200, Ivo Timmermans wrote: > Hi, > Apparently MS-DOS-style newlines (\r\n) aren't supported by gnutls' > base-64 decoder; parsing certificate files with these newlines yield > error -34 (Certificate parsing error). > Is it possible to support this style of newlines? Possibly Apple > newlines (\r) too? > See http://bugs.debian.org/202454 for details. The attached patch should fix that for the ms-dos newlines. I'll have to think something neater about the apple newlines. > Ivo > -- > Mein Gott, Henry! Hinter dir! Der Mobster von Loch Ness! > - Nichtlustig -- Nikos Mavroyanopoulos -------------- next part -------------- Index: x509_b64.c =================================================================== RCS file: /cvs/gnutls/gnutls/lib/x509_b64.c,v retrieving revision 2.30 retrieving revision 2.31 diff -u -r2.30 -r2.31 --- x509_b64.c 12 Aug 2003 12:00:53 -0000 2.30 +++ x509_b64.c 20 Aug 2003 22:21:32 -0000 2.31 @@ -353,12 +353,13 @@ * The result_size is the return value */ #define ENDSTR "-----\n" +#define ENDSTR2 "-----\r\n" int _gnutls_fbase64_decode( const opaque* header, const opaque * data, size_t data_size, uint8 ** result) { int ret; - char top[] = "-----BEGIN "; - char bottom[] = "\n-----END "; + const char top[] = "-----BEGIN "; + const char bottom[] = "\n-----END "; uint8 *rdata; int rdata_size; uint8 *kdata; @@ -385,6 +386,10 @@ } kdata = strnstr( rdata, ENDSTR, data_size); + /* allow CR as well. + */ + if (kdata==NULL) kdata = strnstr( rdata, ENDSTR2, data_size); + if (kdata==NULL) { gnutls_assert(); _gnutls_x509_log( "Could not find '%s'\n", ENDSTR);