diff options
author | Anderson Toshiyuki Sasaki <ansasaki@redhat.com> | 2018-07-31 16:15:01 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-08-03 16:43:03 +0200 |
commit | 9305762fcd16956d23451a0b2d43dabb6552d4aa (patch) | |
tree | d761be319b1a8eb766ad548214d084034a590aa9 /src/pki_mbedcrypto.c | |
parent | e0e0d62a71401a7f85c42f46363d05bd79421888 (diff) | |
download | libssh-9305762fcd16956d23451a0b2d43dabb6552d4aa.tar.gz libssh-9305762fcd16956d23451a0b2d43dabb6552d4aa.tar.xz libssh-9305762fcd16956d23451a0b2d43dabb6552d4aa.zip |
Remove internal calls to ssh_init
Since the call is made automatically when the library is loaded, these
calls are no longer required (if the library is not linked statically).
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/pki_mbedcrypto.c')
-rw-r--r-- | src/pki_mbedcrypto.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/pki_mbedcrypto.c b/src/pki_mbedcrypto.c index acef7ee1..3263db47 100644 --- a/src/pki_mbedcrypto.c +++ b/src/pki_mbedcrypto.c @@ -74,10 +74,6 @@ ssh_key pki_private_key_from_base64(const char *b64_key, const char *passphrase, size_t b64len = strlen(b64_key) + 1; unsigned char tmp[MAX_PASSPHRASE_SIZE] = {0}; - if (ssh_init() < 0) { - return NULL; - } - type = pki_privatekey_type_from_string(b64_key); if (type == SSH_KEYTYPE_UNKNOWN) { SSH_LOG(SSH_LOG_WARN, "Unknown or invalid private key."); |