-
Notifications
You must be signed in to change notification settings - Fork 806
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
Add metrics for negotiated group with client #11844
base: master
Are you sure you want to change the base?
Add metrics for negotiated group with client #11844
Conversation
int nid = SSL_get_negotiated_group(const_cast<SSL *>(ssl)); | ||
#endif | ||
if (nid != NID_undef) { | ||
if (auto it = tls_group_map.find(nid); it != tls_group_map.end()) { |
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.
We should have OTHER, otherwise we'd see a mysterious drop when SSL libraries and clients support a new group.
#9623
And the table could be autogenerated if the library used has SSL_get_all_group_names
. Only users who use SSL library that doesn't have the function would be affected if new groups are added.
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.
Yeh, I was thinking the same thing. Will do them.
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.
BoringSSL has an API to get NID from group name?
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.
No, it doesn't. Look at cipher_map
. Its key is a string, not NID. It may not be great in terms of calculating the hash, but if we really care about it, I suppose we could use the pointer for the const char.
5b48887
to
0ff7688
Compare
Like TLS ciphers.
The
SSL_get_negotiated_group
is introduced by OpenSSL 3.0.0 (and BoringSSL), so this doesn't work with OpenSSL 1.1.1 and older.