Browse Source

EVP_CIPHER_CTX_key_length -> EVP_CIPHER_key_length

David Rose 18 years ago
parent
commit
c9658e78c7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dtool/src/prc/encryptStreamBuf.cxx

+ 1 - 1
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) {