Both our OpenSSL fork and boringssl have APIs for both controlling GREASE and
accessing and logging ``retry_configs``, it seems WolfSSL has neither.
-
# Python3 program to print all combination of size r in an array of size n.
# This is used to generate test lines in tests/ech_test.sh.
# This will be discarded in the process of moving from experimental,
-# but is worth preserving for the moment in case of changes to the
+# but is worth preserving for the moment in case of changes to the
# ECH command line args
def CombinationRepetitionUtil(chosen, arr, badarr, index,
r, start, end):
-
+
# Current combination is ready,
# print it
if index == r:
- # figure out if result should be good or bad and
+ # figure out if result should be good or bad and
# print prefix, assuming $turl does support ECH so
# should work if given "positive" parameters
res = 1
for j in range(r):
if j != 0 and chosen[j] != chosen[j-1]:
print(chosen[j], end = " ")
-
+
print()
return
-
+
# When no more elements are
# there to put in chosen[]
if start > n:
return
-
+
# Current is included, put
# next at next location
chosen[index] = arr[start]
-
+
# Current is excluded, replace it
# with next (Note that i+1 is passed,
# but index is not changed)
# size n. This function mainly uses
# CombinationRepetitionUtil()
def CombinationRepetition(arr, badarr, n, r):
-
+
# A temporary array to store
# all combination one by one
chosen = [0] * r
CombinationRepetition(arr, badarr, n, r)
# This code is contributed by Vaibhav Kumar 12.
-
# basic ECH good/bad
for targ in "${!ech_targets[@]}"
do
- if [[ "$using_wolf" == "yes" ]]
+ if [[ "$using_wolf" == "yes" ]]
then
case $targ in
"draft-13.esni.defo.ie:8414" | "tls-ech.dev" | \
path=${ech_targets[$targ]}
turl="https://$host:$port/$path"
echo "ECH check for $turl"
- {
+ {
echo ""
echo "ECH check for $turl"
} >> "$logfile"
path=${ech_targets[$targ]}
turl="https://$host:$port/$path"
echo "PN override check for $turl"
- {
+ {
echo ""
echo "PN override check for $turl"
} >> "$logfile"
echo "more cli_test with $turl" >> "$logfile"
# The combinatorics here are handled via the tests/ech_combos.py script
- # which produces all the relevant combinations or inputs and orders
+ # which produces all the relevant combinations or inputs and orders
# thereof. We have to manually assess whether or not ECH is expected to
# work for each case.
cli_test "$turl" 0 0
# add to list of bad runs (updating file age)
echo "ECH badness at $NOW" >>"$LTOP"/bad_runs
exit 2
-
r.check_stats(http_status=200, count=1)
assert r.stats[0]['time_connect'] > 0, f'{r.stats[0]}'
assert r.stats[0]['time_appconnect'] > 0, f'{r.stats[0]}'
-
-
r.check_exit_code(0)
srcfile = os.path.join(httpd.docs_dir, docname)
self.check_downloads(client, srcfile, count)
-
else:
r.check_exit_code(0)
r.check_response(http_status=200, count=count)
-
'--expect100-timeout', f'{read_delay-1}'
])
r.check_stats(count=1, http_status=200, exitcode=0)
-
else:
r.check_response(count=1, http_status=200,
protocol='HTTP/2' if proto == 'h2' else 'HTTP/1.1')
-
f'greater than "time_starttransfer", {s}'
# assert that transfer start is before total
assert s['time_starttransfer'] <= s['time_total'], f'"time_starttransfer" '\
- f'greater than "time_total", {s}'
\ No newline at end of file
+ f'greater than "time_total", {s}'