Remove compat code for OpenSSL < 0.9.7.
Resyncs that code with OpenBSD upstream.
This commit is contained in:
parent
608ec1f62f
commit
8fed0a5fe7
4
sshkey.c
4
sshkey.c
|
@ -3513,11 +3513,7 @@ sshkey_private_pem_to_blob(struct sshkey *key, struct sshbuf *blob,
|
||||||
int success, r;
|
int success, r;
|
||||||
int blen, len = strlen(_passphrase);
|
int blen, len = strlen(_passphrase);
|
||||||
u_char *passphrase = (len > 0) ? (u_char *)_passphrase : NULL;
|
u_char *passphrase = (len > 0) ? (u_char *)_passphrase : NULL;
|
||||||
#if (OPENSSL_VERSION_NUMBER < 0x00907000L)
|
|
||||||
const EVP_CIPHER *cipher = (len > 0) ? EVP_des_ede3_cbc() : NULL;
|
|
||||||
#else
|
|
||||||
const EVP_CIPHER *cipher = (len > 0) ? EVP_aes_128_cbc() : NULL;
|
const EVP_CIPHER *cipher = (len > 0) ? EVP_aes_128_cbc() : NULL;
|
||||||
#endif
|
|
||||||
const u_char *bptr;
|
const u_char *bptr;
|
||||||
BIO *bio = NULL;
|
BIO *bio = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue