GnuTLS 2.4.1 with libgcrypt 1.4.2
Ludovic Courtès
ludo at gnu.org
Tue Sep 9 16:30:59 CEST 2008
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?
Thanks,
Ludo'.
More information about the Gnutls-devel
mailing list