tls: Pass error code explicitly to tls_err_abort
authorDave Watson <davejwatson@fb.com>
Thu, 22 Mar 2018 17:10:15 +0000 (10:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Mar 2018 16:25:54 +0000 (12:25 -0400)
commitf4a8e43f1f0abc0e93ed5ee132288ee4142afde1
tree8dcb9a6a772faf599d2445ce1d36bea6a06cc130
parentdbe425599ba05c7415f632e6f5f018453098eb69
tls: Pass error code explicitly to tls_err_abort

Pass EBADMSG explicitly to tls_err_abort.  Receive path will
pass additional codes - EMSGSIZE if framing is larger than max
TLS record size, EINVAL if TLS version mismatch.

Signed-off-by: Dave Watson <davejwatson@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tls.h
net/tls/tls_sw.c