- is now a native dynamic library (ms coff)
- removed unnecessary files. 
- updated ssl_client1 example

git-svn-id: svn://kolibrios.org@9076 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbocat
2021-07-23 19:43:38 +00:00
parent 351b8e3ae8
commit 7828dfa68a
37 changed files with 2689 additions and 1698 deletions

View File

@@ -44,9 +44,9 @@
#include <string.h>
#include "kosnet/socket.h"
#include "kosnet/network.h"
/*#include <sys/socket.h>
#include <sys/socket.h>
#include <clayer/network.h>
/*
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/time.h>
@@ -68,15 +68,17 @@
*/
static int net_prepare( void )
{
load_network_obj();
//load_network_obj();
return( 0 );
}
/*
* Initialize a context
*/
void mbedtls_net_init( mbedtls_net_context *ctx )
{
//printf("snprintf=%p\n", printf);
ctx->fd = -1;
}
@@ -119,7 +121,7 @@ int mbedtls_net_connect( mbedtls_net_context *ctx, const char *host,
break;
}
closesocket( ctx->fd );
close( ctx->fd );
ret = MBEDTLS_ERR_NET_CONNECT_FAILED;
}
@@ -205,7 +207,7 @@ void mbedtls_net_free( mbedtls_net_context *ctx )
return;
//shutdown( ctx->fd, 2 );
closesocket( ctx->fd );
close( ctx->fd );
ctx->fd = -1;
}