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/scripts/footprint.sh b/scripts/footprint.sh
index 9d3c629..d38e50a 100755
--- a/scripts/footprint.sh
+++ b/scripts/footprint.sh
@@ -85,7 +85,7 @@
echo "(generated by $0)" > "$OUTFILE"
echo "" >> "$OUTFILE"
-log "Footprint of standard configurations (minus net.c, timing.c, fs_io)"
+log "Footprint of standard configurations (minus net_sockets.c, timing.c, fs_io)"
log "for bare-metal ARM Cortex-M3/M4 microcontrollers."
VERSION_H="include/mbedtls/version.h"
diff --git a/scripts/generate_errors.pl b/scripts/generate_errors.pl
index 9605d68..cfcf07c 100755
--- a/scripts/generate_errors.pl
+++ b/scripts/generate_errors.pl
@@ -90,6 +90,9 @@
$include_name =~ tr/A-Z/a-z/;
$include_name = "" if ($include_name eq "asn1");
+ # Fix faulty ones
+ $include_name = "net_sockets" if ($module_name eq "NET");
+
my $found_ll = grep $_ eq $module_name, @low_level_modules;
my $found_hl = grep $_ eq $module_name, @high_level_modules;
if (!$found_ll && !$found_hl)