1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

pki: Use consistent API for ssh_pki_export_pubkey_blob().

This commit is contained in:
Andreas Schneider
2011-08-30 10:16:53 +02:00
parent e236577503
commit 60b92e458e
7 changed files with 45 additions and 23 deletions

View File

@@ -415,8 +415,8 @@ static ssh_buffer ssh_msg_userauth_build_digest(ssh_session session,
}
/* Add the publickey as blob */
str = ssh_pki_export_pubkey_blob(msg->auth_request.pubkey);
if (str == NULL) {
rc = ssh_pki_export_pubkey_blob(msg->auth_request.pubkey, &str);
if (rc < 0) {
ssh_buffer_free(buffer);
return NULL;
}