1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

pki: Cleanup pki header.

This commit is contained in:
Andreas Schneider
2011-08-15 17:42:11 +02:00
parent 962bdb1eea
commit c77b23b32a
3 changed files with 123 additions and 14 deletions

View File

@@ -609,6 +609,15 @@ ssh_key ssh_pki_publickey_from_privatekey(const ssh_key privkey) {
return pki_key_dup(privkey, 1);
}
int ssh_pki_publickey_to_string(const ssh_key key, ssh_string *pstr)
{
if (key == NULL || pstr == NULL) {
return SSH_ERROR;
}
return pki_publickey_to_string(key, pstr);
}
/*
* This function signs the session id (known as H) as a string then
* the content of sigbuf */