From b892b1326c5ba6f987c6094fa8c5cd76daf49eed Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Wed, 12 Oct 2011 09:19:43 +0000 Subject: [PATCH] - Prevented compiler warning --- programs/ssl/ssl_fork_server.c | 38 +++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/programs/ssl/ssl_fork_server.c b/programs/ssl/ssl_fork_server.c index 87c5e9c72..e14da8b2c 100644 --- a/programs/ssl/ssl_fork_server.c +++ b/programs/ssl/ssl_fork_server.c @@ -51,6 +51,25 @@ "

PolarSSL Test Server

\r\n" \ "

Successful connection using: %s

\r\n" +#if !defined(POLARSSL_BIGNUM_C) || !defined(POLARSSL_CERTS_C) || \ + !defined(POLARSSL_HAVEGE_C) || !defined(POLARSSL_SSL_TLS_C) || \ + !defined(POLARSSL_SSL_SRV_C) || !defined(POLARSSL_NET_C) || \ + !defined(POLARSSL_RSA_C) +int main( void ) +{ + printf("POLARSSL_BIGNUM_C and/or POLARSSL_CERTS_C and/or POLARSSL_HAVEGE_C " + "and/or POLARSSL_SSL_TLS_C and/or POLARSSL_SSL_SRV_C and/or " + "POLARSSL_NET_C and/or POLARSSL_RSA_C not defined.\n"); + return( 0 ); +} +#elif defined(WIN32) +int main( void ) +{ + printf("WIN32 defined. This application requires fork() and signals " + "to work correctly.\n"); + return( 0 ); +} +#else /* * Computing a "safe" DH-1024 prime can take a very * long time, so a precomputed value is provided below. @@ -173,25 +192,6 @@ static int my_set_session( ssl_context *ssl ) return( 0 ); } -#if !defined(POLARSSL_BIGNUM_C) || !defined(POLARSSL_CERTS_C) || \ - !defined(POLARSSL_HAVEGE_C) || !defined(POLARSSL_SSL_TLS_C) || \ - !defined(POLARSSL_SSL_SRV_C) || !defined(POLARSSL_NET_C) || \ - !defined(POLARSSL_RSA_C) -int main( void ) -{ - printf("POLARSSL_BIGNUM_C and/or POLARSSL_CERTS_C and/or POLARSSL_HAVEGE_C " - "and/or POLARSSL_SSL_TLS_C and/or POLARSSL_SSL_SRV_C and/or " - "POLARSSL_NET_C and/or POLARSSL_RSA_C not defined.\n"); - return( 0 ); -} -#elif defined(WIN32) -int main( void ) -{ - printf("WIN32 defined. This application requires fork() and signals " - "to work correctly.\n"); - return( 0 ); -} -#else int main( void ) { int ret, len, cnt = 0, pid;