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
51 51
52struct tls_rec;52struct tls_rec;
53 53
54struct 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
62extern const struct tls_cipher_size_desc tls_cipher_size_desc[];
63
64/* Maximum data size carried in a TLS record */54/* Maximum data size carried in a TLS record */
65#define TLS_MAX_PAYLOAD_SIZE ((size_t)1 << 14)55#define TLS_MAX_PAYLOAD_SIZE ((size_t)1 << 14)
66 56
net/tls/tls.h+10−0
@@ -51,6 +51,16 @@ · 50 unmodified lines
51#define TLS_DEC_STATS(net, field) \51#define TLS_DEC_STATS(net, field) \
52 SNMP_DEC_STATS((net)->mib.tls_statistics, field)52 SNMP_DEC_STATS((net)->mib.tls_statistics, field)
53 53
54struct 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
62extern const struct tls_cipher_size_desc tls_cipher_size_desc[];
63
54/* TLS records are maintained in 'struct tls_rec'. It stores the memory pages64/* TLS records are maintained in 'struct tls_rec'. It stores the memory pages
55 * allocated or mapped for each TLS record. After encryption, the records are65 * allocated or mapped for each TLS record. After encryption, the records are
56 * stores in a linked list.66 * 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