quinn icon indicating copy to clipboard operation
quinn copied to clipboard

crypto: expose negotiated_cipher_suite in the hadshake data

Open BiagioFesta opened this issue 1 year ago • 1 comments

As title.

I am not totally convinced by that .expect("cipher is negotiated").

It makes sense to me: as AFAIK reaching that point always implies the cipher is negotiated, but I might have missed a edge scenario

BiagioFesta avatar Oct 04 '24 12:10 BiagioFesta

I am not totally convinced by that .expect("cipher is negotiated").

It makes to me, as AFIK reaching that point always implies the cipher is negotiated, but I might have missed a edge scenario

Once got_handshake_data is set to true, the inner TLS session is !is_handshaking() so this should be fine.

djc avatar Oct 04 '24 12:10 djc

Note this is technically a breaking change, since HandshakeData is exhaustive. Shouldn't be disruptive, though.

Ralith avatar Oct 25 '24 20:10 Ralith

I see this change has been reverted because of breaking change I guess.

Is this something we want to re-open?

BiagioFesta avatar Jan 07 '25 18:01 BiagioFesta

Yeah, absolutely. We're happy to have it, just need to defer it to the next breaking release.

Ralith avatar Jan 07 '25 19:01 Ralith

IIRC it was relanded under an internal feature flag. Would be useful to open a PR that makes it unconditional again, but it might be a while before we merge it.

djc avatar Jan 07 '25 19:01 djc

I don't think we flagged it.

Ralith avatar Jan 07 '25 19:01 Ralith