diff options
author | Axel Eppe <aeppe@google.com> | 2015-08-23 17:42:21 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-09-07 13:30:14 +0200 |
commit | bdfe6870f63227a623ec3f91fad3b09c42119e77 (patch) | |
tree | 0abf11cf65b8aa38e5e927e67230719b4c81e62d /include/libssh/pki.h | |
parent | 9775f78ab2cf6cc348bad8728caf76709729a42a (diff) | |
download | libssh-bdfe6870f63227a623ec3f91fad3b09c42119e77.tar.gz libssh-bdfe6870f63227a623ec3f91fad3b09c42119e77.tar.xz libssh-bdfe6870f63227a623ec3f91fad3b09c42119e77.zip |
pki: Add certificate loading functions
- ssh_pki_import_cert_base64()
- ssh_pki_import_cert_file()
- ssh_pki_import_cert_blob()
Those functions are currently simple wrappers around their pubkey counterpart.
- ssh_pki_copy_cert_to_privkey()
This function copies the cert-specific data to a private key.
Signed-off-by: Axel Eppe <aeppe@google.com>
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/pki.h')
-rw-r--r-- | include/libssh/pki.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libssh/pki.h b/include/libssh/pki.h index b146d982..905956b3 100644 --- a/include/libssh/pki.h +++ b/include/libssh/pki.h @@ -113,6 +113,10 @@ int ssh_pki_export_pubkey_rsa1(const ssh_key key, char *rsa1, size_t rsa1_len); +int ssh_pki_import_cert_blob(const ssh_string cert_blob, + ssh_key *pkey); + + /* SSH Signing Functions */ ssh_string ssh_pki_do_sign(ssh_session session, ssh_buffer sigbuf, const ssh_key privatekey); |