rustls: switch read_tls and write_tls to callbacks

And update to 0.6.0, including a rename from session to connection for
many fields.

Closes #7071
This commit is contained in:
Jacob Hoffman-Andrews 2021-05-14 18:45:49 -07:00 committed by Daniel Stenberg
parent 98770344b2
commit a62e6435f4
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 159 additions and 137 deletions

View file

@ -60,7 +60,7 @@ test325 test326 test327 test328 test329 test330 test331 test332 test333 \
test334 test335 test336 test337 test338 test339 test340 test341 test342 \
test343 test344 test345 test346 test347 test348 test349 test350 test351 \
test352 test353 test354 test355 test356 test357 test358 test359 test360 \
test361 test362 test363 \
test361 test362 test363 test364 \
\
test393 test394 test395 test396 test397 \
\

51
tests/data/test364 Normal file
View file

@ -0,0 +1,51 @@
<testcase>
<info>
<keywords>
HTTPS
HTTPS PUT
</keywords>
</info>
# Server-side
<reply>
<data>
HTTP/1.0 200 OK swsclose
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
blablabla
</data>
</reply>
# Client-side
<client>
<features>
SSL
</features>
<server>
https
</server>
<name>
HTTPS PUT of small file
</name>
<command>
-k https://%HOSTIP:%HTTPSPORT/we/want/%TESTNUMBER -T log/test%TESTNUMBER.txt
</command>
<file name="log/test%TESTNUMBER.txt">
%repeat[200 x banana]%
</file>
</client>
# Verify data after the test has been "shot"
<verify>
<protocol>
PUT /we/want/%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPSPORT
User-Agent: curl/%VERSION
Accept: */*
Content-Length: 1201
Expect: 100-continue
%repeat[200 x banana]%
</protocol>
</verify>
</testcase>