Commit b892b132 authored by Paul Bakker's avatar Paul Bakker
Browse files

- Prevented compiler warning

parent 5a835229
......@@ -51,6 +51,25 @@
"<h2>PolarSSL Test Server</h2>\r\n" \
"<p>Successful connection using: %s</p>\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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment