On Sun, Jul 19, 2026 at 09:25:02AM +0100, Jeremy Harris via Exim-dev wrote:

> > As for "tuples", which are sub-lists of roughly equivalent key exchange
> > methods (KEMs or (EC)DHE groups) with the overall setting being a list
> > of said tuples, those are new as of OpenSSL 3.5.  So I am not aware of
> > anything related to setting key exchange "groups" that is specifically
> > dependent on OpenSSL 3.3 and up.
> 
> I was going by the documentation:
> 
> https://docs.openssl.org/master/man3/SSL_CTX_set1_curves/#see-also
> 
> "Support for ignoring unknown groups in SSL_CTX_set1_groups_list()
>  and SSL_set1_groups_list() was added in OpenSSL 3.3."
> 
> - which I read as "not full support until then".  Perhaps that should
> be amended to cover the "tuples" point?

That's a syntax extension, allowing the user to write:

    ?MAYBE-A-GROUP:X25519:P-256

to indicate that "MAYBE-A-GROUP" should be ignored if not present.
Prior to OpenSSL 3.3 that syntax was not available.  The API was
and remains fully supported since OpenSSL 1.1.0, what's changed
is gradual addition of new syntax.

In 3.3 support for "?" modifiers was added, see above.

In 3.5 support for group tuples was added, with "*" modifiers (ignored
server-side) to tag groups used for keyshare prediction and "/"
separators between group "tuples" as described in the 3.5 and later
docs.

Also the "DEFAULT" pseudo group was added along with a new "-" modifier
to support removal of groups:

    X25519MLKEM768:DEFAULT:-?secp521r1:-?curvesm2

Note that to catch typos, when that overrides concerns about portability
of the setting to older releases or custom configurations with only a
subset of algorithms, by default unknown groups lead to an error even
when marked for removal.

Bottom line, in terms of API, whatever string the user configures can be
passed to SSL_set1_groups_list(3) ever since 1.1.0, what changes
backwards-compatibly is the supported syntax, which expands in OpenSSL
3.3, and then again in OpenSSL 3.5.

-- 
    Viktor.  🇺🇦 Слава Україні!

-- 
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
##   [email protected]
## Exim details at https://www.exim.org/
## Please use the Wiki with this list - https://code.exim.org/exim/wiki/wiki

Reply via email to