aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-09-05 11:02:23 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-09-05 11:28:19 +0200
commit808c7a9be4f110605e76ea5678bf0b1986cc9b38 (patch)
tree75823375575323a4b59aa6f9b381a0e3e0e2c183 /include
parent6901e25085f8924f9d83e12107c05f935bd24287 (diff)
downloadlibssh-808c7a9be4f110605e76ea5678bf0b1986cc9b38.tar.gz
libssh-808c7a9be4f110605e76ea5678bf0b1986cc9b38.tar.xz
libssh-808c7a9be4f110605e76ea5678bf0b1986cc9b38.zip
pki: Add ssh_pki_export_pubkey_rsa1().
Diffstat (limited to 'include')
-rw-r--r--include/libssh/pki.h4
-rw-r--r--include/libssh/pki_priv.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/libssh/pki.h b/include/libssh/pki.h
index 04aa3b1..d4cc850 100644
--- a/include/libssh/pki.h
+++ b/include/libssh/pki.h
@@ -85,6 +85,10 @@ int ssh_pki_export_pubkey_blob(const ssh_key key,
ssh_string *pblob);
int ssh_pki_import_pubkey_blob(const ssh_string key_blob,
ssh_key *pkey);
+int ssh_pki_export_pubkey_rsa1(const ssh_key key,
+ const char *host,
+ char *rsa1,
+ size_t rsa1_len);
/* SSH Signing Functions */
ssh_string ssh_pki_do_sign(ssh_session session, ssh_buffer sigbuf,
diff --git a/include/libssh/pki_priv.h b/include/libssh/pki_priv.h
index f90d7c8..d1ffa8a 100644
--- a/include/libssh/pki_priv.h
+++ b/include/libssh/pki_priv.h
@@ -49,6 +49,10 @@ int pki_pubkey_build_rsa(ssh_key key,
ssh_string e,
ssh_string n);
ssh_string pki_publickey_to_blob(const ssh_key key);
+int pki_export_pubkey_rsa1(const ssh_key key,
+ const char *host,
+ char *rsa1,
+ size_t rsa1_len);
/* SSH Signature Functions */
ssh_string pki_signature_to_blob(const ssh_signature sign);