ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/crypto.C
(Generate patch)

Comparing gvpe/src/crypto.C (file contents):
Revision 1.1 by root, Thu Jun 30 11:43:38 2016 UTC vs.
Revision 1.2 by root, Thu Jun 30 16:31:00 2016 UTC

51#else 51#else
52 HMAC_CTX_free (ctx); 52 HMAC_CTX_free (ctx);
53#endif 53#endif
54} 54}
55 55
56cipher::cipher ()
57{
58#if OPENSSL_VERSION_NUMBER < 0x10100000
59 require (ctx = (EVP_CIPHER_CTX *)OPENSSL_malloc (sizeof (*ctx)));
60 EVP_CIPHER_CTX_init (ctx);
61#else
62 require (ctx = EVP_CIPHER_CTX_new ());
63#endif
64}
56 65
66cipher::~cipher ()
67{
68#if OPENSSL_VERSION_NUMBER < 0x10100000
69 EVP_CIPHER_CTX_cleanup (ctx);
70 OPENSSL_free (ctx);
71#else
72 EVP_CIPHER_CTX_free (ctx);
73#endif
74}
75
76

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines