GnuTLS 2.4.1 with libgcrypt 1.4.2

Simon Josefsson simon at josefsson.org
Tue Sep 9 18:29:27 CEST 2008


ludo at gnu.org (Ludovic Courtès) writes:

> Hello,
>
> GnuTLS 2.4.1's `openssl' test fails with libgcrypt 1.4.2:
>
>   Program received signal SIGSEGV, Segmentation fault.
>   gc_hash_write (handle=0x0, len=3, data=0x8049042 "abc") at gc-libgcrypt.c:431
>   431       if (ctx->alg == GC_MD2)
>   (gdb) bt
>   #0  gc_hash_write (handle=0x0, len=3, data=0x8049042 "abc") at gc-libgcrypt.c:431
>   #1  0xb7ef474d in MD5_Update (ctx=0xbff38988, buf=0x8049042, len=3) at gnutls_openssl.c:1011
>   #2  0x080489c7 in doit () at openssl.c:43
>   #3  0x08048b25 in main (argc=1, argv=0xbff38a84) at utils.c:148
>
> The root of the problem is this:
>
>   (gdb) p gc_hash_open (GC_MD5, 0, &ctx->handle)
>   $3 = GC_INVALID_HASH
>
> ... despite the fact that `libgcrypt-config --algorithms' does list MD5.
>
> Any idea?

It is a bug in the openssl example, fixed in:

http://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=commitdiff;h=9a8474986d53be944b0f91b10199c5986a43069f

I'm backporting it to 2.4.x now, thanks for testing.  I think we need to
do a 2.4.2...

/Simon





More information about the Gnutls-devel mailing list