putty-kex.sh 552 B

12345678910111213141516171819202122
  1. # $OpenBSD: putty-kex.sh,v 1.5 2020/01/23 03:24:38 dtucker Exp $
  2. # Placed in the Public Domain.
  3. tid="putty KEX"
  4. if test "x$REGRESS_INTEROP_PUTTY" != "xyes"; then
  5. echo "putty interop tests not enabled"
  6. exit 0
  7. fi
  8. for k in dh-gex-sha1 dh-group1-sha1 dh-group14-sha1 ecdh; do
  9. verbose "$tid: kex $k"
  10. cp ${OBJ}/.putty/sessions/localhost_proxy \
  11. ${OBJ}/.putty/sessions/kex_$k
  12. echo "KEX=$k" >> ${OBJ}/.putty/sessions/kex_$k
  13. env HOME=$PWD ${PLINK} -load kex_$k -batch -i ${OBJ}/putty.rsa2 true
  14. if [ $? -ne 0 ]; then
  15. fail "KEX $k failed"
  16. fi
  17. done