mirror of
https://git.freebsd.org/ports.git
synced 2025-05-28 17:06:32 -04:00
26 lines
670 B
C++
26 lines
670 B
C++
--- source/libike/manager.file.cpp.orig 2011-02-06 16:40:00 UTC
|
|
+++ source/libike/manager.file.cpp
|
|
@@ -679,11 +679,11 @@ bool _CONFIG_MANAGER::file_pcf_load( CONFIG & config,
|
|
BDATA pwd;
|
|
data.get( pwd );
|
|
|
|
- EVP_CIPHER_CTX ctx_cipher;
|
|
- EVP_CIPHER_CTX_init( &ctx_cipher );
|
|
+ EVP_CIPHER_CTX *ctx_cipher;
|
|
+ ctx_cipher = EVP_CIPHER_CTX_new();
|
|
|
|
EVP_CipherInit_ex(
|
|
- &ctx_cipher,
|
|
+ ctx_cipher,
|
|
EVP_des_ede3_cbc(),
|
|
NULL,
|
|
key,
|
|
@@ -691,7 +691,7 @@ bool _CONFIG_MANAGER::file_pcf_load( CONFIG & config,
|
|
0 );
|
|
|
|
EVP_Cipher(
|
|
- &ctx_cipher,
|
|
+ ctx_cipher,
|
|
pwd.buff(),
|
|
pwd.buff(),
|
|
( unsigned int ) pwd.size() );
|