From a375b6c996f20dbaa290fd61edb719f4e96c3363 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 27 Nov 2013 20:02:43 +0100 Subject: pki_gcrypt: Add pki_private_key_to_pem() stub. --- include/libssh/pki_priv.h | 5 +++++ src/pki_gcrypt.c | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/include/libssh/pki_priv.h b/include/libssh/pki_priv.h index 2c361e43..54a59a03 100644 --- a/include/libssh/pki_priv.h +++ b/include/libssh/pki_priv.h @@ -51,6 +51,11 @@ ssh_key pki_private_key_from_base64(const char *b64_key, ssh_auth_callback auth_fn, void *auth_data); +ssh_string pki_private_key_to_pem(const ssh_key key, + const char *passphrase, + ssh_auth_callback auth_fn, + void *auth_data); + /* SSH Public Key Functions */ int pki_pubkey_build_dss(ssh_key key, ssh_string p, diff --git a/src/pki_gcrypt.c b/src/pki_gcrypt.c index a44ed73a..2ca5e873 100644 --- a/src/pki_gcrypt.c +++ b/src/pki_gcrypt.c @@ -591,6 +591,19 @@ int pki_key_ecdsa_nid_from_name(const char *name) } #endif +ssh_string pki_private_key_to_pem(const ssh_key key, + const char *passphrase, + ssh_auth_callback auth_fn, + void *auth_data) +{ + (void) key; + (void) passphrase; + (void) auth_fn; + (void) auth_data; + + return NULL; +} + ssh_key pki_private_key_from_base64(const char *b64_key, const char *passphrase, ssh_auth_callback auth_fn, -- cgit v1.2.3