Skip to content

Commit

Permalink
tests/key ("encrypted key: RSA: access denied"): New test
Browse files Browse the repository at this point in the history
* tests/key.scm ("encrypted key: RSA: access denied"): New test.
  • Loading branch information
artyom-poptsov committed Dec 16, 2023
1 parent 7eb6307 commit c7b4668
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/key.scm
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@
#:auth-callback (lambda (prompt max-len echo? verify? userdata)
"123")))

(test-error-with-log "encrypted key: RSA: access denied"
(private-key-from-file %rsakey-encrypted
#:auth-callback (lambda (prompt max-len echo? verify? userdata)
#f)))

(unless-dsa-supported
(test-skip "encrypted key: DSS"))
(test-assert-with-log "encrypted key: DSS"
Expand Down

0 comments on commit c7b4668

Please sign in to comment.