From 2eb3d560e0b6794dcfe4bc31ae7675538f4ec308 Mon Sep 17 00:00:00 2001 From: joss17 Date: Thu, 15 Apr 2010 09:32:59 +0000 Subject: [PATCH] add commentary for openssl 1.0 compilation git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2713 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/authssl.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libretroshare/src/pqi/authssl.cc b/libretroshare/src/pqi/authssl.cc index 181f4e6bb..3f8cf3221 100644 --- a/libretroshare/src/pqi/authssl.cc +++ b/libretroshare/src/pqi/authssl.cc @@ -1662,6 +1662,7 @@ bool AuthSSL::encrypt(void *&out, int &outlen, const void *in, int inlen, std return false; } + //ekl=EVP_PKEY_encrypt_old (ek,key,EVP_CIPHER_CTX_key_length(&cipher_ctx), public_key); //use this line for openssl 1.0 ekl=EVP_PKEY_encrypt(ek,key,EVP_CIPHER_CTX_key_length(&cipher_ctx), public_key); /// ** copied implementation of EVP_SealInit of openssl V *** /// @@ -1768,6 +1769,7 @@ bool AuthSSL::decrypt(void *&out, int &outlen, const void *in, int inlen) return false; } + //i=EVP_PKEY_decrypt_old (key,encryptKey,ekeylen,own_private_key); //use this line for openssl 1.0 i=EVP_PKEY_decrypt(key,encryptKey,ekeylen,own_private_key); if ((i <= 0) || !EVP_CIPHER_CTX_set_key_length(&ectx, i)) {