blob: a9dbcb0f2b71ff34a0850231ae5020c5961cf962 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4SCP
5server sha256 key check
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<data>
13test
14</data>
15</reply>
16
17#
18# Client-side
19<client>
20# so far only the libssh2 backend supports SHA256
21<features>
22libssh2
23</features>
24<server>
25scp
26</server>
27 <name>
28SCP correct sha256 host key
29 </name>
30 <command>
31--hostpubsha256 %SSHSRVSHA256 --key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%SSH_PWD/log/file%TESTNUMBER.txt
32</command>
33<setenv>
34# Needed for MSYS2 to not treat the argument as a POSIX path list
35# that has to be converted to Windows paths
36MSYS2_ARG_CONV_EXCL=*
37</setenv>
38<file name="log/file%TESTNUMBER.txt">
39test
40</file>
41</client>
42
43#
44# Verify data after the test has been "shot"
45<verify>
46<errorcode>
470
48</errorcode>
49<valgrind>
50disable
51</valgrind>
52</verify>
53</testcase>