-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
Expand SSLSessionId
structure to manage allocated memory.
#1614
Conversation
d479f61
to
cfd185d
Compare
typedef struct { | ||
/** @brief Manages buffer to store SSL Session ID | ||
*/ | ||
struct SSLSessionId { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TcpConnection.h is starting to have too much code that is not strictly Tcp related but SSL related. Can you put SSLSessionId, SslFingerprintType, SSLFingerprints and SSLKeyCertPair into a separate header file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you put SSLSessionId, SslFingerprintType, SSLFingerprints and SSLKeyCertPair into a separate header file?
Sorry, I was not clear enough. I've meant one header file and not header file per structure. Can you put them back to one header file OR create a separate header file in which all new SSL related header files are included?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll be elaborating on SSLFingerprints
so thought it best to split them functionally - it's like the 'fingerprint API' header. Yes, can certainly use a common header - is it worth having an SSL
sub-folder perhaps? Could add SslValidator into that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good. Just move the SSL related code to a separate header file.
It occurred to me doing all this that all three structures could be more easily implemented using |
Sounds good to me. In it you can put also the SSL Validator stuff.
That would be great. As long as it simplifies the code. |
There are a few naming inconsistencies:
Do you want those changed, or left as-is? |
Yes, please. Make them consistent. Since we don't use all caps for abbreviations, for example for TCP* we use Tcp*, I would suggest that we follow the same rule also for SSL. That said SSL* should be Ssl*. |
a7aa4ac
to
e26406b
Compare
SSLFingerprints -> SslFingerprints SSLKeyCertPair -> SslKeyCertPair SSL SessionId -> SslSessionId Definitions included for old versions but will generate compiler warning.
Change from `struct` to `class`. Data no longer directly accessible.
e26406b
to
8e73993
Compare
@mikee47 Mike, before I merge this PR can you provide a list of incompatible changes? |
@slaff None of these changes should break users' applications as neither Possible breaking changes:
Deprecated so old version still works with compiler warning:
|
No description provided.