New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initialisation of _socketIndex in SSLManager (OpenSSL) #4134
Comments
In current version of PocoLib the index is _contextIndex and in constructor
so probably you are talking about an old version? |
I am talking about one more member _socketIndex, whose value is referred in SecureSocketImpl.cpp in order to store and retrieve user data in _pSSL (SSL*). This needs to be instantiated properly as well. While _contextIndex is instantiated and referred in Context.cpp and SSLManager.cpp |
You are right is my code not alligned to 1.12.4 |
Wait I found a strange thing. |
I am referring to the master branch on github (https://github.com/pocoproject/poco master branch) The definition of class member is in SSLManager.h (should be instantiated in SSLManager.cpp in the constructor). Value is referred in SecureSocketImpl.cpp |
Understand but the problem seems to be in the 1.12.4 tag to but not in the zip package that is strange because tag and zip should be the same. |
Well that may be one more issue to be fixed |
The class SSLManager (NetSSL_OpenSSL/include/Poco/Net/SSLManager.h) declares a variable _socketIndex, the value of which is used in SecureSocketImpl to store and retrieve application data in SSL*
This is not initialized and can lead to errors.
It should be initialized using the function SSL_get_ex_new_index in the constructor.
The text was updated successfully, but these errors were encountered: