version 1.94, 2010/03/01 11:07:06 |
version 1.95, 2010/04/16 01:47:26 |
|
|
xasprintf(&certpath, "%s-cert.pub", filename); |
xasprintf(&certpath, "%s-cert.pub", filename); |
if ((cert = key_load_public(certpath, NULL)) != NULL) { |
if ((cert = key_load_public(certpath, NULL)) != NULL) { |
/* Graft with private bits */ |
/* Graft with private bits */ |
if (key_to_certified(private) != 0) |
if (key_to_certified(private, key_cert_is_legacy(cert)) != 0) |
fatal("%s: key_to_certified failed", __func__); |
fatal("%s: key_to_certified failed", __func__); |
key_cert_copy(cert, private); |
key_cert_copy(cert, private); |
key_free(cert); |
key_free(cert); |