diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-02-05 23:19:00 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-05-02 14:49:33 +0900 |
commit | 679b6f490671439d1bc50ef4371d9fb3bbba0e29 (patch) | |
tree | 7455e536980da7b6633d0697bf1a0c0294565bf2 /ext/openssl/ossl_cipher.h | |
parent | 6a14a591065a88a1f5fce3fb062b84977f924006 (diff) | |
download | ruby-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_cipher.h')
-rw-r--r-- | ext/openssl/ossl_cipher.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_cipher.h b/ext/openssl/ossl_cipher.h index c444089f..2392d41c 100644 --- a/ext/openssl/ossl_cipher.h +++ b/ext/openssl/ossl_cipher.h @@ -13,7 +13,7 @@ extern VALUE cCipher; extern VALUE eCipherError; -const EVP_CIPHER *GetCipherPtr(VALUE); +const EVP_CIPHER *ossl_evp_get_cipherbyname(VALUE); VALUE ossl_cipher_new(const EVP_CIPHER *); void Init_ossl_cipher(void); |