diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-15 20:47:12 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-16 00:47:43 +0200 |
commit | 3f70bce3734e05a67b0aef21ed1672e17ba6ffc0 (patch) | |
tree | 6220d5d38fbf29c49c74942f1e8ec0ccc82eef16 /src | |
parent | 6c1b508efd5c8d5081d26d2c085f201ebeafaa0b (diff) | |
download | libssh-3f70bce3734e05a67b0aef21ed1672e17ba6ffc0.tar.gz libssh-3f70bce3734e05a67b0aef21ed1672e17ba6ffc0.tar.xz libssh-3f70bce3734e05a67b0aef21ed1672e17ba6ffc0.zip |
pki: Rename ssh_pki_publickey_to_string and make it public.
Diffstat (limited to 'src')
-rw-r--r-- | src/pki.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -622,14 +622,17 @@ ssh_key ssh_pki_publickey_from_privatekey(const ssh_key privkey) { } /** - * @brief Create a ssh string from a public key. + * @brief Create a key_blob from a public key. + * + * The "key_blob" is encoded as per RFC 4253 section 6.6 "Public Key + * Algorithms" for any of the supported protocol 2 key types. * * @param[in] key A public or private key to create the public ssh_string * from. * - * @return The string or NULL on error. + * @return The key_blob or NULL on error. */ -ssh_string ssh_pki_publickey_to_string(const ssh_key key) +ssh_string ssh_pki_publickey_to_blob(const ssh_key key) { if (key == NULL) { return NULL; |