mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	- Prevented compiler warning
This commit is contained in:
		
							parent
							
								
									5a8352294b
								
							
						
					
					
						commit
						b892b1326c
					
				@ -51,6 +51,25 @@
 | 
				
			|||||||
    "<h2>PolarSSL Test Server</h2>\r\n" \
 | 
					    "<h2>PolarSSL Test Server</h2>\r\n" \
 | 
				
			||||||
    "<p>Successful connection using: %s</p>\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
 | 
					 * Computing a "safe" DH-1024 prime can take a very
 | 
				
			||||||
 * long time, so a precomputed value is provided below.
 | 
					 * long time, so a precomputed value is provided below.
 | 
				
			||||||
@ -173,25 +192,6 @@ static int my_set_session( ssl_context *ssl )
 | 
				
			|||||||
    return( 0 );
 | 
					    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 main( void )
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    int ret, len, cnt = 0, pid;
 | 
					    int ret, len, cnt = 0, pid;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user