From e032a1063ff007e638a10214f47a0f9b81561f1b Mon Sep 17 00:00:00 2001 From: MFransen69 <39826971+MFransen69@users.noreply.github.com> Date: Thu, 12 Dec 2024 18:55:16 +0100 Subject: [PATCH] [secsoc] fix warning (#1812) * [secsoc] fix warning * Update SecureSocketPort.cpp --- Source/cryptalgo/SecureSocketPort.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/cryptalgo/SecureSocketPort.cpp b/Source/cryptalgo/SecureSocketPort.cpp index 0b5379583..c1a57eb56 100644 --- a/Source/cryptalgo/SecureSocketPort.cpp +++ b/Source/cryptalgo/SecureSocketPort.cpp @@ -1,4 +1,4 @@ -/* +/* * If not stated otherwise in this file or this component's LICENSE file the * following copyright and licenses apply: * @@ -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(static_cast(password.c_str())));