summaryrefslogtreecommitdiff
path: root/authfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'authfile.c')
-rw-r--r--authfile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/authfile.c b/authfile.c
index 728b136a7..58f589a47 100644
--- a/authfile.c
+++ b/authfile.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: authfile.c,v 1.114 2015/04/17 13:32:09 djm Exp $ */ 1/* $OpenBSD: authfile.c,v 1.116 2015/07/09 09:49:46 markus Exp $ */
2/* 2/*
3 * Copyright (c) 2000, 2013 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000, 2013 Markus Friedl. All rights reserved.
4 * 4 *
@@ -39,13 +39,13 @@
39#include <limits.h> 39#include <limits.h>
40 40
41#include "cipher.h" 41#include "cipher.h"
42#include "key.h"
43#include "ssh.h" 42#include "ssh.h"
44#include "log.h" 43#include "log.h"
45#include "authfile.h" 44#include "authfile.h"
46#include "rsa.h" 45#include "rsa.h"
47#include "misc.h" 46#include "misc.h"
48#include "atomicio.h" 47#include "atomicio.h"
48#include "sshkey.h"
49#include "sshbuf.h" 49#include "sshbuf.h"
50#include "ssherr.h" 50#include "ssherr.h"
51#include "krl.h" 51#include "krl.h"
@@ -448,8 +448,8 @@ sshkey_load_private_cert(int type, const char *filename, const char *passphrase,
448 case KEY_RSA: 448 case KEY_RSA:
449 case KEY_DSA: 449 case KEY_DSA:
450 case KEY_ECDSA: 450 case KEY_ECDSA:
451 case KEY_ED25519:
452#endif /* WITH_OPENSSL */ 451#endif /* WITH_OPENSSL */
452 case KEY_ED25519:
453 case KEY_UNSPEC: 453 case KEY_UNSPEC:
454 break; 454 break;
455 default: 455 default:
@@ -467,7 +467,7 @@ sshkey_load_private_cert(int type, const char *filename, const char *passphrase,
467 goto out; 467 goto out;
468 } 468 }
469 469
470 if ((r = sshkey_to_certified(key, sshkey_cert_is_legacy(cert))) != 0 || 470 if ((r = sshkey_to_certified(key)) != 0 ||
471 (r = sshkey_cert_copy(cert, key)) != 0) 471 (r = sshkey_cert_copy(cert, key)) != 0)
472 goto out; 472 goto out;
473 r = 0; 473 r = 0;