[gnutls-devel] GnuTLS | ktls: basic implementation of SW mode (!1451)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Fri Sep 17 10:50:19 CEST 2021




Daiki Ueno started a new discussion on lib/system/ktls.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1451#note_680344357

> + */
> +
> +#include "config.h"
> +#include "system/ktls.h"
> +
> +#ifdef ENABLE_KTLS
> +
> +#include <linux/tls.h>
> +#include <record.h>
> +#include <sys/socket.h>
> +#include <netinet/tcp.h>
> +#include <unistd.h>
> +#include <errno.h>
> +
> +/**
> + * gnutls_transport_set_ktls:

This is kind of brainstorming, but I guess we should make it clear when this function is called and what would be the desired behavior. For example:
- If this function is called *before* handshake, and a ciphersuite incompatible with KTLS is negotiated, maybe it makes sense to automatically fall back to non-KTLS implementation
- On the other hand, if this function is called *after* handshake is completed, it would be probably more useful to just return an error

@berrange do you have any opinion on the API?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1451#note_680344357
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/20210917/ad1b74d0/attachment.html>


More information about the Gnutls-devel mailing list