[gnutls-devel] GnuTLS | WIP: support non-NULL-terminated PSKs (!917)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Tue Mar 5 09:15:51 CET 2019


Nikos Mavrogiannopoulos started a new discussion on tests/pskself2.c:

> +	gnutls_credentials_set(session, GNUTLS_CRD_PSK, server_pskcred);
> +
> +	gnutls_transport_set_int(session, sd);
> +	ret = gnutls_handshake(session);
> +	if (ret < 0) {
> +		close(sd);
> +		gnutls_deinit(session);
> +		fail("server: Handshake has failed (%s)\n\n",
> +		     gnutls_strerror(ret));
> +		return;
> +	}
> +
> +	if (debug) {
> +		success("server: Handshake was completed\n");
> +
> +		if (gnutls_psk_server_get_username2(session, &psk_username) < 0)

I think we should compare here with the expected value.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/917#note_147291898
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190305/6f233ed5/attachment.html>


More information about the Gnutls-devel mailing list