GPG2 and IDEA

2013-03-19 Thread Jan Chaloupecky
Hi,
the short question is how do I enable the IDEA support in GPG2.

I tried following this article:
http://www.kfwebs.net/articles/article/42/GnuPG-2.0---IDEA-support

but even the patching of the libcrypt source files does not work. Here's
what I did:


 wget ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.2.4.tar.bz2
 tar jxvf libgcrypt-1.2.4.tar.bz2
 wget http://www.kfwebs.com/libgcrypt-1.2.4-idea.diff.bz2
 bunzip2 libgcrypt-1.2.4-idea.diff.bz2
 patch --dry-run   libgcrypt-1.2.4-idea.diff

The patch command gives me a lot of FAILED messages:


 patching file cipher.c
 Hunk #1 FAILED at 72.
 1 out of 1 hunk FAILED -- saving rejects to file cipher.c.rej
 patching file idea.c
 patching file Makefile.am
 Hunk #1 FAILED at 63.
 1 out of 1 hunk FAILED -- saving rejects to file Makefile.am.rej
 patching file configure.ac
 Hunk #1 FAILED at 110.
 Hunk #2 FAILED at 715.
 2 out of 2 hunks FAILED -- saving rejects to file configure.ac.rej
 patching file cipher.h
 Hunk #1 FAILED at 58.
 1 out of 1 hunk FAILED -- saving rejects to file cipher.h.rej
 patching file basic.c
 Hunk #1 FAILED at 542.
 1 out of 1 hunk FAILED -- saving rejects to file basic.c.rej


what am I doing wrong?

cheers


-- 
Jan
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: GPG2 and IDEA

2013-03-19 Thread Werner Koch
On Tue, 19 Mar 2013 11:57, chal...@gmail.com said:

 wget ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.2.4.tar.bz2

That is a pretty old version.  You should move to a decent one; at least
1.4.x or better the latest 1.5.1.

There is no IDEA support there, regular support is only available in the
forthcoming 1.6 (you might be able to backport from master to 1.5.1)


Salam-Shalom,

   Werner


-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: GPG2 and IDEA

2013-03-19 Thread Werner Koch
On Tue, 19 Mar 2013 16:56, chal...@gmail.com said:
 I actually managed to compile just the module and load it dynamically in
 gpg:

I doubt that.  Looking at the 2.0 branch I see this in gpg.c:

  case oLoadExtension:
/* Dummy so that gpg 1.4 conf files can work. Should
   eventually be removed.  */
break;

Sure that you are not using 1.4?  In this case 1.4.13 already includes
idea support.


Shalom-Salam,

   Werner


-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: GPG2 and IDEA

2013-03-19 Thread Jan Chaloupecky
Sorry, I meant that I was able to run it in gpg 1.4 not 2
this is ok for me.


-- 
Jan


On Tuesday, March 19, 2013 at 11:59 PM, Werner Koch wrote:

 On Tue, 19 Mar 2013 16:56, chal...@gmail.com (mailto:chal...@gmail.com) said:
  I actually managed to compile just the module and load it dynamically in
  gpg:
  
 
 
 I doubt that. Looking at the 2.0 branch I see this in gpg.c:
 
 case oLoadExtension:
 /* Dummy so that gpg 1.4 conf files can work. Should
 eventually be removed. */
 break;
 
 Sure that you are not using 1.4? In this case 1.4.13 already includes
 idea support.
 
 
 Shalom-Salam,
 
 Werner
 
 
 -- 
 Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
 
 


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users