aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_pkey_rsa.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_rsa.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_rsa.c')
-rw-r--r--ext/openssl/ossl_pkey_rsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_pkey_rsa.c b/ext/openssl/ossl_pkey_rsa.c
index 9f3c1725..b3c2915f 100644
--- a/ext/openssl/ossl_pkey_rsa.c
+++ b/ext/openssl/ossl_pkey_rsa.c
@@ -350,7 +350,7 @@ ossl_rsa_export(int argc, VALUE *argv, VALUE self)
rb_scan_args(argc, argv, "02", &cipher, &pass);
if (!NIL_P(cipher)) {
- ciph = GetCipherPtr(cipher);
+ ciph = ossl_evp_get_cipherbyname(cipher);
pass = ossl_pem_passwd_value(pass);
}
if (!(out = BIO_new(BIO_s_mem()))) {