Skip to content

Commit

Permalink
Merge branch 'master' into development/facilitate-lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
pwielders authored Dec 17, 2024
2 parents 9d6c3d3 + e032a10 commit 92aa671
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/cryptalgo/SecureSocketPort.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
Expand Down 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 92aa671

Please sign in to comment.