[gnutls-devel] gnutls-3.4.4 - gnutls_psk_set_client_credentials() returns Base64 decoding error

Graham Murray GMurray at webwayone.co.uk
Mon Aug 17 14:45:06 CEST 2015

On Mon, 2015-08-17 at 12:13 +0100, Nikos Mavrogiannopoulos wrote:
> On Mon, Aug 17, 2015 at 11:10 AM, Graham Murray <
> GMurray at webwayone.co.uk> wrote:
> > After upgrading to gnutls-3.4.4, gnutls_psk_set_client_credentials
> > fails with 'Base64 decoding erro'. Reverting back to gnutls-3.4.3
> > (without rebuilding my application) it works correctly again.
> Gnutls 3.4.4 is more strict on the hex data provided. While the
> previous versions would stop processing on invalid data, this one 
> will
> output an error. If that is not the case of your issue, could you
> modify tests/pskself.c in a way which reproduces the issue?

Thank you. That was the problem. The line terminator was not being
removed from the hex key. Fixing this fixed the problem and it now
works with 3.4.4

More information about the Gnutls-devel mailing list