diff options
author | Sabrina Dubroca <[email protected]> | 2023-08-25 23:35:19 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-08-27 17:17:42 -0700 |
commit | 077e05d135489e144d9e0d01454886bf613d32a4 (patch) | |
tree | 57fecc38f0cba02f0e11856201d5241ce99adb58 /lib/test_fortify/write_overflow-memcpy.c | |
parent | 5f309ade49c7068b1149ecf825c4c16e56a3b865 (diff) |
tls: use tls_cipher_desc to simplify do_tls_getsockopt_conf
Every cipher uses the same code to update its crypto_info struct based
on the values contained in the cctx, with only the struct type and
size/offset changing. We can get those from tls_cipher_desc, and use
a single pair of memcpy and final copy_to_user.
Signed-off-by: Sabrina Dubroca <[email protected]>
Link: https://lore.kernel.org/r/c21a904b91e972bdbbf9d1c6d2731ccfa1eedf72.1692977948.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions