Rename net.{c,h} to net_sockets.{c,h}
The library/net.c and its corresponding include/mbedtls/net.h file are
renamed to library/net_sockets.c and include/mbedtls/net_sockets.h
respectively. This is to avoid naming collisions in projects which also
have files with the common name 'net'.
diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt
index 6aeb385..98fe8c9 100644
--- a/library/CMakeLists.txt
+++ b/library/CMakeLists.txt
@@ -71,7 +71,7 @@
set(src_tls
debug.c
- net.c
+ net_sockets.c
ssl_cache.c
ssl_ciphersuites.c
ssl_cli.c
diff --git a/library/Makefile b/library/Makefile
index 00528b3..4b29628 100644
--- a/library/Makefile
+++ b/library/Makefile
@@ -68,9 +68,10 @@
x509_create.o x509_crl.o x509_crt.o \
x509_csr.o x509write_crt.o x509write_csr.o
-OBJS_TLS= debug.o net.o ssl_cache.o \
- ssl_ciphersuites.o ssl_cli.o \
- ssl_cookie.o ssl_srv.o ssl_ticket.o \
+OBJS_TLS= debug.o net_sockets.o \
+ ssl_cache.o ssl_ciphersuites.o \
+ ssl_cli.o ssl_cookie.o \
+ ssl_srv.o ssl_ticket.o \
ssl_tls.o
.SILENT:
diff --git a/library/error.c b/library/error.c
index 4bd15bf..71d4faa 100644
--- a/library/error.c
+++ b/library/error.c
@@ -102,7 +102,7 @@
#endif
#if defined(MBEDTLS_NET_C)
-#include "mbedtls/net.h"
+#include "mbedtls/net_sockets.h"
#endif
#if defined(MBEDTLS_OID_C)
diff --git a/library/net.c b/library/net_sockets.c
similarity index 99%
rename from library/net.c
rename to library/net_sockets.c
index 8b96321..cc06cbf 100644
--- a/library/net.c
+++ b/library/net_sockets.c
@@ -38,7 +38,7 @@
#include <stdlib.h>
#endif
-#include "mbedtls/net.h"
+#include "mbedtls/net_sockets.h"
#include <string.h>