net/tls: reject offload of TLS 1.3
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 28 Jun 2019 23:07:59 +0000 (16:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jul 2019 02:21:31 +0000 (19:21 -0700)
commit618bac45937a3dc6126ac0652747481e97000f99
treef900e498ec5f5db203b196118ad01881cb6a34f4
parent8a534f8fb0dc44694a437b575060499efd1c91de
net/tls: reject offload of TLS 1.3

Neither drivers nor the tls offload code currently supports TLS
version 1.3. Check the TLS version when installing connection
state. TLS 1.3 will just fallback to the kernel crypto for now.

Fixes: 130b392c6cd6 ("net: tls: Add tls 1.3 support")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_device.c