mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-12 15:41:16 +03:00
pki: Use consistent API for ssh_pki_export_privkey_to_pubkey().
This commit is contained in:
@@ -189,8 +189,8 @@ static int dh_handshake_server(ssh_session session) {
|
||||
privkey = NULL;
|
||||
}
|
||||
|
||||
pubkey = ssh_pki_publickey_from_privatekey(privkey);
|
||||
if (pubkey == NULL) {
|
||||
rc = ssh_pki_export_privkey_to_pubkey(privkey, &pubkey);
|
||||
if (rc < 0) {
|
||||
ssh_set_error(session, SSH_FATAL,
|
||||
"Could not get the public key from the private key");
|
||||
ssh_string_free(f);
|
||||
|
||||
Reference in New Issue
Block a user