-
Notifications
You must be signed in to change notification settings - Fork 574
Expose TLS Group through MsQuic API #5030
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
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
32f14e0
Expose TLS Group through MsQuic API
nibanks 19c2bff
nit: space
nibanks 089af77
Bindings and rename
nibanks 170f46b
Make mac build happy
nibanks e33ba93
Some docs
nibanks 1d28db1
Merge branch 'main' into tls-group
nibanks 2889424
Merge branch 'main' into tls-group
nibanks File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
QUIC_HANDSHAKE_INFO structure | ||
====== | ||
|
||
Used to return the various algorithms negotiated during the TLS handshake. | ||
|
||
# Syntax | ||
|
||
```C | ||
typedef struct QUIC_HANDSHAKE_INFO { | ||
QUIC_TLS_PROTOCOL_VERSION TlsProtocolVersion; | ||
QUIC_CIPHER_ALGORITHM CipherAlgorithm; | ||
int32_t CipherStrength; | ||
QUIC_HASH_ALGORITHM Hash; | ||
int32_t HashStrength; | ||
QUIC_KEY_EXCHANGE_ALGORITHM KeyExchangeAlgorithm; | ||
int32_t KeyExchangeStrength; | ||
QUIC_CIPHER_SUITE CipherSuite; | ||
QUIC_TLS_GROUP TlsGroup; // Added in v2.5 | ||
} QUIC_HANDSHAKE_INFO; | ||
``` | ||
|
||
# Members | ||
|
||
#### `TlsProtocolVersion` | ||
|
||
Indicates which version of TLS was negotiated. | ||
|
||
`QUIC_TLS_PROTOCOL_UNKNOWN` | ||
|
||
An unknown or unexpected value was used. | ||
|
||
`QUIC_TLS_PROTOCOL_1_3` | ||
|
||
Version 1.3 was negotiated. This is currently the only expected value to be returned. | ||
|
||
#### `CipherAlgorithm` | ||
|
||
The `QUIC_CIPHER_ALGORITHM` negotiated. | ||
|
||
#### `CipherStrength` | ||
|
||
TODO | ||
|
||
#### `Hash` | ||
|
||
The `QUIC_HASH_ALGORITHM` negotiated. | ||
|
||
#### `HashStrength` | ||
|
||
TODO | ||
|
||
#### `KeyExchangeAlgorithm` | ||
|
||
The `QUIC_KEY_EXCHANGE_ALGORITHM` negotiated. | ||
|
||
#### `KeyExchangeStrength` | ||
|
||
TODO | ||
|
||
#### `CipherSuite` | ||
|
||
The `QUIC_CIPHER_SUITE` negotiated. | ||
|
||
#### `TlsGroup` | ||
|
||
The `QUIC_TLS_GROUP` negotiated. | ||
|
||
> **Note** - This field is not supported before MsQuic version v2.5. Calls to older versions of MsQuic will indicate a final output length not including this field. Additionally, older callers that use the old version of the struct will still work, and MsQuic will not try to write this field. | ||
|
||
# Remarks | ||
|
||
This may be queries for a connection after the handshake has completed via a call to [GetParam](GetParam.md) by using the `QUIC_PARAM_TLS_HANDSHAKE_INFO` parameter. | ||
|
||
# See Also | ||
|
||
[GetParam](GetParam.md)<br> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.