Skip to content

Commit

Permalink
[secsoc] fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MFransen69 committed Dec 12, 2024
1 parent d6719a0 commit 20b6d30
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Source/cryptalgo/SecureSocketPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ static int passwd_callback(char* buffer, int size, int /* flags */, void* passwo
Key::Key(const string& fileName, const string& password)
: _key(nullptr) {
BIO* bio_key = BIO_new_file(fileName.c_str(), "rb");
FILE* file = ::fopen(fileName.c_str(), "rt");

if (bio_key != nullptr) {
_key = PEM_read_bio_PrivateKey(bio_key, NULL, passwd_callback, const_cast<void*>(static_cast<const void*>(password.c_str())));
Expand Down

0 comments on commit 20b6d30

Please sign in to comment.