mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-24 06:59:27 -05:00
fix the length of the encrypting ssl passphrase
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1738 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
62452ed3c5
commit
6f7b21944c
@ -1246,7 +1246,7 @@ int RsInit::LoadCertificates(bool autoLoginNT)
|
||||
std::cerr << "opening sslPassphraseFile. : " << RsInitConfig::ssl_passphrase_file.c_str() << std::endl;
|
||||
gpgme_data_t cipher;
|
||||
gpgme_data_t plain;
|
||||
gpgme_data_new_from_mem(&plain, sslPassword, sizeof(sslPassword), 0);
|
||||
gpgme_data_new_from_mem(&plain, sslPassword, strlen(sslPassword), 0);
|
||||
gpgme_error_t error_reading_file = gpgme_data_new_from_stream (&cipher, sslPassphraseFile);
|
||||
if (0 < authMgr->encryptText(plain, cipher)) {
|
||||
std::cerr << "Encrypting went ok !" << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user