mbed TLS upgraded to 2.6.0

Fork of mbedtls by Mark Radbourne

Committer:
Jasper Wallace
Date:
Fri Sep 29 18:41:59 2017 +0100
Revision:
1:9ebc941037d5
Update to mbedtls 2.4.2, security fixes

Changes to mbedtls sources made:

in include/mbedtls/config.h comment out:

#define MBEDTLS_FS_IO
#define MBEDTLS_NET_C
#define MBEDTLS_TIMING_C

uncomment:

#define MBEDTLS_NO_PLATFORM_ENTROPY

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jasper Wallace 1:9ebc941037d5 1 #!/bin/bash
Jasper Wallace 1:9ebc941037d5 2
Jasper Wallace 1:9ebc941037d5 3 # Temporarily (de)ignore Makefiles generated by CMake to allow easier
Jasper Wallace 1:9ebc941037d5 4 # git development
Jasper Wallace 1:9ebc941037d5 5
Jasper Wallace 1:9ebc941037d5 6 IGNORE=""
Jasper Wallace 1:9ebc941037d5 7
Jasper Wallace 1:9ebc941037d5 8 # Parse arguments
Jasper Wallace 1:9ebc941037d5 9 #
Jasper Wallace 1:9ebc941037d5 10 until [ -z "$1" ]
Jasper Wallace 1:9ebc941037d5 11 do
Jasper Wallace 1:9ebc941037d5 12 case "$1" in
Jasper Wallace 1:9ebc941037d5 13 -u|--undo)
Jasper Wallace 1:9ebc941037d5 14 IGNORE="0"
Jasper Wallace 1:9ebc941037d5 15 ;;
Jasper Wallace 1:9ebc941037d5 16 -v|--verbose)
Jasper Wallace 1:9ebc941037d5 17 # Be verbose
Jasper Wallace 1:9ebc941037d5 18 VERBOSE="1"
Jasper Wallace 1:9ebc941037d5 19 ;;
Jasper Wallace 1:9ebc941037d5 20 -h|--help)
Jasper Wallace 1:9ebc941037d5 21 # print help
Jasper Wallace 1:9ebc941037d5 22 echo "Usage: $0"
Jasper Wallace 1:9ebc941037d5 23 echo -e " -h|--help\t\tPrint this help."
Jasper Wallace 1:9ebc941037d5 24 echo -e " -u|--undo\t\tRemove ignores and continue tracking."
Jasper Wallace 1:9ebc941037d5 25 echo -e " -v|--verbose\t\tVerbose."
Jasper Wallace 1:9ebc941037d5 26 exit 1
Jasper Wallace 1:9ebc941037d5 27 ;;
Jasper Wallace 1:9ebc941037d5 28 *)
Jasper Wallace 1:9ebc941037d5 29 # print error
Jasper Wallace 1:9ebc941037d5 30 echo "Unknown argument: '$1'"
Jasper Wallace 1:9ebc941037d5 31 exit 1
Jasper Wallace 1:9ebc941037d5 32 ;;
Jasper Wallace 1:9ebc941037d5 33 esac
Jasper Wallace 1:9ebc941037d5 34 shift
Jasper Wallace 1:9ebc941037d5 35 done
Jasper Wallace 1:9ebc941037d5 36
Jasper Wallace 1:9ebc941037d5 37 if [ "X" = "X$IGNORE" ];
Jasper Wallace 1:9ebc941037d5 38 then
Jasper Wallace 1:9ebc941037d5 39 [ $VERBOSE ] && echo "Ignoring Makefiles"
Jasper Wallace 1:9ebc941037d5 40 git update-index --assume-unchanged Makefile library/Makefile programs/Makefile tests/Makefile
Jasper Wallace 1:9ebc941037d5 41 else
Jasper Wallace 1:9ebc941037d5 42 [ $VERBOSE ] && echo "Tracking Makefiles"
Jasper Wallace 1:9ebc941037d5 43 git update-index --no-assume-unchanged Makefile library/Makefile programs/Makefile tests/Makefile
Jasper Wallace 1:9ebc941037d5 44 fi