--- gnutls-2.6.0/lib/gnutls_auth.c.orig 2008-10-05 15:41:43.000000000 +0200 +++ gnutls-2.6.0/lib/gnutls_auth.c 2008-11-13 20:55:23.000000000 +0100 @@ -31,6 +31,8 @@ #include #include "auth_anon.h" +#include "auth_psk.h" + /* The functions here are used in order for authentication algorithms * to be able to retrieve the needed credentials eg public and private * key etc. @@ -342,6 +344,17 @@ break; + case GNUTLS_CRD_PSK: + { + psk_auth_info_t info = _gnutls_get_auth_info (session); + + if (info == NULL) + break; + + dh_info = &info->dh; + _gnutls_free_dh_info (dh_info); + } + break; default: return;