/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos-keygen

  • Committer: Teddy Hogeborn
  • Date: 2017-08-20 13:54:01 UTC
  • Revision ID: teddy@recompile.se-20170820135401-nbm84h6hhyy40dr2
Bug fix: Detect failure of ssh-keyscan in mandos-keygen --password.

* mandos-keygen: Detect failure of ssh-keyscan in --password mode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
289
289
        for ssh_keytype in ecdsa-sha2-nistp256 ed25519 rsa; do
290
290
            set +e
291
291
            ssh_fingerprint="`ssh-keyscan -t $ssh_keytype localhost 2>/dev/null`"
 
292
            err=$?
292
293
            set -e
293
 
            if [ $? -ne 0 ]; then
 
294
            if [ $err -ne 0 ]; then
294
295
                ssh_fingerprint=""
295
296
                continue
296
297
            fi