test3021 862 B

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