diff options
author | milo <milo@r0ot.me> | 2011-03-09 13:49:04 +0100 |
---|---|---|
committer | milo <milo@r0ot.me> | 2011-04-14 14:05:44 +0200 |
commit | c1f65492f7a5b80cbe76b58ae1f4798f502fad4a (patch) | |
tree | bb5c658e719a771bc481202043f2b8383fed554b /include/libssh/pki.h | |
parent | c5db7674ec1a6ce05a10f1efee3d64ec636c0026 (diff) | |
download | libssh-c1f65492f7a5b80cbe76b58ae1f4798f502fad4a.tar.gz libssh-c1f65492f7a5b80cbe76b58ae1f4798f502fad4a.tar.xz libssh-c1f65492f7a5b80cbe76b58ae1f4798f502fad4a.zip |
[pki] Added conversion functions to migrate seemlessly to ssh_key
Diffstat (limited to 'include/libssh/pki.h')
-rw-r--r-- | include/libssh/pki.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libssh/pki.h b/include/libssh/pki.h index 9d023c8c..fe83fc51 100644 --- a/include/libssh/pki.h +++ b/include/libssh/pki.h @@ -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_ */ |