aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_pkey_ec.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-02-05 23:19:00 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-05-02 14:49:33 +0900
commit679b6f490671439d1bc50ef4371d9fb3bbba0e29 (patch)
tree7455e536980da7b6633d0697bf1a0c0294565bf2 /ext/openssl/ossl_pkey_ec.c
parent6a14a591065a88a1f5fce3fb062b84977f924006 (diff)
downloadruby-openssl-679b6f490671439d1bc50ef4371d9fb3bbba0e29.tar.gz
cipher: rename GetCipherPtr() to ossl_evp_get_cipherbyname()
While GetCipherPtr() function gets a const EVP_CIPHER * from algorithm name, GetCipher() macro that is locally defined in ext/openssl/ossl_cipher.c gets the EVP_CIPHER_CTX from an OpenSSL::Cipher object. They are completely different things. Rename GetCipherPtr() for disambiguation.
Diffstat (limited to 'ext/openssl/ossl_pkey_ec.c')
-rw-r--r--ext/openssl/ossl_pkey_ec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_pkey_ec.c b/ext/openssl/ossl_pkey_ec.c
index 0c389d25..eb841fb7 100644
--- a/ext/openssl/ossl_pkey_ec.c
+++ b/ext/openssl/ossl_pkey_ec.c
@@ -446,7 +446,7 @@ static VALUE ossl_ec_key_to_string(VALUE self, VALUE ciph, VALUE pass, int forma
private = 1;
if (!NIL_P(ciph)) {
- cipher = GetCipherPtr(ciph);
+ cipher = ossl_evp_get_cipherbyname(ciph);
pass = ossl_pem_passwd_value(pass);
}