1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

pki_gcrypt: Add pki_private_key_to_pem() stub.

This commit is contained in:
Andreas Schneider
2013-11-27 20:02:43 +01:00
parent ecb01e05a2
commit a375b6c996
2 changed files with 18 additions and 0 deletions

View File

@@ -51,6 +51,11 @@ ssh_key pki_private_key_from_base64(const char *b64_key,
ssh_auth_callback auth_fn, ssh_auth_callback auth_fn,
void *auth_data); 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 */ /* SSH Public Key Functions */
int pki_pubkey_build_dss(ssh_key key, int pki_pubkey_build_dss(ssh_key key,
ssh_string p, ssh_string p,

View File

@@ -591,6 +591,19 @@ int pki_key_ecdsa_nid_from_name(const char *name)
} }
#endif #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, ssh_key pki_private_key_from_base64(const char *b64_key,
const char *passphrase, const char *passphrase,
ssh_auth_callback auth_fn, ssh_auth_callback auth_fn,