forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/tls: Move TLS protocol elements to a separate header
Kernel TLS consumers will need definitions of various parts of the TLS protocol, but often do not need the function declarations and other infrastructure provided in <net/tls.h>. Break out existing standardized protocol elements into a separate header, and make room for a few more elements in subsequent patches. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Link: https://lore.kernel.org/r/169047931374.5241.7713175865185969309.stgit@oracle-102.nfsv4bat.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
- Loading branch information
1 parent
6eaae19
commit 6a7ecce
Showing
6 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ | ||
/* | ||
* Copyright (c) 2023, Oracle and/or its affiliates. | ||
* | ||
* TLS Protocol definitions | ||
* | ||
* From https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml | ||
*/ | ||
|
||
#ifndef _TLS_PROT_H | ||
#define _TLS_PROT_H | ||
|
||
/* | ||
* TLS Record protocol: ContentType | ||
*/ | ||
enum { | ||
TLS_RECORD_TYPE_CHANGE_CIPHER_SPEC = 20, | ||
TLS_RECORD_TYPE_ALERT = 21, | ||
TLS_RECORD_TYPE_HANDSHAKE = 22, | ||
TLS_RECORD_TYPE_DATA = 23, | ||
TLS_RECORD_TYPE_HEARTBEAT = 24, | ||
TLS_RECORD_TYPE_TLS12_CID = 25, | ||
TLS_RECORD_TYPE_ACK = 26, | ||
}; | ||
|
||
#endif /* _TLS_PROT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters