conch-ciphers.sh 797 B

12345678910111213141516171819202122232425262728
  1. # $OpenBSD: conch-ciphers.sh,v 1.4 2019/07/05 04:12:46 dtucker Exp $
  2. # Placed in the Public Domain.
  3. tid="conch ciphers"
  4. if test "x$REGRESS_INTEROP_CONCH" != "xyes"; then
  5. echo "conch interop tests not enabled"
  6. exit 0
  7. fi
  8. start_sshd
  9. for c in aes256-ctr aes256-cbc aes192-ctr aes192-cbc aes128-ctr aes128-cbc \
  10. cast128-cbc blowfish 3des-cbc; do
  11. verbose "$tid: cipher $c"
  12. rm -f ${COPY}
  13. # XXX the 2nd "cat" seems to be needed because of buggy FD handling
  14. # in conch
  15. ${CONCH} --identity $OBJ/ssh-rsa_oldfmt --port $PORT --user $USER -e none \
  16. --known-hosts $OBJ/known_hosts --notty --noagent --nox11 -n \
  17. 127.0.0.1 "cat ${DATA}" 2> /dev/null | cat > ${COPY}
  18. if [ $? -ne 0 ]; then
  19. fail "ssh cat $DATA failed"
  20. fi
  21. cmp ${DATA} ${COPY} || fail "corrupted copy"
  22. done
  23. rm -f ${COPY}