- First replacement of xyssl by polarssl where needed
diff --git a/programs/ssl/ssl_server.c b/programs/ssl/ssl_server.c
index 565fed2..4b07ef6 100644
--- a/programs/ssl/ssl_server.c
+++ b/programs/ssl/ssl_server.c
@@ -30,11 +30,11 @@
#include <stdlib.h>
#include <stdio.h>
-#include "xyssl/havege.h"
-#include "xyssl/certs.h"
-#include "xyssl/x509.h"
-#include "xyssl/ssl.h"
-#include "xyssl/net.h"
+#include "polarssl/havege.h"
+#include "polarssl/certs.h"
+#include "polarssl/x509.h"
+#include "polarssl/ssl.h"
+#include "polarssl/net.h"
#define HTTP_RESPONSE \
"HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n" \
@@ -293,7 +293,7 @@
while( ( ret = ssl_handshake( &ssl ) ) != 0 )
{
- if( ret != XYSSL_ERR_NET_TRY_AGAIN )
+ if( ret != POLARSSL_ERR_NET_TRY_AGAIN )
{
printf( " failed\n ! ssl_handshake returned %d\n\n", ret );
goto accept;
@@ -314,18 +314,18 @@
memset( buf, 0, sizeof( buf ) );
ret = ssl_read( &ssl, buf, len );
- if( ret == XYSSL_ERR_NET_TRY_AGAIN )
+ if( ret == POLARSSL_ERR_NET_TRY_AGAIN )
continue;
if( ret <= 0 )
{
switch( ret )
{
- case XYSSL_ERR_SSL_PEER_CLOSE_NOTIFY:
+ case POLARSSL_ERR_SSL_PEER_CLOSE_NOTIFY:
printf( " connection was closed gracefully\n" );
break;
- case XYSSL_ERR_NET_CONN_RESET:
+ case POLARSSL_ERR_NET_CONN_RESET:
printf( " connection was reset by peer\n" );
break;
@@ -353,13 +353,13 @@
while( ( ret = ssl_write( &ssl, buf, len ) ) <= 0 )
{
- if( ret == XYSSL_ERR_NET_CONN_RESET )
+ if( ret == POLARSSL_ERR_NET_CONN_RESET )
{
printf( " failed\n ! peer closed the connection\n\n" );
goto accept;
}
- if( ret != XYSSL_ERR_NET_TRY_AGAIN )
+ if( ret != POLARSSL_ERR_NET_TRY_AGAIN )
{
printf( " failed\n ! ssl_write returned %d\n\n", ret );
goto exit;