From b892b1326c5ba6f987c6094fa8c5cd76daf49eed Mon Sep 17 00:00:00 2001 From: Paul Bakker
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;