mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
EVP_CIPHER_CTX_key_length -> EVP_CIPHER_key_length
This commit is contained in:
parent
ae6dc87ca9
commit
c9658e78c7
@ -256,7 +256,7 @@ open_write(ostream *dest, bool owns_dest, const string &password) {
|
|||||||
// Store the appropriate key length in the context.
|
// Store the appropriate key length in the context.
|
||||||
int key_length = (_key_length + 7) / 8;
|
int key_length = (_key_length + 7) / 8;
|
||||||
if (key_length == 0) {
|
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);
|
result = EVP_CIPHER_CTX_set_key_length(&_write_ctx, key_length);
|
||||||
if (result <= 0) {
|
if (result <= 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user