summaryrefslogtreecommitdiffstats
path: root/src/pki.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-15 17:42:11 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-15 18:48:08 +0200
commitc77b23b32a550a3dd52b8d2c5b3d1b177126dc54 (patch)
treecb995b46d8e2bd29100ff856de92439165e0107f /src/pki.c
parent962bdb1eea88cfa385e94c59342ce69567a8c59c (diff)
downloadlibssh-c77b23b32a550a3dd52b8d2c5b3d1b177126dc54.tar.gz
libssh-c77b23b32a550a3dd52b8d2c5b3d1b177126dc54.tar.xz
libssh-c77b23b32a550a3dd52b8d2c5b3d1b177126dc54.zip
pki: Cleanup pki header.
Diffstat (limited to 'src/pki.c')
-rw-r--r--src/pki.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pki.c b/src/pki.c
index 50c6187..004f2db 100644
--- a/src/pki.c
+++ b/src/pki.c
@@ -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 */