From: Tianjia Zhang Date: Mon, 25 Oct 2021 13:04:39 +0000 (+0800) Subject: net/tls: tls_crypto_context add supported algorithms context X-Git-Tag: v5.16-rc1~159^2~93 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=39d8fb96e3d74aa55143eb1d076800af87505cfa;p=tomoyo%2Ftomoyo-test1.git net/tls: tls_crypto_context add supported algorithms context tls already supports the SM4 GCM/CCM algorithms. It is also necessary to add support for these two algorithms in tls_crypto_context to avoid potential issues caused by forced type conversion. Signed-off-by: Tianjia Zhang Signed-off-by: David S. Miller --- diff --git a/include/net/tls.h b/include/net/tls.h index b6d40642afdd..adab19a8aed7 100644 --- a/include/net/tls.h +++ b/include/net/tls.h @@ -221,6 +221,8 @@ union tls_crypto_context { struct tls12_crypto_info_aes_gcm_128 aes_gcm_128; struct tls12_crypto_info_aes_gcm_256 aes_gcm_256; struct tls12_crypto_info_chacha20_poly1305 chacha20_poly1305; + struct tls12_crypto_info_sm4_gcm sm4_gcm; + struct tls12_crypto_info_sm4_ccm sm4_ccm; }; };