It's only used in net/tls/*, no need to bloat include/net/tls.h.
Unified · Split
| @@ -51,16 +51,6 @@ · 50 unmodified lines | ||
| 51 | 51 | |
| 52 | 52 | struct tls_rec; |
| 53 | 53 | |
| 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 | − | |
| 64 | 54 | /* Maximum data size carried in a TLS record */ |
| 65 | 55 | #define TLS_MAX_PAYLOAD_SIZE ((size_t)1 << 14) |
| 66 | 56 | |
| @@ -51,6 +51,16 @@ · 50 unmodified lines | ||
| 51 | 51 | #define TLS_DEC_STATS(net, field) \ |
| 52 | 52 | SNMP_DEC_STATS((net)->mib.tls_statistics, field) |
| 53 | 53 | |
| 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 | + | |
| 54 | 64 | /* TLS records are maintained in 'struct tls_rec'. It stores the memory pages |
| 55 | 65 | * allocated or mapped for each TLS record. After encryption, the records are |
| 56 | 66 | * stores in a linked list. |