VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/CryptoPkg/Library/OpensslLib/SslNull.c@ 99404

Last change on this file since 99404 was 99404, checked in by vboxsync, 20 months ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 4.4 KB
Line 
1/** @file
2 Null implementation of SSL functions called by BaseCryptLib.
3
4 Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7**/
8
9#include <Base.h>
10#include <Library/DebugLib.h>
11#include <openssl/ssl.h>
12#include <openssl/bio.h>
13#include <openssl/err.h>
14
15int
16OPENSSL_init_ssl (
17 uint64_t opts,
18 const OPENSSL_INIT_SETTINGS *settings
19 )
20{
21 ASSERT (FALSE);
22 return 0;
23}
24
25__owur uint32_t
26SSL_CIPHER_get_id (
27 const SSL_CIPHER *c
28 )
29{
30 ASSERT (FALSE);
31 return 0;
32}
33
34__owur int
35SSL_COMP_add_compression_method (
36 int id,
37 COMP_METHOD *cm
38 )
39{
40 ASSERT (FALSE);
41 return 0;
42}
43
44long
45SSL_CTX_ctrl (
46 SSL_CTX *ctx,
47 int cmd,
48 long larg,
49 void *parg
50 )
51{
52 ASSERT (FALSE);
53 return 0;
54}
55
56void
57SSL_CTX_free (
58 SSL_CTX *x
59 )
60{
61 ASSERT (FALSE);
62 return;
63}
64
65__owur X509_STORE *
66SSL_CTX_get_cert_store (
67 const SSL_CTX *x
68 )
69{
70 ASSERT (FALSE);
71 return NULL;
72}
73
74__owur SSL_CTX *
75SSL_CTX_new (
76 const SSL_METHOD *meth
77 )
78{
79 ASSERT (FALSE);
80 return NULL;
81}
82
83unsigned long
84SSL_CTX_set_options (
85 SSL_CTX *ctx,
86 unsigned long op
87 )
88{
89 ASSERT (FALSE);
90 return 0;
91}
92
93const unsigned char *
94SSL_SESSION_get_id (
95 const SSL_SESSION *s,
96 unsigned int *len
97 )
98{
99 ASSERT (FALSE);
100 return 0;
101}
102
103__owur size_t
104SSL_SESSION_get_master_key (
105 const SSL_SESSION *sess,
106 unsigned char *out,
107 size_t outlen
108 )
109{
110 ASSERT (FALSE);
111 return 0;
112}
113
114__owur int
115SSL_SESSION_set1_id (
116 SSL_SESSION *s,
117 const unsigned char *sid,
118 unsigned int sid_len
119 )
120{
121 ASSERT (FALSE);
122 return 0;
123}
124
125long
126SSL_ctrl (
127 SSL *ssl,
128 int cmd,
129 long larg,
130 void *parg
131 )
132{
133 ASSERT (FALSE);
134 return 0;
135}
136
137__owur int
138SSL_do_handshake (
139 SSL *s
140 )
141{
142 ASSERT (FALSE);
143 return 0;
144}
145
146void
147SSL_free (
148 SSL *ssl
149 )
150{
151 ASSERT (FALSE);
152 return;
153}
154
155__owur X509 *
156SSL_get_certificate (
157 const SSL *ssl
158 )
159{
160 ASSERT (FALSE);
161 return NULL;
162}
163
164__owur size_t
165SSL_get_client_random (
166 const SSL *ssl,
167 unsigned char *out,
168 size_t outlen
169 )
170{
171 ASSERT (FALSE);
172 return 0;
173}
174
175__owur const SSL_CIPHER *
176SSL_get_current_cipher (
177 const SSL *s
178 )
179{
180 ASSERT (FALSE);
181 return NULL;
182}
183
184__owur int
185SSL_get_error (
186 const SSL *s,
187 int ret_code
188 )
189{
190 ASSERT (FALSE);
191 return 0;
192}
193
194__owur size_t
195SSL_get_server_random (
196 const SSL *ssl,
197 unsigned char *out,
198 size_t outlen
199 )
200{
201 ASSERT (FALSE);
202 return 0;
203}
204
205__owur SSL_SESSION *
206SSL_get_session (
207 const SSL *ssl
208 )
209{
210 ASSERT (FALSE);
211 return NULL;
212}
213
214__owur SSL_CTX *
215SSL_get_SSL_CTX (
216 const SSL *ssl
217 )
218{
219 ASSERT (FALSE);
220 return NULL;
221}
222
223__owur OSSL_HANDSHAKE_STATE
224SSL_get_state (
225 const SSL *ssl
226 )
227{
228 ASSERT (FALSE);
229 return 0;
230}
231
232__owur int
233SSL_get_verify_mode (
234 const SSL *s
235 )
236{
237 ASSERT (FALSE);
238 return 0;
239}
240
241__owur X509_VERIFY_PARAM *
242SSL_get0_param (
243 SSL *ssl
244 )
245{
246 ASSERT (FALSE);
247 return NULL;
248}
249
250int
251SSL_is_init_finished (
252 const SSL *s
253 )
254{
255 ASSERT (FALSE);
256 return 0;
257}
258
259__owur int
260SSL_is_server (
261 const SSL *s
262 )
263{
264 ASSERT (FALSE);
265 return 0;
266}
267
268SSL *
269SSL_new (
270 SSL_CTX *ctx
271 )
272{
273 ASSERT (FALSE);
274 return NULL;
275}
276
277__owur int
278SSL_read (
279 SSL *ssl,
280 void *buf,
281 int num
282 )
283{
284 ASSERT (FALSE);
285 return 0;
286}
287
288void
289SSL_set_bio (
290 SSL *s,
291 BIO *rbio,
292 BIO *wbio
293 )
294{
295 ASSERT (FALSE);
296 return;
297}
298
299__owur int
300SSL_set_cipher_list (
301 SSL *s,
302 const char *str
303 )
304{
305 ASSERT (FALSE);
306 return 0;
307}
308
309void
310SSL_set_connect_state (
311 SSL *s
312 )
313{
314 ASSERT (FALSE);
315 return;
316}
317
318void
319SSL_set_hostflags (
320 SSL *s,
321 unsigned int flags
322 )
323{
324 ASSERT (FALSE);
325 return;
326}
327
328void
329SSL_set_info_callback (
330 SSL *ssl,
331 void ( *cb )(const SSL *ssl, int type, int val)
332 )
333{
334 ASSERT (FALSE);
335 return;
336}
337
338void
339SSL_set_security_level (
340 SSL *s,
341 int level
342 )
343{
344 ASSERT (FALSE);
345 return;
346}
347
348void
349SSL_set_verify (
350 SSL *s,
351 int mode,
352 SSL_verify_cb callback
353 )
354{
355 ASSERT (FALSE);
356 return;
357}
358
359int
360SSL_shutdown (
361 SSL *s
362 )
363{
364 ASSERT (FALSE);
365 return 0;
366}
367
368__owur int
369SSL_use_certificate (
370 SSL *ssl,
371 X509 *x
372 )
373{
374 ASSERT (FALSE);
375 return 0;
376}
377
378__owur int
379SSL_version (
380 const SSL *ssl
381 )
382{
383 ASSERT (FALSE);
384 return 0;
385}
386
387__owur int
388SSL_write (
389 SSL *ssl,
390 const void *buf,
391 int num
392 )
393{
394 ASSERT (FALSE);
395 return 0;
396}
397
398__owur const SSL_METHOD *
399TLS_client_method (
400 void
401 )
402{
403 ASSERT (FALSE);
404 return NULL;
405}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette