diff options
Diffstat (limited to 'ssh-add.c')
-rw-r--r-- | ssh-add.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-add.c,v 1.94 2010/03/01 11:07:06 otto Exp $ */ | 1 | /* $OpenBSD: ssh-add.c,v 1.95 2010/04/16 01:47:26 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -204,7 +204,7 @@ add_file(AuthenticationConnection *ac, const char *filename) | |||
204 | xasprintf(&certpath, "%s-cert.pub", filename); | 204 | xasprintf(&certpath, "%s-cert.pub", filename); |
205 | if ((cert = key_load_public(certpath, NULL)) != NULL) { | 205 | if ((cert = key_load_public(certpath, NULL)) != NULL) { |
206 | /* Graft with private bits */ | 206 | /* Graft with private bits */ |
207 | if (key_to_certified(private) != 0) | 207 | if (key_to_certified(private, key_cert_is_legacy(cert)) != 0) |
208 | fatal("%s: key_to_certified failed", __func__); | 208 | fatal("%s: key_to_certified failed", __func__); |
209 | key_cert_copy(cert, private); | 209 | key_cert_copy(cert, private); |
210 | key_free(cert); | 210 | key_free(cert); |