Commit 0a0b2b0
ssl: expose the negotiated TLS-1.3 group in connection_information
The named group of the TLS-1.3 key exchange is negotiated via the
supported_groups and key_share extensions and is already kept in the
connection state (session.ecc), but connection_information/1,2 never
exposed it: the existing ecc item only covers pre-TLS-1.3 named-curve
cipher suites.
With the arrival of post-quantum hybrid groups (X25519MLKEM768 and
friends) the negotiated group has become operationally interesting:
an application or an operator auditing a fleet wants to know whether a
given connection actually negotiated a quantum-safe key exchange or
fell back to a classical group. Today that is only visible by packet
inspection or debug-level handshake logging.
Add a selected_group item, returned for TLS-1.3 connections on both
the client and the server side.1 parent 5cf5f97 commit 0a0b2b0
3 files changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2128 | 2128 | | |
2129 | 2129 | | |
2130 | 2130 | | |
| 2131 | + | |
2131 | 2132 | | |
2132 | 2133 | | |
2133 | 2134 | | |
| |||
2163 | 2164 | | |
2164 | 2165 | | |
2165 | 2166 | | |
| 2167 | + | |
2166 | 2168 | | |
2167 | 2169 | | |
2168 | 2170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1931 | 1931 | | |
1932 | 1932 | | |
1933 | 1933 | | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
1934 | 1943 | | |
1935 | 1944 | | |
1936 | 1945 | | |
1937 | 1946 | | |
1938 | 1947 | | |
1939 | 1948 | | |
1940 | | - | |
| 1949 | + | |
1941 | 1950 | | |
1942 | 1951 | | |
1943 | 1952 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4098 | 4098 | | |
4099 | 4099 | | |
4100 | 4100 | | |
| 4101 | + | |
| 4102 | + | |
| 4103 | + | |
| 4104 | + | |
| 4105 | + | |
| 4106 | + | |
| 4107 | + | |
| 4108 | + | |
| 4109 | + | |
4101 | 4110 | | |
4102 | 4111 | | |
4103 | 4112 | | |
| |||
0 commit comments