test3021 (832B)
1 <testcase> 2 <info> 3 <keywords> 4 SFTP 5 server key check 6 SHA256 7 </keywords> 8 </info> 9 10 # 11 # Server-side 12 <reply> 13 <data> 14 test 15 </data> 16 </reply> 17 18 # 19 # Client-side 20 <client> 21 # so far only the libssh2 backend supports SHA256 22 <features> 23 libssh2 24 </features> 25 <server> 26 sftp 27 </server> 28 <name> 29 SFTP correct sha256 host key 30 </name> 31 <command> 32 --hostpubsha256 %SSHSRVSHA256 --key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%SFTP_PWD/%LOGDIR/file%TESTNUMBER.txt 33 </command> 34 <setenv> 35 # Needed for MSYS2 to not treat the argument as a POSIX path list 36 # that has to be converted to Windows paths 37 MSYS2_ARG_CONV_EXCL=* 38 </setenv> 39 <file name="%LOGDIR/file%TESTNUMBER.txt"> 40 test 41 </file> 42 </client> 43 44 # 45 # Verify data after the test has been "shot" 46 <verify> 47 <errorcode> 48 0 49 </errorcode> 50 </verify> 51 </testcase>