Re: t-test144 fails with GnuTLS (2.4.0, 2.4.1)

From: Murray S. Kucherawy <msk_at_blackops.org>
Date: Thu, 30 Jun 2011 11:38:58 -0700 (PDT)

On Thu, 30 Jun 2011, Hirohisa Yamaguchi wrote:
> t-test144 fails when libopendkim is built with GnuTLS
>
> Assertion failed: (status == DKIM_STAT_NORESOURCE), function main, file t-test144.c, line 167.
> *** signing attempt with an invalid key
> Abort trap (core dumped)
> FAIL: t-test144

Looks like OpenSSL and GnuTLS have different tolerances for key
malformations. In the curent test case, a PEM-encoded private key that's
missing line breaks between the two armor lines is rejected by OpenSSL but
accepted by GnuTLS.

The attached patch changes the test to something rejected by both.

-MSK


Received on Thu Jun 30 2011 - 18:39:16 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:33:10 PST