]> git.proxmox.com Git - mirror_edk2.git/blame - CryptoPkg/Library/TlsLibNull/TlsInitNull.c
CryptoPkg: Apply uncrustify changes
[mirror_edk2.git] / CryptoPkg / Library / TlsLibNull / TlsInitNull.c
CommitLineData
79cd636f
SB
1/** @file\r
2 SSL/TLS Initialization Null Library Wrapper Implementation.\r
3\r
4Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>\r
5(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
6SPDX-License-Identifier: BSD-2-Clause-Patent\r
7\r
8**/\r
9\r
10#include "InternalTlsLib.h"\r
11\r
12/**\r
13 Initializes the library.\r
14\r
15 This function registers ciphers and digests used directly and indirectly\r
16 by SSL/TLS, and initializes the readable error messages.\r
17 This function must be called before any other action takes places.\r
18\r
19 @retval TRUE The library has been initialized.\r
20 @retval FALSE Failed to initialize the library.\r
21\r
22**/\r
23BOOLEAN\r
24EFIAPI\r
25TlsInitialize (\r
26 VOID\r
27 )\r
28{\r
7c342378 29 ASSERT (FALSE);\r
79cd636f
SB
30 return FALSE;\r
31}\r
32\r
33/**\r
34 Free an allocated SSL_CTX object.\r
35\r
36 @param[in] TlsCtx Pointer to the SSL_CTX object to be released.\r
37\r
38**/\r
39VOID\r
40EFIAPI\r
41TlsCtxFree (\r
7c342378 42 IN VOID *TlsCtx\r
79cd636f
SB
43 )\r
44{\r
7c342378 45 ASSERT (FALSE);\r
79cd636f
SB
46 return;\r
47}\r
48\r
49/**\r
50 Creates a new SSL_CTX object as framework to establish TLS/SSL enabled\r
51 connections.\r
52\r
53 @param[in] MajorVer Major Version of TLS/SSL Protocol.\r
54 @param[in] MinorVer Minor Version of TLS/SSL Protocol.\r
55\r
56 @return Pointer to an allocated SSL_CTX object.\r
57 If the creation failed, TlsCtxNew() returns NULL.\r
58\r
59**/\r
60VOID *\r
61EFIAPI\r
62TlsCtxNew (\r
7c342378
MK
63 IN UINT8 MajorVer,\r
64 IN UINT8 MinorVer\r
79cd636f
SB
65 )\r
66{\r
7c342378 67 ASSERT (FALSE);\r
79cd636f
SB
68 return NULL;\r
69}\r
70\r
71/**\r
72 Free an allocated TLS object.\r
73\r
74 This function removes the TLS object pointed to by Tls and frees up the\r
75 allocated memory. If Tls is NULL, nothing is done.\r
76\r
77 @param[in] Tls Pointer to the TLS object to be freed.\r
78\r
79**/\r
80VOID\r
81EFIAPI\r
82TlsFree (\r
7c342378 83 IN VOID *Tls\r
79cd636f
SB
84 )\r
85{\r
7c342378 86 ASSERT (FALSE);\r
79cd636f
SB
87}\r
88\r
89/**\r
90 Create a new TLS object for a connection.\r
91\r
92 This function creates a new TLS object for a connection. The new object\r
93 inherits the setting of the underlying context TlsCtx: connection method,\r
94 options, verification setting.\r
95\r
96 @param[in] TlsCtx Pointer to the SSL_CTX object.\r
97\r
98 @return Pointer to an allocated SSL object.\r
99 If the creation failed, TlsNew() returns NULL.\r
100\r
101**/\r
102VOID *\r
103EFIAPI\r
104TlsNew (\r
7c342378 105 IN VOID *TlsCtx\r
79cd636f
SB
106 )\r
107{\r
7c342378 108 ASSERT (FALSE);\r
79cd636f
SB
109 return NULL;\r
110}\r