xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | SCP |
| 5 | server sha256 key check |
| 6 | </keywords> |
| 7 | </info> |
| 8 | |
| 9 | # |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <data> |
| 13 | test |
| 14 | </data> |
| 15 | </reply> |
| 16 | |
| 17 | # |
| 18 | # Client-side |
| 19 | <client> |
| 20 | # so far only the libssh2 backend supports SHA256 |
| 21 | <features> |
| 22 | libssh2 |
| 23 | </features> |
| 24 | <server> |
| 25 | scp |
| 26 | </server> |
| 27 | <name> |
| 28 | SCP 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 |
| 36 | MSYS2_ARG_CONV_EXCL=* |
| 37 | </setenv> |
| 38 | <file name="log/file%TESTNUMBER.txt"> |
| 39 | test |
| 40 | </file> |
| 41 | </client> |
| 42 | |
| 43 | # |
| 44 | # Verify data after the test has been "shot" |
| 45 | <verify> |
| 46 | <errorcode> |
| 47 | 0 |
| 48 | </errorcode> |
| 49 | <valgrind> |
| 50 | disable |
| 51 | </valgrind> |
| 52 | </verify> |
| 53 | </testcase> |