From c9658e78c75c5e7d82fc0c5132717888b07decd2 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 7 Sep 2007 17:07:30 +0000 Subject: [PATCH] EVP_CIPHER_CTX_key_length -> EVP_CIPHER_key_length --- dtool/src/prc/encryptStreamBuf.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtool/src/prc/encryptStreamBuf.cxx b/dtool/src/prc/encryptStreamBuf.cxx index 8572c1e9a4..a272d1fe66 100644 --- a/dtool/src/prc/encryptStreamBuf.cxx +++ b/dtool/src/prc/encryptStreamBuf.cxx @@ -256,7 +256,7 @@ open_write(ostream *dest, bool owns_dest, const string &password) { // Store the appropriate key length in the context. int key_length = (_key_length + 7) / 8; if (key_length == 0) { - key_length = EVP_CIPHER_CTX_key_length(cipher); + key_length = EVP_CIPHER_key_length(cipher); } result = EVP_CIPHER_CTX_set_key_length(&_write_ctx, key_length); if (result <= 0) {