[pki] Added conversion functions to migrate seemlessly to ssh_key

This commit is contained in:
milo
2011-03-09 13:49:04 +01:00
parent c5db7674ec
commit c1f65492f7
2 changed files with 87 additions and 0 deletions

View File

@@ -49,5 +49,11 @@ int ssh_key_import_private(ssh_key key, ssh_session session,
ssh_key ssh_pki_publickey_from_privatekey(ssh_key privkey);
/* temporary functions, to be removed after migration to ssh_key */
ssh_key ssh_pki_convert_privatekey_to_key(ssh_private_key priv);
ssh_key ssh_pki_convert_publickey_to_key(ssh_public_key pub);
ssh_private_key ssh_pki_convert_key_to_privatekey(ssh_key key);
ssh_public_key ssh_pki_convert_key_to_publickey(ssh_key key);
#endif /* PKI_H_ */