blob: ee2e1b8070732fa912250d040a447a43b8799439 [file] [log] [blame]
Paul Bakker896ac222011-05-20 12:33:05 +00001/*
Paul Bakkercb79ae0b2011-05-20 12:44:16 +00002 * SSL server demonstration program using fork() for handling multiple clients
Paul Bakker896ac222011-05-20 12:33:05 +00003 *
Manuel Pégourié-Gonnarda658a402015-01-23 09:45:19 +00004 * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved
Paul Bakker896ac222011-05-20 12:33:05 +00005 *
Manuel Pégourié-Gonnard860b5162015-01-28 17:12:07 +00006 * This file is part of mbed TLS (https://polarssl.org)
Paul Bakker896ac222011-05-20 12:33:05 +00007 *
Paul Bakker896ac222011-05-20 12:33:05 +00008 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 */
22
Manuel Pégourié-Gonnardcef4ad22014-04-29 12:39:06 +020023#if !defined(POLARSSL_CONFIG_FILE)
Manuel Pégourié-Gonnardabd6e022013-09-20 13:30:43 +020024#include "polarssl/config.h"
Manuel Pégourié-Gonnardcef4ad22014-04-29 12:39:06 +020025#else
26#include POLARSSL_CONFIG_FILE
27#endif
Paul Bakker896ac222011-05-20 12:33:05 +000028
Rich Evansf90016a2015-01-19 14:26:37 +000029#if defined(POLARSSL_PLATFORM_C)
30#include "polarssl/platform.h"
31#else
32#define polarssl_printf printf
33#define polarssl_fprintf fprintf
Rich Evansf90016a2015-01-19 14:26:37 +000034#endif
35
Paul Bakkercce9d772011-11-18 14:26:47 +000036#if defined(_WIN32)
Paul Bakker896ac222011-05-20 12:33:05 +000037#include <windows.h>
38#endif
39
40#include <string.h>
41#include <stdlib.h>
42#include <stdio.h>
Paul Bakker896ac222011-05-20 12:33:05 +000043#include <signal.h>
44
Paul Bakkerfdda7852013-11-30 15:15:31 +010045#if !defined(_MSC_VER) || defined(EFIX64) || defined(EFI32)
46#include <unistd.h>
47#endif
48
Paul Bakker508ad5a2011-12-04 17:09:26 +000049#include "polarssl/entropy.h"
50#include "polarssl/ctr_drbg.h"
Paul Bakker896ac222011-05-20 12:33:05 +000051#include "polarssl/certs.h"
52#include "polarssl/x509.h"
53#include "polarssl/ssl.h"
54#include "polarssl/net.h"
55#include "polarssl/timing.h"
56
57#define HTTP_RESPONSE \
58 "HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n" \
Manuel Pégourié-Gonnard91699212015-01-22 16:26:39 +000059 "<h2>mbed TLS Test Server</h2>\r\n" \
Paul Bakker896ac222011-05-20 12:33:05 +000060 "<p>Successful connection using: %s</p>\r\n"
61
Paul Bakkerb892b132011-10-12 09:19:43 +000062#if !defined(POLARSSL_BIGNUM_C) || !defined(POLARSSL_CERTS_C) || \
Paul Bakker508ad5a2011-12-04 17:09:26 +000063 !defined(POLARSSL_ENTROPY_C) || !defined(POLARSSL_SSL_TLS_C) || \
Paul Bakkerb892b132011-10-12 09:19:43 +000064 !defined(POLARSSL_SSL_SRV_C) || !defined(POLARSSL_NET_C) || \
Paul Bakkered27a042013-04-18 22:46:23 +020065 !defined(POLARSSL_RSA_C) || !defined(POLARSSL_CTR_DRBG_C) || \
Paul Bakker36713e82013-09-17 13:25:29 +020066 !defined(POLARSSL_X509_CRT_PARSE_C) || !defined(POLARSSL_TIMING_C)
Paul Bakkercce9d772011-11-18 14:26:47 +000067int main( int argc, char *argv[] )
Paul Bakkerb892b132011-10-12 09:19:43 +000068{
Paul Bakkercce9d772011-11-18 14:26:47 +000069 ((void) argc);
70 ((void) argv);
71
Rich Evansf90016a2015-01-19 14:26:37 +000072 polarssl_printf("POLARSSL_BIGNUM_C and/or POLARSSL_CERTS_C and/or POLARSSL_ENTROPY_C "
Paul Bakkerb892b132011-10-12 09:19:43 +000073 "and/or POLARSSL_SSL_TLS_C and/or POLARSSL_SSL_SRV_C and/or "
Paul Bakker508ad5a2011-12-04 17:09:26 +000074 "POLARSSL_NET_C and/or POLARSSL_RSA_C and/or "
Paul Bakker36713e82013-09-17 13:25:29 +020075 "POLARSSL_CTR_DRBG_C and/or POLARSSL_X509_CRT_PARSE_C and/or "
Paul Bakkerfa9b1002013-07-03 15:31:03 +020076 "POLARSSL_TIMING_C not defined.\n");
Paul Bakkerb892b132011-10-12 09:19:43 +000077 return( 0 );
78}
Paul Bakkercce9d772011-11-18 14:26:47 +000079#elif defined(_WIN32)
80int main( int argc, char *argv[] )
Paul Bakkerb892b132011-10-12 09:19:43 +000081{
Paul Bakkercce9d772011-11-18 14:26:47 +000082 ((void) argc);
83 ((void) argv);
84
Rich Evansf90016a2015-01-19 14:26:37 +000085 polarssl_printf("_WIN32 defined. This application requires fork() and signals "
Paul Bakkerb892b132011-10-12 09:19:43 +000086 "to work correctly.\n");
87 return( 0 );
88}
89#else
Paul Bakker896ac222011-05-20 12:33:05 +000090
91#define DEBUG_LEVEL 0
92
Paul Bakker3c5ef712013-06-25 16:37:45 +020093static void my_debug( void *ctx, int level, const char *str )
Paul Bakker896ac222011-05-20 12:33:05 +000094{
95 if( level < DEBUG_LEVEL )
96 {
Rich Evansf90016a2015-01-19 14:26:37 +000097 polarssl_fprintf( (FILE *) ctx, "%s", str );
Paul Bakker896ac222011-05-20 12:33:05 +000098 fflush( (FILE *) ctx );
99 }
100}
101
Paul Bakkercce9d772011-11-18 14:26:47 +0000102int main( int argc, char *argv[] )
Paul Bakker896ac222011-05-20 12:33:05 +0000103{
104 int ret, len, cnt = 0, pid;
105 int listen_fd;
Manuel Pégourié-Gonnard68821da2013-09-16 12:34:33 +0200106 int client_fd = -1;
Paul Bakker896ac222011-05-20 12:33:05 +0000107 unsigned char buf[1024];
Paul Bakkeref3f8c72013-06-24 13:01:08 +0200108 const char *pers = "ssl_fork_server";
Paul Bakker896ac222011-05-20 12:33:05 +0000109
Paul Bakker508ad5a2011-12-04 17:09:26 +0000110 entropy_context entropy;
111 ctr_drbg_context ctr_drbg;
Paul Bakker896ac222011-05-20 12:33:05 +0000112 ssl_context ssl;
Paul Bakkerc559c7a2013-09-18 14:13:26 +0200113 x509_crt srvcert;
Manuel Pégourié-Gonnardac755232013-08-19 14:10:16 +0200114 pk_context pkey;
Paul Bakker896ac222011-05-20 12:33:05 +0000115
Paul Bakkercce9d772011-11-18 14:26:47 +0000116 ((void) argc);
117 ((void) argv);
118
Paul Bakker0c226102014-04-17 16:02:36 +0200119 memset( &ssl, 0, sizeof(ssl_context) );
120
121 entropy_init( &entropy );
122 pk_init( &pkey );
123 x509_crt_init( &srvcert );
124
Paul Bakker896ac222011-05-20 12:33:05 +0000125 signal( SIGCHLD, SIG_IGN );
126
127 /*
Paul Bakker508ad5a2011-12-04 17:09:26 +0000128 * 0. Initial seeding of the RNG
129 */
Rich Evansf90016a2015-01-19 14:26:37 +0000130 polarssl_printf( "\n . Initial seeding of the random generator..." );
Paul Bakker508ad5a2011-12-04 17:09:26 +0000131 fflush( stdout );
132
Paul Bakker508ad5a2011-12-04 17:09:26 +0000133 if( ( ret = ctr_drbg_init( &ctr_drbg, entropy_func, &entropy,
Paul Bakkeref3f8c72013-06-24 13:01:08 +0200134 (const unsigned char *) pers,
135 strlen( pers ) ) ) != 0 )
Paul Bakker508ad5a2011-12-04 17:09:26 +0000136 {
Rich Evansf90016a2015-01-19 14:26:37 +0000137 polarssl_printf( " failed\n ! ctr_drbg_init returned %d\n", ret );
Paul Bakker508ad5a2011-12-04 17:09:26 +0000138 goto exit;
139 }
140
Rich Evansf90016a2015-01-19 14:26:37 +0000141 polarssl_printf( " ok\n" );
Paul Bakker508ad5a2011-12-04 17:09:26 +0000142
143 /*
Paul Bakker896ac222011-05-20 12:33:05 +0000144 * 1. Load the certificates and private RSA key
145 */
Rich Evansf90016a2015-01-19 14:26:37 +0000146 polarssl_printf( " . Loading the server cert. and key..." );
Paul Bakker896ac222011-05-20 12:33:05 +0000147 fflush( stdout );
148
Paul Bakker896ac222011-05-20 12:33:05 +0000149 /*
150 * This demonstration program uses embedded test certificates.
Paul Bakkerddf26b42013-09-18 13:46:23 +0200151 * Instead, you may want to use x509_crt_parse_file() to read the
152 * server and CA certificates, as well as pk_parse_keyfile().
Paul Bakker896ac222011-05-20 12:33:05 +0000153 */
Paul Bakkerddf26b42013-09-18 13:46:23 +0200154 ret = x509_crt_parse( &srvcert, (const unsigned char *) test_srv_crt,
155 strlen( test_srv_crt ) );
Paul Bakker896ac222011-05-20 12:33:05 +0000156 if( ret != 0 )
157 {
Rich Evansf90016a2015-01-19 14:26:37 +0000158 polarssl_printf( " failed\n ! x509_crt_parse returned %d\n\n", ret );
Paul Bakker896ac222011-05-20 12:33:05 +0000159 goto exit;
160 }
161
Manuel Pégourié-Gonnard641de712013-09-25 13:23:33 +0200162 ret = x509_crt_parse( &srvcert, (const unsigned char *) test_ca_list,
163 strlen( test_ca_list ) );
Paul Bakker896ac222011-05-20 12:33:05 +0000164 if( ret != 0 )
165 {
Rich Evansf90016a2015-01-19 14:26:37 +0000166 polarssl_printf( " failed\n ! x509_crt_parse returned %d\n\n", ret );
Paul Bakker896ac222011-05-20 12:33:05 +0000167 goto exit;
168 }
169
Paul Bakker1a7550a2013-09-15 13:01:22 +0200170 ret = pk_parse_key( &pkey, (const unsigned char *) test_srv_key,
Paul Bakker896ac222011-05-20 12:33:05 +0000171 strlen( test_srv_key ), NULL, 0 );
172 if( ret != 0 )
173 {
Rich Evansf90016a2015-01-19 14:26:37 +0000174 polarssl_printf( " failed\n ! pk_parse_key returned %d\n\n", ret );
Paul Bakker896ac222011-05-20 12:33:05 +0000175 goto exit;
176 }
177
Rich Evansf90016a2015-01-19 14:26:37 +0000178 polarssl_printf( " ok\n" );
Paul Bakker896ac222011-05-20 12:33:05 +0000179
180 /*
181 * 2. Setup the listening TCP socket
182 */
Rich Evansf90016a2015-01-19 14:26:37 +0000183 polarssl_printf( " . Bind on https://localhost:4433/ ..." );
Paul Bakker896ac222011-05-20 12:33:05 +0000184 fflush( stdout );
185
186 if( ( ret = net_bind( &listen_fd, NULL, 4433 ) ) != 0 )
187 {
Rich Evansf90016a2015-01-19 14:26:37 +0000188 polarssl_printf( " failed\n ! net_bind returned %d\n\n", ret );
Paul Bakker896ac222011-05-20 12:33:05 +0000189 goto exit;
190 }
191
Rich Evansf90016a2015-01-19 14:26:37 +0000192 polarssl_printf( " ok\n" );
Paul Bakker896ac222011-05-20 12:33:05 +0000193
194 while( 1 )
195 {
196 /*
197 * 3. Wait until a client connects
198 */
199 client_fd = -1;
200 memset( &ssl, 0, sizeof( ssl ) );
201
Rich Evansf90016a2015-01-19 14:26:37 +0000202 polarssl_printf( " . Waiting for a remote connection ..." );
Paul Bakker896ac222011-05-20 12:33:05 +0000203 fflush( stdout );
204
205 if( ( ret = net_accept( listen_fd, &client_fd, NULL ) ) != 0 )
206 {
Rich Evansf90016a2015-01-19 14:26:37 +0000207 polarssl_printf( " failed\n ! net_accept returned %d\n\n", ret );
Paul Bakker896ac222011-05-20 12:33:05 +0000208 goto exit;
209 }
210
Rich Evansf90016a2015-01-19 14:26:37 +0000211 polarssl_printf( " ok\n" );
Paul Bakker896ac222011-05-20 12:33:05 +0000212
213 /*
214 * 3.5. Forking server thread
215 */
216
217 pid = fork();
218
Rich Evansf90016a2015-01-19 14:26:37 +0000219 polarssl_printf( " . Forking to handle connection ..." );
Paul Bakker896ac222011-05-20 12:33:05 +0000220 fflush( stdout );
221
222 if( pid < 0 )
223 {
Rich Evansf90016a2015-01-19 14:26:37 +0000224 polarssl_printf(" failed\n ! fork returned %d\n\n", pid );
Paul Bakker896ac222011-05-20 12:33:05 +0000225 goto exit;
226 }
227
Rich Evansf90016a2015-01-19 14:26:37 +0000228 polarssl_printf( " ok\n" );
Paul Bakker896ac222011-05-20 12:33:05 +0000229
230 if( pid != 0 )
231 {
Paul Bakker508ad5a2011-12-04 17:09:26 +0000232 if( ( ret = ctr_drbg_reseed( &ctr_drbg,
Paul Bakkeref3f8c72013-06-24 13:01:08 +0200233 (const unsigned char *) "parent",
234 6 ) ) != 0 )
Paul Bakker508ad5a2011-12-04 17:09:26 +0000235 {
Rich Evansf90016a2015-01-19 14:26:37 +0000236 polarssl_printf( " failed\n ! ctr_drbg_reseed returned %d\n", ret );
Paul Bakker508ad5a2011-12-04 17:09:26 +0000237 goto exit;
238 }
239
Paul Bakker896ac222011-05-20 12:33:05 +0000240 close( client_fd );
241 continue;
242 }
243
244 close( listen_fd );
245
246 /*
247 * 4. Setup stuff
248 */
Rich Evansf90016a2015-01-19 14:26:37 +0000249 polarssl_printf( " . Setting up the SSL data...." );
Paul Bakker896ac222011-05-20 12:33:05 +0000250 fflush( stdout );
251
Paul Bakker508ad5a2011-12-04 17:09:26 +0000252 if( ( ret = ctr_drbg_reseed( &ctr_drbg,
Paul Bakkeref3f8c72013-06-24 13:01:08 +0200253 (const unsigned char *) "child",
254 5 ) ) != 0 )
Paul Bakker508ad5a2011-12-04 17:09:26 +0000255 {
Rich Evansf90016a2015-01-19 14:26:37 +0000256 polarssl_printf( " failed\n ! ctr_drbg_reseed returned %d\n", ret );
Paul Bakker508ad5a2011-12-04 17:09:26 +0000257 goto exit;
258 }
Paul Bakker0c226102014-04-17 16:02:36 +0200259
Paul Bakker896ac222011-05-20 12:33:05 +0000260 if( ( ret = ssl_init( &ssl ) ) != 0 )
261 {
Rich Evansf90016a2015-01-19 14:26:37 +0000262 polarssl_printf( " failed\n ! ssl_init returned %d\n\n", ret );
Paul Bakker896ac222011-05-20 12:33:05 +0000263 goto exit;
264 }
265
Rich Evansf90016a2015-01-19 14:26:37 +0000266 polarssl_printf( " ok\n" );
Paul Bakker896ac222011-05-20 12:33:05 +0000267
268 ssl_set_endpoint( &ssl, SSL_IS_SERVER );
269 ssl_set_authmode( &ssl, SSL_VERIFY_NONE );
270
Manuel Pégourié-Gonnard448ea502015-01-12 11:40:14 +0100271 /* SSLv3 is deprecated, set minimum to TLS 1.0 */
272 ssl_set_min_version( &ssl, SSL_MAJOR_VERSION_3,
273 SSL_MINOR_VERSION_1 );
Manuel Pégourié-Gonnardfa065812015-01-12 14:05:33 +0100274 /* RC4 is deprecated, disable it */
275 ssl_set_arc4_support( &ssl, SSL_ARC4_DISABLED );
Manuel Pégourié-Gonnard448ea502015-01-12 11:40:14 +0100276
Paul Bakker508ad5a2011-12-04 17:09:26 +0000277 ssl_set_rng( &ssl, ctr_drbg_random, &ctr_drbg );
Paul Bakker896ac222011-05-20 12:33:05 +0000278 ssl_set_dbg( &ssl, my_debug, stdout );
279 ssl_set_bio( &ssl, net_recv, &client_fd,
280 net_send, &client_fd );
Paul Bakker896ac222011-05-20 12:33:05 +0000281
Paul Bakker896ac222011-05-20 12:33:05 +0000282 ssl_set_ca_chain( &ssl, srvcert.next, NULL, NULL );
Manuel Pégourié-Gonnardc5fd3912014-07-08 14:05:52 +0200283 if( ( ret = ssl_set_own_cert( &ssl, &srvcert, &pkey ) ) != 0 )
284 {
Rich Evansf90016a2015-01-19 14:26:37 +0000285 polarssl_printf( " failed\n ! ssl_set_own_cert returned %d\n\n", ret );
Manuel Pégourié-Gonnardc5fd3912014-07-08 14:05:52 +0200286 goto exit;
287 }
Paul Bakker896ac222011-05-20 12:33:05 +0000288
289 /*
290 * 5. Handshake
291 */
Rich Evansf90016a2015-01-19 14:26:37 +0000292 polarssl_printf( " . Performing the SSL/TLS handshake..." );
Paul Bakker896ac222011-05-20 12:33:05 +0000293 fflush( stdout );
294
295 while( ( ret = ssl_handshake( &ssl ) ) != 0 )
296 {
297 if( ret != POLARSSL_ERR_NET_WANT_READ && ret != POLARSSL_ERR_NET_WANT_WRITE )
298 {
Rich Evansf90016a2015-01-19 14:26:37 +0000299 polarssl_printf( " failed\n ! ssl_handshake returned %d\n\n", ret );
Paul Bakker896ac222011-05-20 12:33:05 +0000300 goto exit;
301 }
302 }
303
Rich Evansf90016a2015-01-19 14:26:37 +0000304 polarssl_printf( " ok\n" );
Paul Bakker896ac222011-05-20 12:33:05 +0000305
306 /*
307 * 6. Read the HTTP Request
308 */
Rich Evansf90016a2015-01-19 14:26:37 +0000309 polarssl_printf( " < Read from client:" );
Paul Bakker896ac222011-05-20 12:33:05 +0000310 fflush( stdout );
311
312 do
313 {
314 len = sizeof( buf ) - 1;
315 memset( buf, 0, sizeof( buf ) );
316 ret = ssl_read( &ssl, buf, len );
317
318 if( ret == POLARSSL_ERR_NET_WANT_READ || ret == POLARSSL_ERR_NET_WANT_WRITE )
319 continue;
320
321 if( ret <= 0 )
322 {
323 switch( ret )
324 {
325 case POLARSSL_ERR_SSL_PEER_CLOSE_NOTIFY:
Rich Evansf90016a2015-01-19 14:26:37 +0000326 polarssl_printf( " connection was closed gracefully\n" );
Paul Bakker896ac222011-05-20 12:33:05 +0000327 break;
328
329 case POLARSSL_ERR_NET_CONN_RESET:
Rich Evansf90016a2015-01-19 14:26:37 +0000330 polarssl_printf( " connection was reset by peer\n" );
Paul Bakker896ac222011-05-20 12:33:05 +0000331 break;
332
333 default:
Rich Evansf90016a2015-01-19 14:26:37 +0000334 polarssl_printf( " ssl_read returned %d\n", ret );
Paul Bakker896ac222011-05-20 12:33:05 +0000335 break;
336 }
337
338 break;
339 }
340
341 len = ret;
Rich Evansf90016a2015-01-19 14:26:37 +0000342 polarssl_printf( " %d bytes read\n\n%s", len, (char *) buf );
Paul Bakker896ac222011-05-20 12:33:05 +0000343 }
344 while( 0 );
345
346 /*
347 * 7. Write the 200 Response
348 */
Rich Evansf90016a2015-01-19 14:26:37 +0000349 polarssl_printf( " > Write to client:" );
Paul Bakker896ac222011-05-20 12:33:05 +0000350 fflush( stdout );
351
352 len = sprintf( (char *) buf, HTTP_RESPONSE,
353 ssl_get_ciphersuite( &ssl ) );
354
Paul Bakker030decd2014-04-17 16:03:23 +0200355 while( cnt++ < 100 )
Paul Bakker896ac222011-05-20 12:33:05 +0000356 {
357 while( ( ret = ssl_write( &ssl, buf, len ) ) <= 0 )
358 {
359 if( ret == POLARSSL_ERR_NET_CONN_RESET )
360 {
Rich Evansf90016a2015-01-19 14:26:37 +0000361 polarssl_printf( " failed\n ! peer closed the connection\n\n" );
Paul Bakker896ac222011-05-20 12:33:05 +0000362 goto exit;
363 }
364
365 if( ret != POLARSSL_ERR_NET_WANT_READ && ret != POLARSSL_ERR_NET_WANT_WRITE )
366 {
Rich Evansf90016a2015-01-19 14:26:37 +0000367 polarssl_printf( " failed\n ! ssl_write returned %d\n\n", ret );
Paul Bakker896ac222011-05-20 12:33:05 +0000368 goto exit;
369 }
370 }
371 len = ret;
Rich Evansf90016a2015-01-19 14:26:37 +0000372 polarssl_printf( " %d bytes written\n\n%s\n", len, (char *) buf );
Paul Bakker896ac222011-05-20 12:33:05 +0000373
374 m_sleep( 1000 );
375 }
376
377 ssl_close_notify( &ssl );
378 goto exit;
379 }
380
381exit:
382
Paul Bakker0c226102014-04-17 16:02:36 +0200383 if( client_fd != -1 )
384 net_close( client_fd );
385
Paul Bakker36713e82013-09-17 13:25:29 +0200386 x509_crt_free( &srvcert );
Manuel Pégourié-Gonnardac755232013-08-19 14:10:16 +0200387 pk_free( &pkey );
Paul Bakker896ac222011-05-20 12:33:05 +0000388 ssl_free( &ssl );
Paul Bakkera317a982014-06-18 16:44:11 +0200389 ctr_drbg_free( &ctr_drbg );
Paul Bakker1ffefac2013-09-28 15:23:03 +0200390 entropy_free( &entropy );
Paul Bakker896ac222011-05-20 12:33:05 +0000391
Paul Bakkercce9d772011-11-18 14:26:47 +0000392#if defined(_WIN32)
Rich Evansf90016a2015-01-19 14:26:37 +0000393 polarssl_printf( " Press Enter to exit this program.\n" );
Paul Bakker896ac222011-05-20 12:33:05 +0000394 fflush( stdout ); getchar();
395#endif
396
397 return( ret );
398}
Paul Bakker508ad5a2011-12-04 17:09:26 +0000399#endif /* POLARSSL_BIGNUM_C && POLARSSL_CERTS_C && POLARSSL_ENTROPY_C &&
Paul Bakker5690efc2011-05-26 13:16:06 +0000400 POLARSSL_SSL_TLS_C && POLARSSL_SSL_SRV_C && POLARSSL_NET_C &&
Paul Bakker508ad5a2011-12-04 17:09:26 +0000401 POLARSSL_RSA_C && POLARSSL_CTR_DRBG_C */