History

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.

Sabrina Dubroca committed 3 years ago

Commit fd0fc6f1 parent 4bfb6222 files · +10 −10Browse files

Unified · Split

2 files
  1. include/net/tls.h +0 −10
  2. net/tls/tls.h +10 −0
include/net/tls.h+0−10
@@ -51,16 +51,6 @@ · 50 unmodified lines
5151
5252 struct tls_rec;
5353
54−struct tls_cipher_size_desc {
55− unsigned int iv;
56− unsigned int key;
57− unsigned int salt;
58− unsigned int tag;
59− unsigned int rec_seq;
60−};
61−
62−extern const struct tls_cipher_size_desc tls_cipher_size_desc[];
63−
6454 /* Maximum data size carried in a TLS record */
6555 #define TLS_MAX_PAYLOAD_SIZE ((size_t)1 << 14)
6656
net/tls/tls.h+10−0
@@ -51,6 +51,16 @@ · 50 unmodified lines
5151 #define TLS_DEC_STATS(net, field) \
5252 SNMP_DEC_STATS((net)->mib.tls_statistics, field)
5353
54+struct tls_cipher_size_desc {
55+ unsigned int iv;
56+ unsigned int key;
57+ unsigned int salt;
58+ unsigned int tag;
59+ unsigned int rec_seq;
60+};
61+
62+extern const struct tls_cipher_size_desc tls_cipher_size_desc[];
63+
5464 /* TLS records are maintained in 'struct tls_rec'. It stores the memory pages
5565 * allocated or mapped for each TLS record. After encryption, the records are
5666 * stores in a linked list.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t