Skip to content

Commit

Permalink
tests/key.scm: Bugfix: Handle DSA deprecation properly
Browse files Browse the repository at this point in the history
* tests/key.scm: Bugfix: Don't try to load a DSA key when DSA is not
supported.
  • Loading branch information
artyom-poptsov committed Sep 24, 2024
1 parent bbff63f commit c135950
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/key.scm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;;; key.scm -- Testing of Guile-SSH keys

;; Copyright (C) 2014-2022 Artyom V. Poptsov <[email protected]>
;; Copyright (C) 2014-2024 Artyom V. Poptsov <[email protected]>
;;
;; This file is a part of Guile-SSH.
;;
Expand Down Expand Up @@ -70,7 +70,8 @@
(private-key-from-file %ecdsakey))

(define *rsa-pub-key* (public-key-from-file %rsakey-pub))
(define *dsa-pub-key* (public-key-from-file %dsakey-pub))
(define *dsa-pub-key* (and (dsa-support?)
(public-key-from-file %dsakey-pub)))
(define *ecdsa-pub-key* (when-openssl
(public-key-from-file %ecdsakey-pub)))

Expand Down

0 comments on commit c135950

Please sign in to comment.