Skip to content

Commit

Permalink
Fixed de-allocation for old openssl versions
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelZohner committed Feb 14, 2017
1 parent 5da203b commit c0a3c40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util/crypto/crypto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ crypto::~crypto() {
free(aes_hash_buf_y1);
free(aes_hash_buf_y2);

#ifdef OPENSSL_OPAQUE_EVP_CIPHER_CTX
clean_aes_key(&aes_hash_key);
clean_aes_key(&aes_enc_key);
clean_aes_key(&aes_dec_key);
#endif
}


Expand Down

0 comments on commit c0a3c40

Please sign in to comment.