[gnutls-devel] GnuTLS | Implement new tls channel biding types (!1422)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Mon May 3 11:32:04 CEST 2021




Ruslan Marchenko commented on a discussion on lib/state.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1422#note_565821054

>  			       gnutls_channel_binding_t cbtype,
>  			       gnutls_datum_t * cb)
>  {
> -	if (cbtype != GNUTLS_CB_TLS_UNIQUE)
> -		return GNUTLS_E_UNIMPLEMENTED_FEATURE;
> -
>  	if (!session->internals.initial_negotiation_completed)
>  		return GNUTLS_E_CHANNEL_BINDING_NOT_AVAILABLE;
>  
> -	cb->size = session->internals.cb_tls_unique_len;
> -	cb->data = gnutls_malloc(cb->size);
> -	if (cb->data == NULL)
> -		return GNUTLS_E_MEMORY_ERROR;
> +	if (cbtype == GNUTLS_CB_TLS_UNIQUE) {
> +		if (get_num_version(session) == GNUTLS_TLS1_3)
> +			return GNUTLS_E_UNIMPLEMENTED_FEATURE;

I'd glad to but I got lost at version enum so this was the best I could come up with. But now I remember this tls13_sem, was using it before, not sure why I stuck at the num_version. Thanks for suggestion.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1422#note_565821054
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/20210503/7ffc8d7b/attachment-0001.html>


More information about the Gnutls-devel mailing list