Hi Patrick,
We'd get to it eventually, but it would certainly be helpful to get a
PR. It's true that Org.BouncyCastle.Tls is a port from bc-java, but
unlike some other APIs this one is up-to-date (putting aside the absence
of JSSE and JCA/JCE equivalents). So PRing to bc-csharp is fine.
Please ensure you are working from the latest in
https://github.com/bcgit/bc-csharp, which is now a netstandard20/net60
project in preparation for a 2.0 release.
Regards,
Pete Dettman
On 7/21/2022 7:53 PM, monkey....@gmail.com wrote:
Hello,
are there any plans to support DTLS connection IDs
(draft-ietf-tls-dtls-connection-id / RFC 9146, see
https://datatracker.ietf.org/doc/rfc9146/ ) in BouncyCastle? I've looked at
both the C# and Java versions and neither of them seem to support this yet.
I've tried adding support myself (without recompiling BouncyCastle) by
overriding methods (mainly PskTlsServer.ProcessClientExtensions() and
PskTlsServer.GetServerExtensions()), but I'm stuck at the DtlsRecordLayer,
which doesn't support the connection_id Content Type (25) and is internal,
so I can't easily override it.
I'm assuming the Java version is the primary version and the C# version is
only a port, so I'm not sure if it would be helpful if I tried implementing
it in C# myself (and submit a pull request).
Best Regards
Patrick Krämer