mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 08:15:44 +01:00
Add tests for the ssl_context_info program
Signed-off-by: Piotr Nowicki <piotr.nowicki@arm.com>
This commit is contained in:
parent
97dcb1c8f2
commit
9978e6ee14
431
tests/context-info.sh
Executable file
431
tests/context-info.sh
Executable file
@ -0,0 +1,431 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# context-info.sh
|
||||||
|
#
|
||||||
|
# This file is part of mbed TLS (https://tls.mbed.org)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2012-2020, ARM Limited, All Rights Reserved
|
||||||
|
#
|
||||||
|
# This program is intended for testing the ssl_context_info program
|
||||||
|
#
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
if ! cd "$(dirname "$0")"; then
|
||||||
|
exit 125
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Variables
|
||||||
|
|
||||||
|
THIS_SCRIPT_NAME=$(basename "$0")
|
||||||
|
PROG_PATH="../programs/ssl/ssl_context_info"
|
||||||
|
OUT_FILE="ssl_context_info.log"
|
||||||
|
IN_DIR="data_files/base64"
|
||||||
|
|
||||||
|
USE_VALGRIND=0
|
||||||
|
|
||||||
|
T_COUNT=0
|
||||||
|
T_PASSED=0
|
||||||
|
T_FAILED=0
|
||||||
|
|
||||||
|
|
||||||
|
# Functions
|
||||||
|
|
||||||
|
print_usage() {
|
||||||
|
echo "Usage: $0 [options]"
|
||||||
|
printf " -h|--help\tPrint this help.\n"
|
||||||
|
printf " -m|--memcheck\tUse valgrind to check the memory.\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Print test name <name>
|
||||||
|
print_name() {
|
||||||
|
printf "%s %.*s " "$1" $(( 71 - ${#1} )) \
|
||||||
|
"........................................................................"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Print header to the test output file <test name> <file path> <test command>
|
||||||
|
print_header()
|
||||||
|
{
|
||||||
|
date="$(date)"
|
||||||
|
echo "******************************************************************" > $2
|
||||||
|
echo "* File created by: $THIS_SCRIPT_NAME" >> $2
|
||||||
|
echo "* Test name: $1" >> $2
|
||||||
|
echo "* Date: $date" >> $2
|
||||||
|
echo "* Command: $3" >> $2
|
||||||
|
echo "******************************************************************" >> $2
|
||||||
|
echo "" >> $2
|
||||||
|
}
|
||||||
|
|
||||||
|
# Print footer at the end of file <file path>
|
||||||
|
print_footer()
|
||||||
|
{
|
||||||
|
echo "" >> $1
|
||||||
|
echo "******************************************************************" >> $1
|
||||||
|
echo "* End command" >> $1
|
||||||
|
echo "******************************************************************" >> $1
|
||||||
|
echo "" >> $1
|
||||||
|
}
|
||||||
|
|
||||||
|
# Use the arguments of this script
|
||||||
|
get_options() {
|
||||||
|
while [ $# -gt 0 ]; do
|
||||||
|
case "$1" in
|
||||||
|
-h|--help)
|
||||||
|
print_usage
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
-m|--memcheck)
|
||||||
|
USE_VALGRIND=1
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unknown argument: '$1'"
|
||||||
|
print_usage
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
# Current test failed
|
||||||
|
fail()
|
||||||
|
{
|
||||||
|
T_FAILED=$(( $T_FAILED + 1))
|
||||||
|
FAIL_OUT="Fail.$T_FAILED""_$OUT_FILE"
|
||||||
|
|
||||||
|
echo "FAIL"
|
||||||
|
echo " Error: $1"
|
||||||
|
|
||||||
|
cp -f "$OUT_FILE" "$FAIL_OUT"
|
||||||
|
echo "Error: $1" >> "$FAIL_OUT"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Current test passed
|
||||||
|
pass()
|
||||||
|
{
|
||||||
|
T_PASSED=$(( $T_PASSED + 1))
|
||||||
|
echo "PASS"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Usage: run_test <name> <input file with b64 code> [ -arg <extra arguments for tested program> ] [option [...]]
|
||||||
|
# Options: -m <pattern that MUST be present in the output of tested program>
|
||||||
|
# -n <pattern that must NOT be present in the output of tested program>
|
||||||
|
# -u <pattern that must be UNIQUE in the output of tested program>
|
||||||
|
run_test()
|
||||||
|
{
|
||||||
|
TEST_NAME="$1"
|
||||||
|
RUN_CMD="$PROG_PATH -f $IN_DIR/$2"
|
||||||
|
|
||||||
|
if [ "-arg" = "$3" ]; then
|
||||||
|
RUN_CMD="$RUN_CMD $4"
|
||||||
|
shift 4
|
||||||
|
else
|
||||||
|
shift 2
|
||||||
|
fi
|
||||||
|
|
||||||
|
# prepend valgrind to our commands if active
|
||||||
|
if [ "$USE_VALGRIND" -gt 0 ]; then
|
||||||
|
RUN_CMD="valgrind --leak-check=full $RUN_CMD"
|
||||||
|
fi
|
||||||
|
|
||||||
|
T_COUNT=$(( $T_COUNT + 1))
|
||||||
|
print_name "$TEST_NAME"
|
||||||
|
|
||||||
|
# run tested program
|
||||||
|
print_header "$TEST_NAME" "$OUT_FILE" "$RUN_CMD"
|
||||||
|
eval "$RUN_CMD" >> "$OUT_FILE" 2>&1
|
||||||
|
print_footer "$OUT_FILE"
|
||||||
|
|
||||||
|
# check valgrind's results
|
||||||
|
if [ "$USE_VALGRIND" -gt 0 ]; then
|
||||||
|
if ! ( grep -F 'All heap blocks were freed -- no leaks are possible' "$OUT_FILE" &&
|
||||||
|
grep -F 'ERROR SUMMARY: 0 errors from 0 contexts' "$OUT_FILE" ) > /dev/null
|
||||||
|
then
|
||||||
|
fail "Memory error detected"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# check other assertions
|
||||||
|
# lines beginning with == are added by valgrind, ignore them, because we already checked them before
|
||||||
|
# lines with 'Serious error when reading debug info', are valgrind issues as well
|
||||||
|
# lines beginning with * are added by this script, ignore too
|
||||||
|
while [ $# -gt 0 ]
|
||||||
|
do
|
||||||
|
case $1 in
|
||||||
|
"-m")
|
||||||
|
if grep -v '^==' "$OUT_FILE" | grep -v 'Serious error when reading debug info' | grep -v "^*" | grep "$2" >/dev/null; then :; else
|
||||||
|
fail "pattern '$2' MUST be present in the output"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
"-n")
|
||||||
|
if grep -v '^==' "$OUT_FILE" | grep -v 'Serious error when reading debug info' | grep -v "^*" | grep "$2" >/dev/null; then
|
||||||
|
fail "pattern '$2' MUST NOT be present in the output"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
"-u")
|
||||||
|
if [ $(grep -v '^==' "$OUT_FILE"| grep -v 'Serious error when reading debug info' | grep -v "^*" | grep "$2" | wc -l) -ne 1 ]; then
|
||||||
|
fail "lines following pattern '$2' must be once in the output"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Unknown test: $1" >&2
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
shift 2
|
||||||
|
done
|
||||||
|
|
||||||
|
rm -f "$OUT_FILE"
|
||||||
|
|
||||||
|
pass
|
||||||
|
}
|
||||||
|
|
||||||
|
get_options "$@"
|
||||||
|
|
||||||
|
# Tests
|
||||||
|
|
||||||
|
run_test "Default configuration, server" \
|
||||||
|
"srv_def.txt" \
|
||||||
|
-n "ERROR" \
|
||||||
|
-u "major.* 2$" \
|
||||||
|
-u "minor.* 21$" \
|
||||||
|
-u "path.* 0$" \
|
||||||
|
-u "MBEDTLS_HAVE_TIME$" \
|
||||||
|
-u "MBEDTLS_X509_CRT_PARSE_C$" \
|
||||||
|
-u "MBEDTLS_SSL_MAX_FRAGMENT_LENGTH$" \
|
||||||
|
-u "MBEDTLS_SSL_TRUNCATED_HMAC$" \
|
||||||
|
-u "MBEDTLS_SSL_ENCRYPT_THEN_MAC$" \
|
||||||
|
-u "MBEDTLS_SSL_SESSION_TICKETS$" \
|
||||||
|
-u "MBEDTLS_SSL_SESSION_TICKETS and client$" \
|
||||||
|
-u "MBEDTLS_SSL_DTLS_BADMAC_LIMIT$" \
|
||||||
|
-u "MBEDTLS_SSL_DTLS_ANTI_REPLAY$" \
|
||||||
|
-u "MBEDTLS_SSL_ALPN$" \
|
||||||
|
-u "ciphersuite.* TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256$" \
|
||||||
|
-u "cipher flags.* 0x00$" \
|
||||||
|
-u "Message-Digest.* SHA256$" \
|
||||||
|
-u "compression.* disabled$" \
|
||||||
|
-u "DTLS datagram packing.* enabled$" \
|
||||||
|
-n "Certificate" \
|
||||||
|
-n "bytes left to analyze from context"
|
||||||
|
|
||||||
|
run_test "Default configuration, client" \
|
||||||
|
"cli_def.txt" \
|
||||||
|
-n "ERROR" \
|
||||||
|
-u "major.* 2$" \
|
||||||
|
-u "minor.* 21$" \
|
||||||
|
-u "path.* 0$" \
|
||||||
|
-u "MBEDTLS_HAVE_TIME$" \
|
||||||
|
-u "MBEDTLS_X509_CRT_PARSE_C$" \
|
||||||
|
-u "MBEDTLS_SSL_MAX_FRAGMENT_LENGTH$" \
|
||||||
|
-u "MBEDTLS_SSL_TRUNCATED_HMAC$" \
|
||||||
|
-u "MBEDTLS_SSL_ENCRYPT_THEN_MAC$" \
|
||||||
|
-u "MBEDTLS_SSL_SESSION_TICKETS$" \
|
||||||
|
-u "MBEDTLS_SSL_SESSION_TICKETS and client$" \
|
||||||
|
-u "MBEDTLS_SSL_DTLS_BADMAC_LIMIT$" \
|
||||||
|
-u "MBEDTLS_SSL_DTLS_ANTI_REPLAY$" \
|
||||||
|
-u "MBEDTLS_SSL_ALPN$" \
|
||||||
|
-u "ciphersuite.* TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256$" \
|
||||||
|
-u "cipher flags.* 0x00$" \
|
||||||
|
-u "Message-Digest.* SHA256$" \
|
||||||
|
-u "compression.* disabled$" \
|
||||||
|
-u "DTLS datagram packing.* enabled$" \
|
||||||
|
-u "cert. version .* 3$" \
|
||||||
|
-u "serial number.* 02$" \
|
||||||
|
-u "issuer name.* C=NL, O=PolarSSL, CN=PolarSSL Test CA$" \
|
||||||
|
-u "subject name.* C=NL, O=PolarSSL, CN=localhost$" \
|
||||||
|
-u "issued on.* 2019-02-10 14:44:06$" \
|
||||||
|
-u "expires on.* 2029-02-10 14:44:06$" \
|
||||||
|
-u "signed using.* RSA with SHA-256$" \
|
||||||
|
-u "RSA key size.* 2048 bits$" \
|
||||||
|
-u "basic constraints.* CA=false$" \
|
||||||
|
-n "bytes left to analyze from context"
|
||||||
|
|
||||||
|
run_test "Ciphersuite TLS-RSA-WITH-AES-256-CCM-8, server" \
|
||||||
|
"srv_ciphersuite.txt" \
|
||||||
|
-n "ERROR" \
|
||||||
|
-u "ciphersuite.* TLS-RSA-WITH-AES-256-CCM-8$" \
|
||||||
|
|
||||||
|
run_test "Ciphersuite TLS-RSA-WITH-AES-256-CCM-8, client" \
|
||||||
|
"cli_ciphersuite.txt" \
|
||||||
|
-n "ERROR" \
|
||||||
|
-u "ciphersuite.* TLS-RSA-WITH-AES-256-CCM-8$" \
|
||||||
|
|
||||||
|
run_test "No packing, server" \
|
||||||
|
"srv_no_packing.txt" \
|
||||||
|
-n "ERROR" \
|
||||||
|
-u "DTLS datagram packing.* disabled"
|
||||||
|
|
||||||
|
run_test "No packing, client" \
|
||||||
|
"cli_no_packing.txt" \
|
||||||
|
-n "ERROR" \
|
||||||
|
-u "DTLS datagram packing.* disabled"
|
||||||
|
|
||||||
|
run_test "DTLS CID, server" \
|
||||||
|
"srv_cid.txt" \
|
||||||
|
-n "ERROR" \
|
||||||
|
-u "in CID.* DE AD" \
|
||||||
|
-u "out CID.* BE EF"
|
||||||
|
|
||||||
|
run_test "DTLS CID, client" \
|
||||||
|
"cli_cid.txt" \
|
||||||
|
-n "ERROR" \
|
||||||
|
-u "in CID.* BE EF" \
|
||||||
|
-u "out CID.* DE AD"
|
||||||
|
|
||||||
|
run_test "No MBEDTLS_SSL_MAX_FRAGMENT_LENGTH, server" \
|
||||||
|
"srv_no_mfl.txt" \
|
||||||
|
-n "ERROR" \
|
||||||
|
-n "MBEDTLS_SSL_MAX_FRAGMENT_LENGTH"
|
||||||
|
|
||||||
|
run_test "No MBEDTLS_SSL_MAX_FRAGMENT_LENGTH, client" \
|
||||||
|
"cli_no_mfl.txt" \
|
||||||
|
-n "ERROR" \
|
||||||
|
-n "MBEDTLS_SSL_MAX_FRAGMENT_LENGTH"
|
||||||
|
|
||||||
|
run_test "No MBEDTLS_SSL_ALPN, server" \
|
||||||
|
"srv_no_alpn.txt" \
|
||||||
|
-n "ERROR" \
|
||||||
|
-n "MBEDTLS_SSL_ALPN"
|
||||||
|
|
||||||
|
run_test "No MBEDTLS_SSL_ALPN, client" \
|
||||||
|
"cli_no_alpn.txt" \
|
||||||
|
-n "ERROR" \
|
||||||
|
-n "MBEDTLS_SSL_ALPN"
|
||||||
|
|
||||||
|
run_test "No MBEDTLS_SSL_KEEP_PEER_CERTIFICATE, server" \
|
||||||
|
"srv_no_keep_cert.txt" \
|
||||||
|
-arg "--keep-peer-cert=0" \
|
||||||
|
-u "ciphersuite.* TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256$" \
|
||||||
|
-u "cipher flags.* 0x00" \
|
||||||
|
-u "compression.* disabled" \
|
||||||
|
-u "DTLS datagram packing.* enabled" \
|
||||||
|
-n "ERROR"
|
||||||
|
|
||||||
|
run_test "No MBEDTLS_SSL_KEEP_PEER_CERTIFICATE, client" \
|
||||||
|
"cli_no_keep_cert.txt" \
|
||||||
|
-arg "--keep-peer-cert=0" \
|
||||||
|
-u "ciphersuite.* TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256$" \
|
||||||
|
-u "cipher flags.* 0x00" \
|
||||||
|
-u "compression.* disabled" \
|
||||||
|
-u "DTLS datagram packing.* enabled" \
|
||||||
|
-n "ERROR"
|
||||||
|
|
||||||
|
run_test "No MBEDTLS_SSL_KEEP_PEER_CERTIFICATE, negative, server" \
|
||||||
|
"srv_no_keep_cert.txt" \
|
||||||
|
-m "Deserializing" \
|
||||||
|
-m "ERROR"
|
||||||
|
|
||||||
|
run_test "No MBEDTLS_SSL_KEEP_PEER_CERTIFICATE, negative, client" \
|
||||||
|
"cli_no_keep_cert.txt" \
|
||||||
|
-m "Deserializing" \
|
||||||
|
-m "ERROR"
|
||||||
|
|
||||||
|
run_test "Minimal configuration, server" \
|
||||||
|
"srv_min_cfg.txt" \
|
||||||
|
-n "ERROR" \
|
||||||
|
-n "MBEDTLS_SSL_MAX_FRAGMENT_LENGTH$" \
|
||||||
|
-n "MBEDTLS_SSL_TRUNCATED_HMAC$" \
|
||||||
|
-n "MBEDTLS_SSL_ENCRYPT_THEN_MAC$" \
|
||||||
|
-n "MBEDTLS_SSL_SESSION_TICKETS$" \
|
||||||
|
-n "MBEDTLS_SSL_SESSION_TICKETS and client$" \
|
||||||
|
-n "MBEDTLS_SSL_DTLS_BADMAC_LIMIT$" \
|
||||||
|
-n "MBEDTLS_SSL_DTLS_ANTI_REPLAY$" \
|
||||||
|
-n "MBEDTLS_SSL_ALPN$" \
|
||||||
|
|
||||||
|
run_test "Minimal configuration, client" \
|
||||||
|
"cli_min_cfg.txt" \
|
||||||
|
-n "ERROR" \
|
||||||
|
-n "MBEDTLS_SSL_MAX_FRAGMENT_LENGTH$" \
|
||||||
|
-n "MBEDTLS_SSL_TRUNCATED_HMAC$" \
|
||||||
|
-n "MBEDTLS_SSL_ENCRYPT_THEN_MAC$" \
|
||||||
|
-n "MBEDTLS_SSL_SESSION_TICKETS$" \
|
||||||
|
-n "MBEDTLS_SSL_SESSION_TICKETS and client$" \
|
||||||
|
-n "MBEDTLS_SSL_DTLS_BADMAC_LIMIT$" \
|
||||||
|
-n "MBEDTLS_SSL_DTLS_ANTI_REPLAY$" \
|
||||||
|
-n "MBEDTLS_SSL_ALPN$" \
|
||||||
|
|
||||||
|
run_test "MTU=10000" \
|
||||||
|
"mtu_10000.txt" \
|
||||||
|
-n "ERROR" \
|
||||||
|
-u "MTU.* 10000$"
|
||||||
|
|
||||||
|
run_test "MFL=1024" \
|
||||||
|
"mfl_1024.txt" \
|
||||||
|
-n "ERROR" \
|
||||||
|
-u "MFL.* 1024$"
|
||||||
|
|
||||||
|
run_test "Older version (v2.19.1)" \
|
||||||
|
"v2.19.1.txt" \
|
||||||
|
-n "ERROR" \
|
||||||
|
-u "major.* 2$" \
|
||||||
|
-u "minor.* 19$" \
|
||||||
|
-u "path.* 1$" \
|
||||||
|
-u "ciphersuite.* TLS-ECDHE-ECDSA-WITH-AES-128-CCM-8$" \
|
||||||
|
-u "Message-Digest.* SHA256$" \
|
||||||
|
-u "compression.* disabled$" \
|
||||||
|
-u "serial number.* 01:70:AF:40:B4:E6$" \
|
||||||
|
-u "issuer name.* CN=ca$" \
|
||||||
|
-u "subject name.* L=160001, OU=acc1, CN=device01$" \
|
||||||
|
-u "issued on.* 2020-03-06 09:50:18$" \
|
||||||
|
-u "expires on.* 2056-02-26 09:50:18$" \
|
||||||
|
-u "signed using.* ECDSA with SHA256$" \
|
||||||
|
-u "lifetime.* 0 sec.$" \
|
||||||
|
-u "MFL.* none$" \
|
||||||
|
-u "negotiate truncated HMAC.* disabled$" \
|
||||||
|
-u "Encrypt-then-MAC.* enabled$" \
|
||||||
|
-u "DTLS datagram packing.* enabled$" \
|
||||||
|
-u "verify result.* 0x00000000$" \
|
||||||
|
-n "bytes left to analyze from context"
|
||||||
|
|
||||||
|
run_test "Wrong base64 format" \
|
||||||
|
"def_bad_b64.txt" \
|
||||||
|
-m "ERROR" \
|
||||||
|
-u "The length of the base64 code found should be a multiple of 4" \
|
||||||
|
-n "bytes left to analyze from context"
|
||||||
|
|
||||||
|
run_test "Too much data at the beginning of base64 code" \
|
||||||
|
"def_b64_too_big_1.txt" \
|
||||||
|
-m "ERROR" \
|
||||||
|
-n "The length of the base64 code found should be a multiple of 4" \
|
||||||
|
|
||||||
|
run_test "Too much data in the middle of base64 code" \
|
||||||
|
"def_b64_too_big_2.txt" \
|
||||||
|
-m "ERROR" \
|
||||||
|
-n "The length of the base64 code found should be a multiple of 4" \
|
||||||
|
|
||||||
|
run_test "Too much data at the end of base64 code" \
|
||||||
|
"def_b64_too_big_3.txt" \
|
||||||
|
-m "ERROR" \
|
||||||
|
-n "The length of the base64 code found should be a multiple of 4" \
|
||||||
|
-u "bytes left to analyze from context"
|
||||||
|
|
||||||
|
run_test "Empty file as input" \
|
||||||
|
"empty.txt" \
|
||||||
|
-u "Finished. No valid base64 code found"
|
||||||
|
|
||||||
|
run_test "Not empty file without base64 code" \
|
||||||
|
"../../context-info.sh" \
|
||||||
|
-n "Deserializing"
|
||||||
|
|
||||||
|
run_test "Binary file instead of text file" \
|
||||||
|
"../../../programs/ssl/ssl_context_info" \
|
||||||
|
-m "ERROR" \
|
||||||
|
-u "Too many bad symbols detected. File check aborted" \
|
||||||
|
-n "Deserializing"
|
||||||
|
|
||||||
|
|
||||||
|
# End of tests
|
||||||
|
|
||||||
|
if [ $T_FAILED -eq 0 ]; then
|
||||||
|
printf "\nPASSED ( $T_COUNT tests )\n"
|
||||||
|
else
|
||||||
|
printf "\nFAILED ( $T_FAILED / $T_COUNT tests )\n"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit $T_FAILED
|
2
tests/data_files/base64/cli_cid.txt
Normal file
2
tests/data_files/base64/cli_cid.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Client, CID 0xBEEF
|
||||||
|
AhUAAH8AAA8AAAQ8AAAAAF6MZUPMqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABh7h8/aprLN1fS0KwLkZzKcsa5LNtDW7sYu7d1z7fNetuRjLJpX/A1mTSqeBY7li8AAAAAAAM7MIIDNzCCAh+gAwIBAgIBAjANBgkqhkiG9w0BAQsFADA7MQswCQYDVQQGEwJOTDERMA8GA1UECgwIUG9sYXJTU0wxGTAXBgNVBAMMEFBvbGFyU1NMIFRlc3QgQ0EwHhcNMTkwMjEwMTQ0NDA2WhcNMjkwMjEwM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8cFPXrEAjyaHT4P6DSYW8tzS1KW2BGiLICIaTla0w+w3lkvEcf36hIBMJcCAwEAAaNNMEswCQYDVR0TBAIwADAdBgNVHQ4EFgQUpQXoZLjc32APUBJNYKhkr02LQ5MwHwYDVR0jBBgwFoAUtFrkpbPe0lL2udWmlQ/rPrzH/f8wDQYJKoZIhvcNAQELBQADggEBAC465FJhPqel7zJngHIHJrqj/wVAxGAFOTF396XKATGAp+HRCqJ81Ry60CNK1jDzk8dv6M6UHoS7RIFiM/9rXQCbJfiPD5xMTejZp5n5UYHAmxsxDaazfA5FuBhkfokKK6jD4Eq91C94xGKb6X4/VkaPF7cqoBBw/bHxawXc0UEPjqayiBpCYU/rJoVZgLqFVP7Px3sva1nOrNx8rPPI1hJ+ZOg8maiPTxHZnBVLakSSLQy/sWeWyazO1RnrbxjrbgQtYKz0e3nwGpu1w13vfckFmUSBhHXH7AAS/HpKC4IH7G2GAk3+n8iSSN71sZzpxonQwVbopMZqLmbBm/7WPLcAAJQBiQTa148x1XQyGt9vU2JxAHIZ9HxLR87PewpTaslP0qJ4FK6cibG/U4ACVriGQMpNkJo6xRRn5dGyKE5L5iqcLQZ4zwcJT50NYlVQqzlXPArOaAzjVAX4k+TwL/VmNepmn3wvregAADeiGsvvbaAw2P9fhCgwX6Bm0YNzkWQsNwWENa6GoZLzvMM51G44611fFnKoAAFRgAAAAF6K4yksMvMV19qRq+eNokGn0j9Q5tjE88EK8jfM7gksXorjKR6zhXhttFGIFkNNAmmKuuDQGVmX1yCoHiJFonUAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAQAAAAAAAgAAAA==
|
2
tests/data_files/base64/cli_def.txt
Normal file
2
tests/data_files/base64/cli_def.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Client context with default MbedTLS configuration
|
||||||
|
AhUAAH8AAA4AAAQ8AAAAAF6HQx3MqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACG2QbHbUj8eGpdx5KVIebi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QtYKz0e3nwGpu1w13vfckFmUSBhHXH7AAS/HpKC4IH7G2GAk3+n8iSSN71sZzpxonQwVbopMZqLmbBm/7WPLcAAJTfQC2Ek91INP5ihHNzImPOAHJCk+YTO/pQuEnNWwXbdmKAi+IRp671iAwtpkjSxCBXVzKX925F1A66caCOQptlw+9zFukDQgblM2JyAJLG0j6B4RtBTDWJ8ZTMUPHUoLJoEpm8APZgRi//DMRyCKP9pbBLGlDzgUvl0w11LzBAlJHkWau5NoqQBlG7w4HFrKweovskAAFRgAAAAF6HQx248L77RH0Z973tSYNQ8zBsz861CZG5/T09TJz3XodDHe/iJ+cgXb5An3zTdnTBtw3EWAb68T+gCE33GN8AAAAAAAAAAAAAAAEAAAAAAAAAAwAAAQAAAAAAAgAAAA==
|
2
tests/data_files/base64/cli_min_cfg.txt
Normal file
2
tests/data_files/base64/cli_min_cfg.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Minimal configuration
|
||||||
|
AhUAAAMAAAAAAAOeAAAAAF6LZlLMqAAgUGktPmpSPbzRPipeCpYJtp5SNIIjTr3R121WF9AeWN4tmKbRhhv+yPMjY0yWPrHLy7lLLhwNFBwCD6eQ0ULZZ15Fi2Rhae/4ZkAR0BN2iCMAAAAAAAM7MIIDNzCCAh+gAwIBAgIBAjANBgkqhkiG9w0BAQsFADA7MQswCQYDVQQGEwJOTDERMA8GA1UECgwIUG9sYXJTU0wxGTAXBgNVBAMMEFBvbGFyU1NMIFRlc3QgQ0EwHhcNMTkwMjEwMTQ0NDA2WhcNMjkwMjEwMTQ0NDA2WjA0MQswCQYDVQQGEwJOTDERMA8GA1UECgwIUG9sYXJTU0wxEjAQBgNVBAMMCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMFNo93nzR3RBNdJcriZrA545Do8Ss86ExbQWuTNowCIp+4ea5anUrSQ7y1yej4kmvy2NKwk9XfgJmSMnLAofaHa6ozmyRyWvP7BBFKzNtSj+uGxdtiQwWG0ZlI2oiZTqqt0Xgd9GYLbKtgfoNkNHC1JZvdbJXNG6AuKT2kMtQCQ4dqCEGZ9rlQri2V5kaHiYcPNQEkI7mgM8YuG0ka/0LiqEQMef1aoGh5EGA8PhYvai0Re4hjGYi/HZo36Xdh98yeJKQHFkA4/J/EwyEoO79bex8cna8cFPXrEAjyaHT4P6DSYW8tzS1KW2BGiLICIaTla0w+w3lkvEcf36hIBMJcCAwEAAaNNMEswCQYDVR0TBAIwADAdBgNVHQ4EFgQUpQXoZLjc32APUBJNYKhkr02LQ5MwHwYDVR0jBBgwFoAUtFrkpbPe0lL2udWmlQ/rPrzH/f8wDQYJKoZIhvcNAQELBQADggEBAC465FJhPqel7zJngHIHJrqj/wVAxGAFOTF396XKATGAp+HRCqJ81Ry60CNK1jDzk8dv6M6UHoS7RIFiM/9rXQCbJfiPD5xMTejZp5n5UYHAmxsxDaazfA5FuBhkfokKK6jD4Eq91C94xGKb6X4/VkaPF7cqoBBw/bHxawXc0UEPjqayiBpCYU/rJoVZgLqFVP7Px3sva1nOrNx8rPPI1hJ+ZOg8maiPTxHZnBVLakSSLQy/sWeWyazO1RnrbxjrbgQtYKz0e3nwGpu1w13vfckFmUSBhHXH7AAS/HpKC4IH7G2GAk3+n8iSSN71sZzpxonQwVbopMZqLmbBm/7WPLdei2ZSQwLppTqzs7kieOYQR6DjJItmQ0N/RS3+zTr9wF6LZlL6SQpLewmyja7jXyOWuUqJ6zJQ5b7FfA4PxthlAAABAAAAAAACAAA=
|
3
tests/data_files/base64/cli_no_alpn.txt
Normal file
3
tests/data_files/base64/cli_no_alpn.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Without MBEDTLS_SSL_ALPN
|
||||||
|
AhUAAH8AAAYAAAQ8AAAAAF6LDSzMqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB1lCUO8B/805UzCOLZzWDAEA8anfLpbuWTrnFSR2puZktvEiR8nXdATN0yKS94oSAAAAAAAAM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8iSSN71sZzpxonQwVbopMZqLmbBm/7WPLcAAJQVUI/Wwt3q4XiqL74wCmkhAHKj0YgCvjZi3GKw0s7PJqjZzzLt+OuroC8Q2XeDf5nKKk8jkolZ+dXUftsPPizFgb2hGuYa4NhxXjiGlUpFEoXm7r78SwGfWxRgH5vJk6W3TdodkxTZkjMoWjlC2PANOHPeClw0szBmly7+s89LFZqnCXgyxE8xlv+l5IYSEPSj7UsmAAFRgAAAAF6LDSwWt0QWgmNg4Zv2yYhf4Pdexpi/QTIqWyD2AQVjXosNLLK1vz/upFHrJlizjH5uSBUJCpQZJczrBgxBmGoAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAQAAAAAAAgAA
|
||||||
|
|
2
tests/data_files/base64/cli_no_keep_cert.txt
Normal file
2
tests/data_files/base64/cli_no_keep_cert.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Without MBEDTLS_SSL_KEEP_PEER_CERTIFICATE
|
||||||
|
AhUAAAMAAAAAAACCAAAAAF6MKhTMqAAgSKCqXrcrmjqOBpxsGO3itQB09YgsSJwXmZB12QlB+wwhiof0mzAN0hupkLxu4Yyc9SgyFoEDPKJk8TiRo8bO2rkEfPItB5lUFkJwzdeuGVMAAAAABiCAy8MWqlj4vnIv0mswJvB35hyCOYWZ+fcZ6t5LzZgXPl6MKhRs69b+psiGUAo8OK3fU4HKOHNdi36tk22+ScctXowqFEyvzGcvbtI0VfWLKlOlDv+SwC08ZdCNa+RBZ/AAAAEAAAAAAAIAAA==
|
2
tests/data_files/base64/cli_no_mfl.txt
Normal file
2
tests/data_files/base64/cli_no_mfl.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Without MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
|
||||||
|
AhUAAHcAAA4AAAQ6AAAAAF6LDLPMqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0fzGzO1ysljMgZr4gduigvRXr2AK5X8j8c6vHTOpc2ncFS3UN2oj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AAS/HpKC4IH7G2GAk3+n8iSSN71sZzpxonQwVbopMZqLmbBm/7WPLcAAJMiPbE45oAjg9Rx0iVnQDg2AHHKrrmSMTfVijgZbdL/ZFWYvFMioa7uqW0NmA0bSTxcsieRarndOq5fIdEIzmAgGkdaxJaGNDT105gwwIzUnLRapgP6H6IImSMFPXVp3Zks0zFfrq7aQnQMgc8o5kPqWq1/eYfdq8lysTO8Rgliv96lA/pe1SQmPL1mdChAwCa/4XEAAVGAAABeiwyzXGz4yPwEgvq/TWq0dZXvD6mzEbAty1oZJIvRpl6LDLOyQ94MIvSKw7OH4mg+DNL+ZW0xzQbKQalloUG6AAAAAAAAAAAAAAABAAAAAAAAAAMAAAEAAAAAAAIAAAA=
|
2
tests/data_files/base64/cli_no_packing.txt
Normal file
2
tests/data_files/base64/cli_no_packing.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Without DTLS packing
|
||||||
|
AhUAAH8AAA4AAAQ8AAAAAF6LCM/MqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACfl0tXNmshIQEqiEflQGnVUKkIFl1on/Mu0pjWes3XwQgdwmy9xMzpVyYU5gBOsOEAAAAAAAM7MIIDNzCCAh+gAwIBAgIBAjANBgkqhkiG9w0BAQsFADA7MQswCQYDVQQGEwJOTDERMA8GA1UECgwIUG9sYXJTU0wxGTAXBgNVBAMMEFBvbGFyU1NMIFRlc3QgQ0EwHhcNMTkwMjEwMTQ0NDA2WhcNMjkwMjEwMTQ0NDA2WjA0MQswCQYDVQQGEwJOTDERMA8GA1UECgwIUG9sYXJTU0wxEjAQBgNVBAMMCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMFNo93nzR3RBNdJcriZrA545Do8Ss86ExbQWuTNowCIp+4ea5anUrSQ7y1yej4kmvy2NKwk9XfgJmSMnLAofaHa6ozmyRyWvP7BBFKzNtSj+uGxdtiQwWG0ZlI2oiZTqqt0Xgd9GYLb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too_big_1.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Context with added '1234' at the begining to simulate too much data in the base64 code
|
||||||
|
1234AhUAAH8AAA4AAAQ8AAAAAF6HQx3MqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACG2QbHbUj8eGpdx5KVIebiwk0jvRj9/3m6BOSzpA7qBXeEunhqr3D11NE7ciGjeHMAAAAAAAM7MIIDNzCCAh+gAwIBAgIBAjANBgkqhkiG9w0BAQsFADA7MQswCQYDVQQGEwJOTDERMA8GA1UECgwIUG9sYXJTU0wxGTAXBgNVBAMMEFBvbGFyU1NMIFRlc3QgQ0EwHhcNMTkwMjEwMTQ0NDA2WhcNMjkwMjEwMTQ0NDA2WjA0MQswCQYDVQQGEwJOTDERMA8GA1UECgwIUG9sYXJTU0wxEjAQBgNVBAMMCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMFNo93nzR3RBNdJcriZrA545Do8Ss86ExbQWuTNowCIp+4ea5anUrSQ7y1yej4kmvy2NKwk9XfgJmSMnLAofaHa6ozmyRyWvP7BBFKzNtSj+uGxdtiQwWG0ZlI2oiZTqqt0Xgd9GYLbKtgfoNkNHC1JZvdbJXNG6AuKT2kMtQCQ4dqCEGZ9rlQri2V5kaHiYcPNQEkI7mgM8YuG0ka/0LiqEQMef1aoGh5EGA8PhYvai0Re4hjGYi/HZo36Xdh98yeJKQHFkA4/J/EwyEoO79bex8cna8cFPXrEAjyaHT4P6DSYW8tzS1KW2BGiLICIaTla0w+w3lkvEcf36hIBMJcCAwEAAaNNMEswCQYDVR0TBAIwADAdBgNVHQ4EFgQUpQXoZLjc32APUBJNYKhkr02LQ5MwHwYDVR0jBBgwFoAUtFrkpbPe0lL2udWmlQ/rPrzH/f8wDQYJKoZIhvcNAQELBQADggEBAC465FJhPqel7zJngHIHJrqj/wVAxGAFOTF396XKATGAp+HRCqJ81Ry60CNK1jDzk8dv6M6UHoS7RIFiM/9rXQCbJfiPD5xMTejZp5n5UYHAmxsxDaazfA5FuBhkfokKK6jD4Eq91C94xGKb6X4/VkaPF7cqoBBw/bHxawXc0UEPjqayiBpCYU/rJoVZgLqFVP7Px3sva1nOrNx8rPPI1hJ+ZOg8maiPTxHZnBVLakSSLQy/sWeWyazO1RnrbxjrbgQtYKz0e3nwGpu1w13vfckFmUSBhHXH7AAS/HpKC4IH7G2GAk3+n8iSSN71sZzpxonQwVbopMZqLmbBm/7WPLcAAJTfQC2Ek91INP5ihHNzImPOAHJCk+YTO/pQuEnNWwXbdmKAi+IRp671iAwtpkjSxCBXVzKX925F1A66caCOQptlw+9zFukDQgblM2JyAJLG0j6B4RtBTDWJ8ZTMUPHUoLJoEpm8APZgRi//DMRyCKP9pbBLGlDzgUvl0w11LzBAlJHkWau5NoqQBlG7w4HFrKweovskAAFRgAAAAF6HQx248L77RH0Z973tSYNQ8zBsz861CZG5/T09TJz3XodDHe/iJ+cgXb5An3zTdnTBtw3EWAb68T+gCE33GN8AAAAAAAAAAAAAAAEAAAAAAAAAAwAAAQAAAAAAAgAAAA==
|
2
tests/data_files/base64/def_b64_too_big_2.txt
Normal file
2
tests/data_files/base64/def_b64_too_big_2.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Context with added '1234' in the middle of code to simulate too much data
|
||||||
|
AhUAAH8AAA4AAAQ8AAAAAF6HQx3MqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACG2QbHbUj8eGpdx5KVIebiwk0jvRj9/3m6BOSzpA7qBXeEunhqr3D11NE7ciGjeHMAAAAAAAM7MIIDNzCCAh+gAwIBAgIBAjANBgkqhkiG9w0BAQsFADA7MQswCQYDVQQGEwJOTDERMA8GA1UECgwIUG9sYXJTU0wxGTAXBgNVBAMMEFBvbGFyU1NMIFRlc3QgQ0EwHhcNMTkwMjEwMTQ0NDA2WhcNMjkwMjEwMTQ0NDA2WjA0MQswCQYDVQQGEwJOTDERMA8GA1UECgw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JHkWau5NoqQBlG7w4HFrKweovskAAFRgAAAAF6HQx248L77RH0Z973tSYNQ8zBsz861CZG5/T09TJz3XodDHe/iJ+cgXb5An3zTdnTBtw3EWAb68T+gCE33GN8AAAAAAAAAAAAAAAEAAAAAAAAAAwAAAQAAAAAAAgAAAA==
|
2
tests/data_files/base64/def_b64_too_big_3.txt
Normal file
2
tests/data_files/base64/def_b64_too_big_3.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Context with added '1234' before '==' add the end to simulate too much data in the base64 code
|
||||||
|
AhUAAH8AAA4AAAQ8AAAAAF6HQx3MqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACG2QbHbUj8eGpdx5KVIebiwk0jvRj9/3m6BOSzpA7qBXeEunhqr3D11NE7ciGjeHMAAAAAAAM7MIIDNzCCAh+gAwIBAgIBAjANBgkqhkiG9w0BAQsFADA7MQswCQYDVQQGEwJOTDERMA8GA1UECgwIUG9sYXJTU0wxGTAXBgNVBAMMEFBvbGFyU1NMIFRlc3QgQ0EwHhcNMTkwMjEwMTQ0NDA2WhcNMjkwMjEwMTQ0NDA2WjA0MQswCQYDVQQGEwJOTDERMA8GA1UECgwIUG9sYXJTU0wxEjAQBgNVBAMMCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMFNo93nzR3RBNdJcriZrA545Do8Ss86ExbQWuTNowCIp+4ea5anUrSQ7y1yej4kmvy2NKwk9XfgJmSMnLAofaHa6ozmyRyWvP7BBFKzNtSj+uGxdtiQwWG0ZlI2oiZTqqt0Xgd9GYLbKtgfoNkNHC1JZvdbJXNG6AuKT2kMtQCQ4dqCEGZ9rlQri2V5kaHiYcPNQEkI7mgM8YuG0ka/0LiqEQMef1aoGh5EGA8PhYvai0Re4hjGYi/HZo36Xdh98yeJKQHFkA4/J/EwyEoO79bex8cna8cFPXrEAjyaHT4P6DSYW8tzS1KW2BGiLICIaTla0w+w3lkvEcf36hIBMJcCAwEAAaNNMEswCQYDVR0TBAIwADAdBgNVHQ4EFgQUpQXoZLjc32APUBJNYKhkr02LQ5MwHwYDVR0jBBgwFoAUtFrkpbPe0lL2udWmlQ/rPrzH/f8wDQYJKoZIhvcNAQELBQADggEBAC465FJhPqel7zJngHIHJrqj/wVAxGAFOTF396XKATGAp+HRCqJ81Ry60CNK1jDzk8dv6M6UHoS7RIFiM/9rXQCbJfiPD5xMTejZp5n5UYHAmxsxDaazfA5FuBhkfokKK6jD4Eq91C94xGKb6X4/VkaPF7cqoBBw/bHxawXc0UEPjqayiBpCYU/rJoVZgLqFVP7Px3sva1nOrNx8rPPI1hJ+ZOg8maiPTxHZnBVLakSSLQy/sWeWyazO1RnrbxjrbgQtYKz0e3nwGpu1w13vfckFmUSBhHXH7AAS/HpKC4IH7G2GAk3+n8iSSN71sZzpxonQwVbopMZqLmbBm/7WPLcAAJTfQC2Ek91INP5ihHNzImPOAHJCk+YTO/pQuEnNWwXbdmKAi+IRp671iAwtpkjSxCBXVzKX925F1A66caCOQptlw+9zFukDQgblM2JyAJLG0j6B4RtBTDWJ8ZTMUPHUoLJoEpm8APZgRi//DMRyCKP9pbBLGlDzgUvl0w11LzBAlJHkWau5NoqQBlG7w4HFrKweovskAAFRgAAAAF6HQx248L77RH0Z973tSYNQ8zBsz861CZG5/T09TJz3XodDHe/iJ+cgXb5An3zTdnTBtw3EWAb68T+gCE33GN8AAAAAAAAAAAAAAAEAAAAAAAAAAwAAAQAAAAAAAgAAAA1234==
|
2
tests/data_files/base64/def_bad_b64.txt
Normal file
2
tests/data_files/base64/def_bad_b64.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Context with added extra 'A' before '==' add the end to simulate bad length of base64 code
|
||||||
|
AhUAAH8AAA4AAAQ8AAAAAF6HQx3MqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACG2QbHbUj8eGpdx5KVIebiwk0jvRj9/3m6BOSzpA7qBXeEunhqr3D11NE7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KC4IH7G2GAk3+n8iSSN71sZzpxonQwVbopMZqLmbBm/7WPLcAAJTfQC2Ek91INP5ihHNzImPOAHJCk+YTO/pQuEnNWwXbdmKAi+IRp671iAwtpkjSxCBXVzKX925F1A66caCOQptlw+9zFukDQgblM2JyAJLG0j6B4RtBTDWJ8ZTMUPHUoLJoEpm8APZgRi//DMRyCKP9pbBLGlDzgUvl0w11LzBAlJHkWau5NoqQBlG7w4HFrKweovskAAFRgAAAAF6HQx248L77RH0Z973tSYNQ8zBsz861CZG5/T09TJz3XodDHe/iJ+cgXb5An3zTdnTBtw3EWAb68T+gCE33GN8AAAAAAAAAAAAAAAEAAAAAAAAAAwAAAQAAAAAAAgAAAAA==
|
0
tests/data_files/base64/empty.txt
Normal file
0
tests/data_files/base64/empty.txt
Normal file
2
tests/data_files/base64/mfl_1024.txt
Normal file
2
tests/data_files/base64/mfl_1024.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// MFL=1024
|
||||||
|
AhUAAH8AAA4AAABtAAAAAF6K+GLMqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACHeeQKPVt9RpB8nLTB6C2AhxRzB0r/OBbXbMPm6jb1rkR+qrXZAUFRvGfGxlqqGWwAAACAAAAAAAAAAAAAAAIAAV6K+GJIXNnpKTr9HZQW6WEH7YSYhhRRqOO6xvf8QL6/Xor4YhOxOJYk23w3AwDvVAofeWnVAfJnExe5ipdSxnAAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAQAAAAAAAgAAAA===
|
2
tests/data_files/base64/mtu_10000.txt
Normal file
2
tests/data_files/base64/mtu_10000.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// MTU=10000
|
||||||
|
AhUAAH8AAA4AAABtAAAAAF6LDkzMqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABx06kxYooMLGPyUMoB46EF2zTJzmZEM4le5aKihcHpFEfgrX/eWQZFWa7cak79ihwAAACAAAAAAAAAAAAAAAAAAV6LDkz9bigMk9q0WiDmgYhX8ppbfgbtMCfruvVQNiFWXosOTJ3R2+J+TaSChmjtS8sD+y1Zruhe/SJE7y9D+5YAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAQAAAAAAAicQAA==
|
2
tests/data_files/base64/srv_cid.txt
Normal file
2
tests/data_files/base64/srv_cid.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Server, CID 0xDEAD
|
||||||
|
AhUAAH8AAA8AAABtAAAAAF6MZUPMqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABh7h8/aprLN1fS0KwLkZzKcsa5LNtDW7sYu7d1z7fNetuRjLJpX/A1mTSqeBY7li8AAACAAAAAAAAAAAAAAAAAAV6MZUNak74BhbcgvZ2M8WhZKjQyCix7GJzRs4SqnD7iXoxlQ7YXjsVI0K/xyMOJPkT9ZcPEi/2jHGIte1ZduW4C3q0Cvu8AAAAAAAAAAAAAAAIAAAAAAAAABwAAAQAAAAAAAwAAAA==
|
2
tests/data_files/base64/srv_ciphersuite.txt
Normal file
2
tests/data_files/base64/srv_ciphersuite.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// TLS-RSA-WITH-AES-256-CCM-8
|
||||||
|
AhUAAH8AAA4AAABtAAAAAF6K4ynAoQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADLBIQUrrPh7jxYz9e55cJvfpOkuBf2ZiVovlYa1Dkwbimp5q/CoWIn48C0x3Yj6N0AAACAAAAAAAAAAAAAAAAAAV6K4yksMvMV19qRq+eNokGn0j9Q5tjE88EK8jfM7gksXorjKR6zhXhttFGIFkNNAmmKuuDQGVmX1yCoHiJFonUAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAQAAAAAAAgAAAA==
|
2
tests/data_files/base64/srv_def.txt
Normal file
2
tests/data_files/base64/srv_def.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Server context with default MbedTLS configuration
|
||||||
|
AhUAAH8AAA4AAABtAAAAAF6HQx3MqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACG2QbHbUj8eGpdx5KVIebiwk0jvRj9/3m6BOSzpA7qBXeEunhqr3D11NE7ciGjeHMAAACAAAAAAAAAAAAAAAAAAV6HQx248L77RH0Z973tSYNQ8zBsz861CZG5/T09TJz3XodDHe/iJ+cgXb5An3zTdnTBtw3EWAb68T+gCE33GN8AAAAAAAAAAAAAAAEAAAAAAAAAAwAAAQAAAAAAAgAAAA==
|
2
tests/data_files/base64/srv_min_cfg.txt
Normal file
2
tests/data_files/base64/srv_min_cfg.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Minimal configuration
|
||||||
|
AhUAAAMAAAAAAABjAAAAAF6LZlLMqAAgUGktPmpSPbzRPipeCpYJtp5SNIIjTr3R121WF9AeWN4tmKbRhhv+yPMjY0yWPrHLy7lLLhwNFBwCD6eQ0ULZZ15Fi2Rhae/4ZkAR0BN2iCMAAACAAAAAXotmUkMC6aU6s7O5InjmEEeg4ySLZkNDf0Ut/s06/cBei2ZS+kkKS3sJso2u418jlrlKiesyUOW+xXwOD8bYZQAAAQAAAAAAAgAA
|
2
tests/data_files/base64/srv_no_alpn.txt
Normal file
2
tests/data_files/base64/srv_no_alpn.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Without MBEDTLS_SSL_ALPN
|
||||||
|
AhUAAH8AAAYAAABtAAAAAF6LDSzMqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB1lCUO8B/805UzCOLZzWDAEA8anfLpbuWTrnFSR2puZktvEiR8nXdATN0yKS94oSAAAACAAAAAAAAAAAAAAAAAAV6LDSwWt0QWgmNg4Zv2yYhf4Pdexpi/QTIqWyD2AQVjXosNLLK1vz/upFHrJlizjH5uSBUJCpQZJczrBgxBmGoAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAQAAAAAAAgAA
|
2
tests/data_files/base64/srv_no_keep_cert.txt
Normal file
2
tests/data_files/base64/srv_no_keep_cert.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Without MBEDTLS_SSL_KEEP_PEER_CERTIFICATE
|
||||||
|
AhUAAAMAAAAAAABiAAAAAF6MKhTMqAAgSKCqXrcrmjqOBpxsGO3itQB09YgsSJwXmZB12QlB+wwhiof0mzAN0hupkLxu4Yyc9SgyFoEDPKJk8TiRo8bO2rkEfPItB5lUFkJwzdeuGVMAAACAAABejCoUbOvW/qbIhlAKPDit31OByjhzXYt+rZNtvknHLV6MKhRMr8xnL27SNFX1iypTpQ7/ksAtPGXQjWvkQWfwAAABAAAAAAACAAA=
|
2
tests/data_files/base64/srv_no_mfl.txt
Normal file
2
tests/data_files/base64/srv_no_mfl.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Without MBEDTLS_SSL_MAX_FRAGMENT_LENGTH
|
||||||
|
AhUAAHcAAA4AAABsAAAAAF6LDLPMqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0fzGzO1ysljMgZr4gduigvRXr2AK5X8j8c6vHTOpc2ncFS3UN2ojwD2tOaM3+/XIAAACAAAAAAAAAAAAAAAABXosMs1xs+Mj8BIL6v01qtHWV7w+psxGwLctaGSSL0aZeiwyzskPeDCL0isOzh+JoPgzS/mVtMc0GykGpZaFBugAAAAAAAAAAAAAAAQAAAAAAAAADAAABAAAAAAACAAAA
|
2
tests/data_files/base64/srv_no_packing.txt
Normal file
2
tests/data_files/base64/srv_no_packing.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Without DTLS packing
|
||||||
|
AhUAAH8AAA4AAABtAAAAAF6LCM/MqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACfl0tXNmshIQEqiEflQGnVUKkIFl1on/Mu0pjWes3XwQgdwmy9xMzpVyYU5gBOsOEAAACAAAAAAAAAAAAAAAAAAV6LCM+1uRpyaoyfzuNGBJK9DgBWIWtrPpu7KM8qsC/FXosIz/YIPhveZ8Z4IR0g/McAMQwzQoK5tScSE0DD3BwAAAAAAAAAAAAAAAEAAAAAAAAAAwEAAQAAAAAAAgAAAA==
|
2
tests/data_files/base64/v2.19.1.txt
Normal file
2
tests/data_files/base64/v2.19.1.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// Context creaded by MbedTLS v.2.19.1
|
||||||
|
AhMBAH8AAA8AAAGjAAAAAF5iHYLArgAgkQE4V2NJsjbOuO52ws/u75f6Cg126zWeI7a+kaxTqKLbdWWZmW3PP+SflLxBA7Trpb0qZ5MP8+m0leylnLcDt2TtIWR49MOuiJuvVuMJmtwAAAAAAAE2MIIBMjCB2qADAgECAgYBcK9AtOYwCgYIKoZIzj0EAwIwDTELMAkGA1UEAwwCY2EwIBcNMjAwMzA2MDk1MDE4WhgPMjA1NjAyMjYwOTUwMThaMDMxDzANBgNVBAcTBjE2MDAwMTENMAsGA1UECxMEYWNjMTERMA8GA1UEAxMIZGV2aWNlMDEwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARn0TtinN6/runzIuF2f2uTH1f0mQOFXu3uRPtQji2ObccSsw6Cn9z7XWK9fRgeoOKA0WZC+O9L9IEWieS13ajFMAoGCCqGSM49BAMCA0cAMEQCIFoavpekQjIqubJ09jkMR+iiUpkGdFRla1R7onnc5iEOAiBAvYr8j9QqjpM2jColTS1cI0z29PBbuasq4HI6YCj0wgAAAAAAAAAAAAFeYh2Ct3LnESwmdWzU+xs7vV2Q0T5HJ8y4ckhpO7wOoF5iHYJ38gKFI3Qdc3BR48GV7nuBUKZeI1YJExQchj1WCAY6dEyghLpHAAAAAAAAAAAAAAAAAQAAAAAAAAADAAABAAAAAAACAAAA
|
@ -664,6 +664,9 @@ component_test_default_cmake_gcc_asan () {
|
|||||||
|
|
||||||
msg "test: compat.sh (ASan build)" # ~ 6 min
|
msg "test: compat.sh (ASan build)" # ~ 6 min
|
||||||
if_build_succeeded tests/compat.sh
|
if_build_succeeded tests/compat.sh
|
||||||
|
|
||||||
|
msg "test: context-info.sh (ASan build)" # ~ 15 sec
|
||||||
|
if_build_succeeded tests/context-info.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
component_test_full_cmake_gcc_asan () {
|
component_test_full_cmake_gcc_asan () {
|
||||||
@ -680,6 +683,9 @@ component_test_full_cmake_gcc_asan () {
|
|||||||
|
|
||||||
msg "test: compat.sh (full config, ASan build)"
|
msg "test: compat.sh (full config, ASan build)"
|
||||||
if_build_succeeded tests/compat.sh
|
if_build_succeeded tests/compat.sh
|
||||||
|
|
||||||
|
msg "test: context-info.sh (full config, ASan build)" # ~ 15 sec
|
||||||
|
if_build_succeeded tests/context-info.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
component_test_zlib_make() {
|
component_test_zlib_make() {
|
||||||
@ -742,6 +748,9 @@ component_test_sslv3 () {
|
|||||||
|
|
||||||
msg "build: SSLv3 - ssl-opt.sh (ASan build)" # ~ 6 min
|
msg "build: SSLv3 - ssl-opt.sh (ASan build)" # ~ 6 min
|
||||||
if_build_succeeded tests/ssl-opt.sh
|
if_build_succeeded tests/ssl-opt.sh
|
||||||
|
|
||||||
|
msg "build: SSLv3 - context-info.sh (ASan build)" # ~ 15 sec
|
||||||
|
if_build_succeeded tests/context-info.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
component_test_no_renegotiation () {
|
component_test_no_renegotiation () {
|
||||||
@ -787,6 +796,9 @@ component_test_rsa_no_crt () {
|
|||||||
|
|
||||||
msg "test: RSA_NO_CRT - RSA-related part of compat.sh (ASan build)" # ~ 3 min
|
msg "test: RSA_NO_CRT - RSA-related part of compat.sh (ASan build)" # ~ 3 min
|
||||||
if_build_succeeded tests/compat.sh -t RSA
|
if_build_succeeded tests/compat.sh -t RSA
|
||||||
|
|
||||||
|
msg "test: RSA_NO_CRT - RSA-related part of context-info.sh (ASan build)" # ~ 15 sec
|
||||||
|
if_build_succeeded tests/context-info.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
component_test_new_ecdh_context () {
|
component_test_new_ecdh_context () {
|
||||||
@ -1149,6 +1161,9 @@ component_test_asan_remove_peer_certificate () {
|
|||||||
|
|
||||||
msg "test: compat.sh, !MBEDTLS_SSL_KEEP_PEER_CERTIFICATE"
|
msg "test: compat.sh, !MBEDTLS_SSL_KEEP_PEER_CERTIFICATE"
|
||||||
if_build_succeeded tests/compat.sh
|
if_build_succeeded tests/compat.sh
|
||||||
|
|
||||||
|
msg "test: context-info.sh, !MBEDTLS_SSL_KEEP_PEER_CERTIFICATE"
|
||||||
|
if_build_succeeded tests/context-info.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
component_test_no_max_fragment_length_small_ssl_out_content_len () {
|
component_test_no_max_fragment_length_small_ssl_out_content_len () {
|
||||||
@ -1161,6 +1176,9 @@ component_test_no_max_fragment_length_small_ssl_out_content_len () {
|
|||||||
|
|
||||||
msg "test: MFL tests (disabled MFL extension case) & large packet tests"
|
msg "test: MFL tests (disabled MFL extension case) & large packet tests"
|
||||||
if_build_succeeded tests/ssl-opt.sh -f "Max fragment length\|Large buffer"
|
if_build_succeeded tests/ssl-opt.sh -f "Max fragment length\|Large buffer"
|
||||||
|
|
||||||
|
msg "test: context-info.sh (disabled MFL extension case)"
|
||||||
|
if_build_succeeded tests/context-info.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
component_test_variable_ssl_in_out_buffer_len () {
|
component_test_variable_ssl_in_out_buffer_len () {
|
||||||
@ -1679,6 +1697,11 @@ component_test_valgrind () {
|
|||||||
msg "test: compat.sh --memcheck (Release)"
|
msg "test: compat.sh --memcheck (Release)"
|
||||||
if_build_succeeded tests/compat.sh --memcheck
|
if_build_succeeded tests/compat.sh --memcheck
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$MEMORY" -gt 0 ]; then
|
||||||
|
msg "test: context-info.sh --memcheck (Release)"
|
||||||
|
if_build_succeeded tests/context-info.sh --memcheck
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
component_test_cmake_out_of_source () {
|
component_test_cmake_out_of_source () {
|
||||||
|
Loading…
Reference in New Issue
Block a user