mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
tls: move tls_cipher_size_desc to net/tls/tls.h
It's only used in net/tls/*, no need to bloat include/net/tls.h. Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Link: https://lore.kernel.org/r/dd9fad80415e5b3575b41f56b331871038362eab.1692977948.git.sd@queasysnail.net Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
4bfb6224ed
commit
fd0fc6fdd8
@ -51,16 +51,6 @@
|
||||
|
||||
struct tls_rec;
|
||||
|
||||
struct tls_cipher_size_desc {
|
||||
unsigned int iv;
|
||||
unsigned int key;
|
||||
unsigned int salt;
|
||||
unsigned int tag;
|
||||
unsigned int rec_seq;
|
||||
};
|
||||
|
||||
extern const struct tls_cipher_size_desc tls_cipher_size_desc[];
|
||||
|
||||
/* Maximum data size carried in a TLS record */
|
||||
#define TLS_MAX_PAYLOAD_SIZE ((size_t)1 << 14)
|
||||
|
||||
|
@ -51,6 +51,16 @@
|
||||
#define TLS_DEC_STATS(net, field) \
|
||||
SNMP_DEC_STATS((net)->mib.tls_statistics, field)
|
||||
|
||||
struct tls_cipher_size_desc {
|
||||
unsigned int iv;
|
||||
unsigned int key;
|
||||
unsigned int salt;
|
||||
unsigned int tag;
|
||||
unsigned int rec_seq;
|
||||
};
|
||||
|
||||
extern const struct tls_cipher_size_desc tls_cipher_size_desc[];
|
||||
|
||||
/* TLS records are maintained in 'struct tls_rec'. It stores the memory pages
|
||||
* allocated or mapped for each TLS record. After encryption, the records are
|
||||
* stores in a linked list.
|
||||
|
Loading…
Reference in New Issue
Block a user