diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-26 21:46:56 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-26 21:46:56 +0200 |
commit | 1d734f16cf6bb8561e9f3f987bae4178b7e81560 (patch) | |
tree | f369107c169687fbfad6170291bbfa4490386534 /src | |
parent | 5a0735d1e8ba67cf2cc3d035eec15a15bfb1aa0e (diff) | |
download | libssh-1d734f16cf6bb8561e9f3f987bae4178b7e81560.tar.gz libssh-1d734f16cf6bb8561e9f3f987bae4178b7e81560.tar.xz libssh-1d734f16cf6bb8561e9f3f987bae4178b7e81560.zip |
legacy: Remove privatekey_from_base64().
This function has been introduced for libssh 0.6. So we can remove it
completely.
Diffstat (limited to 'src')
-rw-r--r-- | src/legacy.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/legacy.c b/src/legacy.c index 4c52d981..2789b1cb 100644 --- a/src/legacy.c +++ b/src/legacy.c @@ -343,40 +343,6 @@ char *string_to_char(ssh_string str){ return ssh_string_to_char(str); } -ssh_private_key privatekey_from_base64(ssh_session session, - const char *b64_pkey, - int type, - const char *passphrase) { - ssh_auth_callback auth_fn = NULL; - void *auth_data = NULL; - ssh_private_key privkey; - ssh_key key; - - (void) type; /* unused */ - - if (session->common.callbacks) { - auth_fn = session->common.callbacks->auth_function; - auth_data = session->common.callbacks->userdata; - } - - key = pki_private_key_from_base64(b64_pkey, passphrase, auth_fn, auth_data); - if (key == NULL) { - return NULL; - } - - privkey = malloc(sizeof(struct ssh_private_key_struct)); - if (privkey == NULL) { - ssh_key_free(key); - return NULL; - } - - privkey->type = key->type; - privkey->dsa_priv = key->dsa; - privkey->rsa_priv = key->rsa; - - return privkey; -} - ssh_private_key privatekey_from_file(ssh_session session, const char *filename, int type, |