Debian Codegraph @

templates/man3/SSL_CTX_set1_curves.3ssl.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:44+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # #-#-#-#-# archlinux: SSL_CTX_set1_curves.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
20 #
21 #. #-#-#-#-# archlinux: SSL_CTX_set1_curves.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
22 #. Required to disable full justification in groff 1.23.0.
23 #. ========================================================================
24 #. type: IX
25 #. #-#-#-#-# debian-trixie: SSL_CTX_set1_curves.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
26 #. ========================================================================
27 #. type: IX
28 #. #-#-#-#-# debian-unstable: SSL_CTX_set1_curves.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
29 #. ========================================================================
30 #. type: IX
31 #: archlinux debian-trixie debian-unstable
32 #, no-wrap
33 msgid "Title"
34 msgstr ""
35
36 #
37 #. Required to disable full justification in groff 1.23.0.
38 #. ========================================================================
39 #. type: IX
40 #: archlinux
41 #, no-wrap
42 msgid "SSL_CTX_SET1_CURVES 3ssl"
43 msgstr ""
44
45 #. type: TH
46 #: archlinux debian-trixie debian-unstable
47 #, no-wrap
48 msgid "SSL_CTX_SET1_CURVES"
49 msgstr ""
50
51 #. type: TH
52 #: archlinux debian-trixie debian-unstable
53 #, no-wrap
54 msgid "2026-04-07"
55 msgstr ""
56
57 #. type: TH
58 #: archlinux debian-unstable
59 #, no-wrap
60 msgid "3.6.2"
61 msgstr ""
62
63 #. type: TH
64 #: archlinux debian-trixie debian-unstable
65 #, no-wrap
66 msgid "OpenSSL"
67 msgstr ""
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable
71 #, no-wrap
72 msgid "NAME"
73 msgstr ""
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable
77 msgid ""
78 "SSL_CTX_set1_groups, SSL_CTX_set1_groups_list, SSL_set1_groups, "
79 "SSL_set1_groups_list, SSL_get1_groups, SSL_get0_iana_groups, "
80 "SSL_get_shared_group, SSL_get_negotiated_group, SSL_CTX_set1_curves, "
81 "SSL_CTX_set1_curves_list, SSL_set1_curves, SSL_set1_curves_list, "
82 "SSL_get1_curves, SSL_get_shared_curve, SSL_CTX_get0_implemented_groups \\&- "
83 "EC supported curve functions"
84 msgstr ""
85
86 #. type: IX
87 #: archlinux debian-trixie debian-unstable
88 #, no-wrap
89 msgid "SYNOPSIS"
90 msgstr ""
91
92 #. type: IX
93 #: archlinux debian-trixie debian-unstable
94 #, no-wrap
95 msgid "Header"
96 msgstr ""
97
98 #. type: Plain text
99 #: archlinux debian-trixie debian-unstable
100 #, no-wrap
101 msgid ""
102 "\\& #include E<lt>openssl/ssl.hE<gt>\n"
103 "\\&\n"
104 "\\& int SSL_CTX_set1_groups(SSL_CTX *ctx, int *glist, int glistlen);\n"
105 "\\& int SSL_CTX_set1_groups_list(SSL_CTX *ctx, char *list);\n"
106 "\\&\n"
107 "\\& int SSL_set1_groups(SSL *ssl, int *glist, int glistlen);\n"
108 "\\& int SSL_set1_groups_list(SSL *ssl, char *list);\n"
109 "\\&\n"
110 "\\& int SSL_get1_groups(SSL *ssl, int *groups);\n"
111 "\\& int SSL_get0_iana_groups(SSL *ssl, uint16_t **out);\n"
112 "\\& int SSL_get_shared_group(SSL *s, int n);\n"
113 "\\& int SSL_get_negotiated_group(SSL *s);\n"
114 "\\&\n"
115 "\\& int SSL_CTX_set1_curves(SSL_CTX *ctx, int *clist, int clistlen);\n"
116 "\\& int SSL_CTX_set1_curves_list(SSL_CTX *ctx, char *list);\n"
117 "\\&\n"
118 "\\& int SSL_set1_curves(SSL *ssl, int *clist, int clistlen);\n"
119 "\\& int SSL_set1_curves_list(SSL *ssl, char *list);\n"
120 "\\&\n"
121 "\\& int SSL_get1_curves(SSL *ssl, int *curves);\n"
122 "\\& int SSL_get_shared_curve(SSL *s, int n);\n"
123 "\\&\n"
124 "\\& int SSL_CTX_get0_implemented_groups(SSL_CTX *ctx, int all,\n"
125 "\\& STACK_OF(OPENSSL_CSTRING) *names);\n"
126 msgstr ""
127
128 #. type: IX
129 #: archlinux debian-trixie debian-unstable
130 #, no-wrap
131 msgid "DESCRIPTION"
132 msgstr ""
133
134 #. type: Plain text
135 #: archlinux debian-trixie debian-unstable
136 msgid ""
137 "For all of the functions below that set the supported groups there must be "
138 "at least one group in the list. A number of these functions identify groups "
139 "via a unique integer B<NID> value. However, support for some groups may be "
140 "added by external providers. In this case there will be no B<NID> assigned "
141 "for the group. When setting such groups applications should use the "
142 "\"list\" form of these functions (i.e. B<SSL_CTX_set1_groups_list()> and "
143 "B<SSL_set1_groups_list()>)."
144 msgstr ""
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable
148 msgid ""
149 "\\&B<SSL_CTX_set1_groups()> sets the supported groups for B<ctx> to "
150 "B<glistlen> groups in the array B<glist>. The array consist of all B<NIDs> "
151 "of supported groups. The supported groups for B<TLSv1.3> include: "
152 "\\&B<NID_X9_62_prime256v1>, \\&B<NID_secp384r1>, \\&B<NID_secp521r1>, "
153 "\\&B<NID_X25519>, \\&B<NID_X448>, \\&B<NID_brainpoolP256r1tls13>, "
154 "\\&B<NID_brainpoolP384r1tls13>, \\&B<NID_brainpoolP512r1tls13>, "
155 "\\&B<NID_ffdhe2048>, \\&B<NID_ffdhe3072>, \\&B<NID_ffdhe4096>, "
156 "\\&B<NID_ffdhe6144>, and \\&B<NID_ffdhe8192>. OpenSSL will use this array "
157 "in different ways based on the TLS version, and whether the groups are used "
158 "in a client or server."
159 msgstr ""
160
161 #. type: Plain text
162 #: archlinux
163 msgid ""
164 "For a TLS client, the groups are used directly in the supported groups "
165 "extension. The extension\\*(Aqs preference order, to be evaluated by the "
166 "server, is determined by the order of the elements in the array."
167 msgstr ""
168
169 #. type: Plain text
170 #: archlinux
171 msgid ""
172 "For a TLS 1.2 server, the groups determine the selected group. If "
173 "\\&B<SSL_OP_SERVER_PREFERENCE> is set, the order of the elements in the "
174 "array determines the selected group. Otherwise, the order is ignored and the "
175 "client\\*(Aqs order determines the selection."
176 msgstr ""
177
178 #. type: Plain text
179 #: archlinux
180 msgid ""
181 "For a TLS 1.3 server, the groups determine the selected group, but selection "
182 "is more complex. A TLS 1.3 client sends both a group list and predicted "
183 "keyshares for a subset of groups. A server choosing a group outside the "
184 "client\\*(Aqs predicted subset incurs an extra roundtrip. However, in some "
185 "situations, the most preferred group may not be predicted."
186 msgstr ""
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable
190 msgid ""
191 "When groups are specified via B<SSL_CTX_set1_groups()> as a list of B<NID> "
192 "values, OpenSSL considers all supported groups in I<clist> to be comparable "
193 "in security and prioritises avoiding roundtrips above either client or "
194 "server preference order. If an application uses an external provider to "
195 "extend OpenSSL with, e.g., a post-quantum algorithm, this behavior may allow "
196 "a network attacker to downgrade connections to a weaker algorithm. It is "
197 "therefore recommended to use B<SSL_CTX_set1_groups_list()> instead, making "
198 "it possible to specify group tuples as described below."
199 msgstr ""
200
201 #. type: Plain text
202 #: archlinux debian-trixie debian-unstable
203 msgid ""
204 "\\&B<SSL_CTX_set1_groups_list()> sets the supported groups for B<ctx> to "
205 "string I<list>. In contrast to B<SSL_CTX_set1_groups()>, the names of the "
206 "groups, rather than their B<NIDs>, are used."
207 msgstr ""
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable
211 msgid ""
212 "The commands below list the available groups for TLS 1.2 and TLS 1.3, "
213 "respectively:"
214 msgstr ""
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable
218 #, no-wrap
219 msgid ""
220 "\\& $ openssl list -tls1_2 -tls-groups\n"
221 "\\& $ openssl list -tls1_3 -tls-groups\n"
222 msgstr ""
223
224 #. type: Plain text
225 #: archlinux debian-trixie debian-unstable
226 msgid ""
227 "Each group can be either the B<NIST> name (e.g. B<P-256>), some other "
228 "commonly used name where applicable (e.g. B<X25519>, B<ffdhe2048>) or an "
229 "OpenSSL OID name (e.g. B<prime256v1>). Group names are case-insensitive in "
230 "OpenSSL 3.5 and later. The preferred group names are those defined by IANA "
231 "E<lt>https://www.iana.org/assignments/tls-parameters/tls-"
232 "parameters.xhtml#tls-parameters-8E<gt>."
233 msgstr ""
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable
237 msgid ""
238 "The I<list> can be used to define several group tuples of comparable "
239 "security levels, and can specify which predicted key shares should be sent "
240 "by a client. Group tuples are used by OpenSSL TLS servers to decide whether "
241 "to request a stronger keyshare than those predicted by sending a Hello Retry "
242 "Request (B<HRR>) even if some of the predicted groups are supported. "
243 "OpenSSL clients ignore tuple boundaries, and pay attenion only to the "
244 "overall order of I<list> elements and which groups are selected as predicted "
245 "keyshares as described below."
246 msgstr ""
247
248 #. type: Plain text
249 #: archlinux debian-trixie debian-unstable
250 msgid ""
251 "The specified list elements can optionally be ignored if not implemented "
252 "(listing unknown groups otherwise results in error). It is also possible to "
253 "specify the built-in default set of groups, and to explicitly remove a group "
254 "from that list."
255 msgstr ""
256
257 #. type: Plain text
258 #: archlinux debian-trixie debian-unstable
259 msgid ""
260 "In its simplest legacy form, the string I<list> is just a colon separated "
261 "list of group names, for example \"P-521:P-384:P-256:X25519:ffdhe2048\". "
262 "The first group listed will in this case be used as the sole predicted "
263 "\\&B<key_share> sent by a client in a TLSv1.3 B<ClientHello>. The list "
264 "should be in order of preference with the most preferred group first."
265 msgstr ""
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable
269 msgid ""
270 "A more expressive syntax supports definition of group tuples of comparable "
271 "security by separating them from each other with CW<\\*(C`/\\*(C'> "
272 "characters."
273 msgstr ""
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable
277 msgid ""
278 "The predicted keyshares to be sent by clients can be explicitly specified by "
279 "adding a CW<\\*(C`*\\*(C'> prefix to the associated group name. These "
280 "CW<\\*(C`*\\*(C'> prefixes are ignored by servers."
281 msgstr ""
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable
285 msgid ""
286 "If a group name is prefixed with the CW<\\*(C`?\\*(C'> character, it will be "
287 "ignored if an implementation is missing. Otherwise, listing an unknown "
288 "group name will cause a failure to parse the \\&I<list>. Note that whether "
289 "a group is known or not may depend on the OpenSSL version, how OpenSSL was "
290 "compiled and/or which providers are loaded. Make sure you have the correct "
291 "spelling of the group name and when in doubt prefix it with a CW<\\*(C`?"
292 "\\*(C'> to handle configurations in which it might nevertheless be unknown."
293 msgstr ""
294
295 #. type: Plain text
296 #: archlinux debian-trixie debian-unstable
297 msgid ""
298 "If a group name is prefixed with the CW<\\*(C`-\\*(C'> character, it will be "
299 "removed from the list of groups specified up to that point. It can be added "
300 "again if specified later. Removal of groups that have not been included "
301 "earlier in the list is silently ignored."
302 msgstr ""
303
304 #. type: Plain text
305 #: archlinux
306 msgid ""
307 "The pseudo group name CW<\\*(C`DEFAULT\\*(C'> can be used to select the "
308 "OpenSSL built-in default list of groups. Prepending one or more groups to "
309 "CW<\\*(C`DEFAULT\\*(C'> using only CW<\\*(C`:\\*(C'> separators prepends "
310 "those groups to the built-in default list\\*(Aqs first tuple. Additional "
311 "tuples can be prepended by use of the CW<\\*(C`/\\*(C'> separator. "
312 "Appending a set of groups to CW<\\*(C`DEFAULT\\*(C'> using only CW<\\*(C`:"
313 "\\*(C'> separators appends those groups to the built-in default list\\*(Aqs "
314 "last tuple. Additional tuples can be appended by use of the CW<\\*(C`/"
315 "\\*(C'> separator."
316 msgstr ""
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable
320 msgid ""
321 "The B<DEFAULT> list selects B<X25519MLKEM768> as one of the predicted "
322 "keyshares. In rare cases this can lead to failures or timeouts because the "
323 "resulting larger TLS Client Hello message may no longer fit in a single TCP "
324 "segment and firewall software may erroneously disrupt the TLS handshake. If "
325 "this is an issue or concern, prepending CW<\\*(C`?X25519MLKEM768:\\*(C'> "
326 "without a CW<\\*(C`*\\*(C'> prefix leads to its occurrence in the default "
327 "list to be ignored as a duplicate, and along with that also the keyshare "
328 "prediction. The group will then only be selected by servers that "
329 "specifically expect it, after a Hello Retry Request (HRR). Servers that "
330 "specifically prefer B<X25519MLKEM768>, are much less likely to be found "
331 "behind problematic firewalls."
332 msgstr ""
333
334 #. type: Plain text
335 #: archlinux debian-trixie debian-unstable
336 msgid ""
337 "The following string I<list> for example defines three tuples when used on "
338 "the server-side, and triggers the generation of three key shares when used "
339 "on the client-side: P-521:*P-256/*P-384/*X25519:P-384:ffdhe2048."
340 msgstr ""
341
342 #. type: Plain text
343 #: archlinux
344 msgid ""
345 "For a TLS 1.3 client, all the groups in the string I<list> are added to the "
346 "supported groups extension of a CW<\\*(C`ClientHello\\*(C'>, in the order in "
347 "which they are listed, thereby interpreting tuple separators as group "
348 "separators. The extension\\*(Aqs preference order, to be evaluated by the "
349 "server, is determined by the order of the elements in the array, see below."
350 msgstr ""
351
352 #. type: Plain text
353 #: archlinux debian-trixie debian-unstable
354 msgid ""
355 "If a group name is preceded by CW<\\*(C`*\\*(C'>, a key share will be sent "
356 "for this group. When preceding CW<\\*(C`DEFAULT\\*(C'> with "
357 "CW<\\*(C`*\\*(C'>, a key share will be sent for the first group of the "
358 "OpenSSL built-in default list of groups. If no CW<\\*(C`*\\*(C'> is used "
359 "anywhere in the list, a single key share for the leftmost valid group is "
360 "sent. A maximum of 4 key shares are supported. Example: \"P-521:*P-256/"
361 "*P-384\" will add P-521, P-256 and P-384 to the supported groups extension "
362 "in a CW<\\*(C`ClientHello\\*(C'> and will send key shares for P-256 and "
363 "P-384."
364 msgstr ""
365
366 #. type: Plain text
367 #: archlinux debian-unstable
368 msgid ""
369 "For a TLS 1.3 server, the groups in the string I<list> will be used to "
370 "determine which group is used for the key agreement. The preference order of "
371 "the group tuples is determined by the order of the tuples in the array, and "
372 "the preference order of the groups within a group tuple is determined by the "
373 "order of the groups in the tuple. Server preference can be enforced by "
374 "setting B<SSL_OP_SERVER_PREFERENCE> using \\&B<SSL_set_options> (default: "
375 "client preference)."
376 msgstr ""
377
378 #. type: Plain text
379 #: archlinux debian-trixie debian-unstable
380 msgid ""
381 "The server will select the group to be used for a key agreement using the "
382 "following pseudo-code algorithm:"
383 msgstr ""
384
385 #. type: Plain text
386 #: archlinux debian-unstable
387 #, no-wrap
388 msgid ""
389 "\\& FOR each group tuple\n"
390 "\\& IF client preference (= default)\n"
391 "\\& FOR each client key-share group\n"
392 "\\& IF current key-share group is also part of current group tuple: SH, return success\n"
393 "\\& FOR each client supported groups\n"
394 "\\& IF current supported group is also part of current group tuple: HRR, return success\n"
395 "\\& ELSE (= server preference = with SSL_OP_SERVER_PREFERENCE option set)\n"
396 "\\& FOR each group in current tuple\n"
397 "\\& IF current group is also part of client key-share groups: SH, return success\n"
398 "\\& FOR each group in current tuple\n"
399 "\\& IF current group is also part of client supported groups: HRR, return success\n"
400 "\\& return failure\n"
401 "\\&\n"
402 "\\& with : SH: Server hello with current group\n"
403 "\\& HRR: Server retry request with current group\n"
404 msgstr ""
405
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable
408 msgid ""
409 "Hence, if a client supports a group in a server group tuple, but does not "
410 "send a key share for this group, a Hello Retry Request (HRR) is triggered, "
411 "asking the client to send a new Hello message with a more preferred "
412 "keyshare. See examples below."
413 msgstr ""
414
415 #. type: Plain text
416 #: archlinux debian-trixie debian-unstable
417 msgid ""
418 "A group name can optionally be preceded by any of CW<\\*(C`*\\*(C'>, "
419 "CW<\\*(C`?\\*(C'> or CW<\\*(C`-\\*(C'>, in any order, with the exception "
420 "that only CW<\\*(C`*\\*(C'> is allowed to precede CW<\\*(C`DEFAULT\\*(C'>. "
421 "Separator characters \\&CW<\\*(C`:\\*(C'> and CW<\\*(C`/\\*(C'> are only "
422 "allowed inside the I<list> and not at the very beginning or end."
423 msgstr ""
424
425 #. type: Plain text
426 #: archlinux debian-trixie debian-unstable
427 msgid ""
428 "\\&B<SSL_set1_groups()> and B<SSL_set1_groups_list()> are similar except "
429 "they set supported groups for the SSL structure B<ssl>."
430 msgstr ""
431
432 #. type: Plain text
433 #: archlinux debian-trixie debian-unstable
434 msgid ""
435 "\\&B<SSL_get1_groups()> returns the set of supported groups sent by a client "
436 "in the supported groups extension. It returns the total number of supported "
437 "groups. The B<groups> parameter can be B<NULL> to simply return the number "
438 "of groups for memory allocation purposes. The \\&B<groups> array is in the "
439 "form of a set of group NIDs in preference order. It can return zero if the "
440 "client did not send a supported groups extension. If a supported group NID "
441 "is unknown then the value is set to the bitwise OR of TLSEXT_nid_unknown "
442 "(0x1000000) and the id of the group."
443 msgstr ""
444
445 #. type: Plain text
446 #: archlinux debian-trixie debian-unstable
447 msgid ""
448 "\\&B<SSL_get0_iana_groups()> retrieves the list of groups sent by the client "
449 "in the supported_groups extension. The B<*out> array of bytes is populated "
450 "with the host-byte-order representation of the uint16_t group identifiers, "
451 "as assigned by IANA. The group list is returned in the same order that was "
452 "received in the ClientHello. The return value is the number of groups, not "
453 "the number of bytes written."
454 msgstr ""
455
456 #. type: Plain text
457 #: archlinux debian-trixie debian-unstable
458 msgid ""
459 "\\&B<SSL_get_shared_group()> returns the NID of the shared group B<n> for a "
460 "server-side SSL B<ssl>. If B<n> is -1 then the total number of shared groups "
461 "is returned, which may be zero. Other than for diagnostic purposes, most "
462 "applications will only be interested in the first shared group so B<n> is "
463 "normally set to zero. If the value B<n> is out of range, NID_undef is "
464 "returned. If the NID for the shared group is unknown then the value is set "
465 "to the bitwise OR of TLSEXT_nid_unknown (0x1000000) and the id of the group."
466 msgstr ""
467
468 #. type: Plain text
469 #: archlinux debian-trixie debian-unstable
470 msgid ""
471 "\\&B<SSL_get_negotiated_group()> returns the NID of the negotiated group "
472 "used for the handshake key exchange process. For TLSv1.3 connections this "
473 "typically reflects the state of the current connection, though in the case "
474 "of PSK-only resumption, the returned value will be from a previous "
475 "connection. For earlier TLS versions, when a session has been resumed, it "
476 "always reflects the group used for key exchange during the initial handshake "
477 "(otherwise it is from the current, non-resumption, connection). This can be "
478 "called by either client or server. If the NID for the shared group is "
479 "unknown then the value is set to the bitwise OR of TLSEXT_nid_unknown "
480 "(0x1000000) and the id of the group. See also \\&B<SSL_get0_group_name>\\|"
481 "(3) which returns the name of the negotiated group directly and is generally "
482 "preferred over B<SSL_get_negotiated_group()>."
483 msgstr ""
484
485 #. type: Plain text
486 #: archlinux debian-trixie debian-unstable
487 msgid ""
488 "\\&B<SSL_CTX_get0_implemented_groups()> populates a stack with the names of "
489 "TLS groups that are compatible with the TLS version of the B<ctx> argument. "
490 "The returned names are references to internal constants and must not be "
491 "modified or freed. When B<all> is nonzero, the returned list includes not "
492 "only the preferred IANA names of the groups, but also any associated "
493 "aliases. If the SSL_CTX is version-flexible, the groups will be those "
494 "compatible with any configured minimum and maximum protocol versions. The "
495 "B<names> stack should be allocated by the caller and be empty, the matching "
496 "group names are appended to the provided stack. The B<-tls-groups> and B<-"
497 "all-tls-groups> options of the openssl list command output these lists for "
498 "either TLS 1.2 or TLS 1.3 (by default)."
499 msgstr ""
500
501 #. type: Plain text
502 #: archlinux debian-trixie debian-unstable
503 msgid "All these functions are implemented as macros."
504 msgstr ""
505
506 #. type: Plain text
507 #: archlinux debian-trixie debian-unstable
508 msgid ""
509 "The curve functions are synonyms for the equivalently named group functions "
510 "and are identical in every respect. They exist because, prior to TLS1.3, "
511 "there was only the concept of supported curves. In TLS1.3 this was renamed "
512 "to supported groups, and extended to include Diffie Hellman groups. The "
513 "group functions should be used in preference."
514 msgstr ""
515
516 #. type: IX
517 #: archlinux debian-trixie debian-unstable
518 #, no-wrap
519 msgid "NOTES"
520 msgstr ""
521
522 #. type: Plain text
523 #: archlinux debian-trixie debian-unstable
524 msgid ""
525 "If an application wishes to make use of several of these functions for "
526 "configuration purposes either on a command line or in a file it should "
527 "consider using the SSL_CONF interface instead of manually parsing options."
528 msgstr ""
529
530 #. type: IX
531 #: archlinux debian-trixie debian-unstable
532 #, no-wrap
533 msgid "RETURN VALUES"
534 msgstr ""
535
536 #. type: Plain text
537 #: archlinux debian-trixie debian-unstable
538 msgid ""
539 "\\&B<SSL_CTX_set1_groups()>, B<SSL_CTX_set1_groups_list()>, "
540 "B<SSL_set1_groups()>, \\&B<SSL_set1_groups_list()>, and "
541 "B<SSL_CTX_get0_implemented_groups()> return 1 for success and 0 for failure."
542 msgstr ""
543
544 #. type: Plain text
545 #: archlinux debian-trixie debian-unstable
546 msgid ""
547 "\\&B<SSL_get1_groups()> returns the number of groups, which may be zero."
548 msgstr ""
549
550 #. type: Plain text
551 #: archlinux debian-trixie debian-unstable
552 msgid ""
553 "\\&B<SSL_get0_iana_groups()> returns the number of (uint16_t) groups, which "
554 "may be zero."
555 msgstr ""
556
557 #. type: Plain text
558 #: archlinux debian-trixie debian-unstable
559 msgid ""
560 "\\&B<SSL_get_shared_group()> returns the NID of shared group B<n> or "
561 "NID_undef if there is no shared group B<n>; or the total number of shared "
562 "groups if B<n> is -1."
563 msgstr ""
564
565 #. type: Plain text
566 #: archlinux debian-trixie debian-unstable
567 msgid ""
568 "When called on a client B<ssl>, B<SSL_get_shared_group()> has no meaning and "
569 "returns -1."
570 msgstr ""
571
572 #. type: Plain text
573 #: archlinux debian-trixie debian-unstable
574 msgid ""
575 "\\&B<SSL_get_negotiated_group()> returns the NID of the negotiated group "
576 "used for key exchange, or NID_undef if there was no negotiated group."
577 msgstr ""
578
579 #. type: IX
580 #: archlinux debian-trixie debian-unstable
581 #, no-wrap
582 msgid "EXAMPLES"
583 msgstr ""
584
585 #. type: Plain text
586 #: archlinux debian-trixie debian-unstable
587 msgid ""
588 "Assume the server I<list> is \"P-521:P-256/P-384/X25519:ffdhe2048\" and "
589 "client \\&I<list> is \"P-521:*P-384\" when connecting to such a server, "
590 "meaning that the client supports CW<\\*(C`P-521\\*(C'> but does not send a "
591 "key share for this group to the server, and the client supports "
592 "CW<\\*(C`P-384\\*(C'> including key share for this group. With both server "
593 "and client preference, an HRR will be triggered for CW<\\*(C`P-521\\*(C'> "
594 "despite the availability of a key share for P-384, which overlaps with a "
595 "lower priority server-side tuple."
596 msgstr ""
597
598 #. type: Plain text
599 #: archlinux debian-trixie debian-unstable
600 msgid ""
601 "As a separate example, consider a server I<list> \"A:B/C:D/E:F\". Listed in "
602 "order of highest preference to least, 3 group tuples are created: \"A:B\", "
603 "\"C:D\", and \"E:F\". Here are some examples of a client I<list> where "
604 "setting server/client preference will not change the outcome:"
605 msgstr ""
606
607 #. type: Plain text
608 #: archlinux
609 msgid ""
610 "\\&- \"A:D:*F\": Both prefer \"A\", but the server didn\\*(Aqt receive a "
611 "keyshare for the most-preferred tuple in which there\\*(Aqs at least one "
612 "group supported by both. Therefore, an HRR is triggered for \"A\"."
613 msgstr ""
614
615 #. type: Plain text
616 #: archlinux debian-trixie debian-unstable
617 msgid ""
618 "\\&- \"B:*C\": Both prefer \"B\" from the first group tuple \"A:B\", so an "
619 "HRR is triggered for \"B\"."
620 msgstr ""
621
622 #. type: Plain text
623 #: archlinux debian-trixie debian-unstable
624 msgid ""
625 "\\&- \"C:*F\": Both prefer \"C\" from the second group tuple \"C:D\", so an "
626 "HRR is triggered for \"C\"."
627 msgstr ""
628
629 #. type: Plain text
630 #: archlinux debian-trixie debian-unstable
631 msgid ""
632 "\\&- \"C:*D\": Even though both prefer \"C\" over \"D\", the server will "
633 "accept the key share for \"D\". Within a tuple, existing keyshares trump "
634 "preference order."
635 msgstr ""
636
637 #. type: Plain text
638 #: archlinux debian-trixie debian-unstable
639 msgid "\\&- \"*C:*D\": The server accepts the \"C\" key share."
640 msgstr ""
641
642 #. type: Plain text
643 #: archlinux debian-trixie debian-unstable
644 msgid ""
645 "\\&- \"F\": Even though it is not prepended with a \"*\", the client will "
646 "send a key share for \"F\". The server will then accept the key share for "
647 "\"F\"."
648 msgstr ""
649
650 #. type: Plain text
651 #: archlinux debian-trixie debian-unstable
652 msgid ""
653 "\\&- \"*E:C:A\": The server prefers \"A\" from the \"A:B\" group tuple, so "
654 "an HRR is triggered for \"A\"."
655 msgstr ""
656
657 #. type: Plain text
658 #: archlinux debian-trixie debian-unstable
659 msgid "\\&- \"*E:B:*A\": The server uses the key share for \"A\"."
660 msgstr ""
661
662 #. type: Plain text
663 #: archlinux debian-trixie debian-unstable
664 msgid ""
665 "Here are some examples where setting server/client preference will change "
666 "the result:"
667 msgstr ""
668
669 #. type: Plain text
670 #: archlinux debian-trixie debian-unstable
671 #, no-wrap
672 msgid ""
673 "\\&- \"*D:*C\"\n"
674 " - Client preference: The server uses the key share for \"D\".\n"
675 " - Server preference: The server uses the key share for \"C\".\n"
676 msgstr ""
677
678 #. type: Plain text
679 #: archlinux debian-trixie debian-unstable
680 #, no-wrap
681 msgid ""
682 "\\&- \"B:A:*C\"\n"
683 " - Client preference: The server triggers an HRR for \"B\". For the server,\n"
684 "\"A\" and \"B\" are considered comparable in security. But because the client\n"
685 "prefers \"B\", the server will trigger an HRR for \"B\".\n"
686 " - Server preference: The server triggers an HRR for \"A\".\n"
687 msgstr ""
688
689 #. type: IX
690 #: archlinux debian-trixie debian-unstable
691 #, no-wrap
692 msgid "SEE ALSO"
693 msgstr ""
694
695 #. type: Plain text
696 #: archlinux debian-trixie debian-unstable
697 msgid ""
698 "\\&B<ssl>\\|(7), \\&B<SSL_CTX_add_extra_chain_cert>\\|(3), "
699 "\\&B<SSL_get0_group_name>\\|(3)"
700 msgstr ""
701
702 #. type: IX
703 #: archlinux debian-trixie debian-unstable
704 #, no-wrap
705 msgid "HISTORY"
706 msgstr ""
707
708 #. type: Plain text
709 #: archlinux debian-trixie debian-unstable
710 msgid ""
711 "The curve functions were added in OpenSSL 1.0.2. The equivalent group "
712 "functions were added in OpenSSL 1.1.1. The B<SSL_get_negotiated_group()> "
713 "function was added in OpenSSL 3.0.0."
714 msgstr ""
715
716 #. type: Plain text
717 #: archlinux debian-trixie debian-unstable
718 msgid ""
719 "Support for ignoring unknown groups in B<SSL_CTX_set1_groups_list()> and "
720 "\\&B<SSL_set1_groups_list()> was added in OpenSSL 3.3."
721 msgstr ""
722
723 #. type: Plain text
724 #: archlinux debian-trixie debian-unstable
725 msgid "Support for B<ML-KEM> was added in OpenSSL 3.5."
726 msgstr ""
727
728 #. type: Plain text
729 #: archlinux debian-trixie debian-unstable
730 msgid ""
731 "OpenSSL 3.5 also introduces support for three I<hybrid> ECDH PQ key exchange "
732 "TLS groups: B<X25519MLKEM768>, B<SecP256r1MLKEM768> and "
733 "\\&B<SecP384r1MLKEM1024>. They offer CPU performance comparable to the "
734 "associated ECDH group, though at the cost of significantly larger key "
735 "exchange messages. The third group, B<SecP384r1MLKEM1024> is substantially "
736 "more CPU-intensive, largely as a result of the high CPU cost of ECDH for the "
737 "underlying B<P-384> group. Also its key exchange messages at close to 1700 "
738 "bytes are larger than the roughly 1200 bytes for the first two groups."
739 msgstr ""
740
741 #. type: Plain text
742 #: archlinux debian-trixie debian-unstable
743 msgid "As of OpenSSL 3.5 key exchange group names are case-insensitive."
744 msgstr ""
745
746 #. type: Plain text
747 #: archlinux debian-trixie debian-unstable
748 msgid ""
749 "\\&B<SSL_CTX_get0_implemented_groups> was first implemented in OpenSSL 3.5."
750 msgstr ""
751
752 #. type: Plain text
753 #: archlinux
754 msgid ""
755 "Earlier versions of this document described the list as a preference order. "
756 "However, OpenSSL\\*(Aqs behavior as a TLS 1.3 server is to consider I<all> "
757 "supported groups as comparable in security."
758 msgstr ""
759
760 #. type: IX
761 #: archlinux debian-trixie debian-unstable
762 #, no-wrap
763 msgid "COPYRIGHT"
764 msgstr ""
765
766 #. type: Plain text
767 #: archlinux debian-trixie debian-unstable
768 msgid "Copyright 2013-2026 The OpenSSL Project Authors. All Rights Reserved."
769 msgstr ""
770
771 #. type: Plain text
772 #: archlinux debian-trixie debian-unstable
773 msgid ""
774 "Licensed under the Apache License 2.0 (the \"License\"). You may not use "
775 "this file except in compliance with the License. You can obtain a copy in "
776 "the file LICENSE in the source distribution or at E<lt>https://"
777 "www.openssl.org/source/license.htmlE<gt>."
778 msgstr ""
779
780 #. ========================================================================
781 #. type: IX
782 #: debian-trixie debian-unstable
783 #, no-wrap
784 msgid "SSL_CTX_SET1_CURVES 3SSL"
785 msgstr ""
786
787 #. type: TH
788 #: debian-trixie
789 #, no-wrap
790 msgid "3.5.6"
791 msgstr ""
792
793 #. type: Plain text
794 #: debian-trixie debian-unstable
795 msgid ""
796 "For a TLS client, the groups are used directly in the supported groups "
797 "extension. The extension's preference order, to be evaluated by the server, "
798 "is determined by the order of the elements in the array."
799 msgstr ""
800
801 #. type: Plain text
802 #: debian-trixie
803 msgid ""
804 "For a TLS 1.2 server, the groups determine the selected group. If "
805 "\\&B<SSL_OP_CIPHER_SERVER_PREFERENCE> is set, the order of the elements in "
806 "the array determines the selected group. Otherwise, the order is ignored and "
807 "the client's order determines the selection."
808 msgstr ""
809
810 #. type: Plain text
811 #: debian-trixie debian-unstable
812 msgid ""
813 "For a TLS 1.3 server, the groups determine the selected group, but selection "
814 "is more complex. A TLS 1.3 client sends both a group list and predicted "
815 "keyshares for a subset of groups. A server choosing a group outside the "
816 "client's predicted subset incurs an extra roundtrip. However, in some "
817 "situations, the most preferred group may not be predicted."
818 msgstr ""
819
820 #. type: Plain text
821 #: debian-trixie debian-unstable
822 msgid ""
823 "The pseudo group name CW<\\*(C`DEFAULT\\*(C'> can be used to select the "
824 "OpenSSL built-in default list of groups. Prepending one or more groups to "
825 "CW<\\*(C`DEFAULT\\*(C'> using only CW<\\*(C`:\\*(C'> separators prepends "
826 "those groups to the built-in default list's first tuple. Additional tuples "
827 "can be prepended by use of the CW<\\*(C`/\\*(C'> separator. Appending a set "
828 "of groups to CW<\\*(C`DEFAULT\\*(C'> using only CW<\\*(C`:\\*(C'> separators "
829 "appends those groups to the built-in default list's last tuple. Additional "
830 "tuples can be appended by use of the CW<\\*(C`/\\*(C'> separator."
831 msgstr ""
832
833 #. type: Plain text
834 #: debian-trixie debian-unstable
835 msgid ""
836 "For a TLS 1.3 client, all the groups in the string I<list> are added to the "
837 "supported groups extension of a CW<\\*(C`ClientHello\\*(C'>, in the order in "
838 "which they are listed, thereby interpreting tuple separators as group "
839 "separators. The extension's preference order, to be evaluated by the server, "
840 "is determined by the order of the elements in the array, see below."
841 msgstr ""
842
843 #. type: Plain text
844 #: debian-trixie
845 msgid ""
846 "For a TLS 1.3 server, the groups in the string I<list> will be used to "
847 "determine which group is used for the key agreement. The preference order of "
848 "the group tuples is determined by the order of the tuples in the array, and "
849 "the preference order of the groups within a group tuple is determined by the "
850 "order of the groups in the tuple. Server preference can be enforced by "
851 "setting B<SSL_OP_CIPHER_SERVER_PREFERENCE> using \\&B<SSL_set_options> "
852 "(default: client preference)."
853 msgstr ""
854
855 #. type: Plain text
856 #: debian-trixie
857 #, no-wrap
858 msgid ""
859 "\\& FOR each group tuple\n"
860 "\\& IF client preference (= default)\n"
861 "\\& FOR each client key-share group\n"
862 "\\& IF current key-share group is also part of current group tuple: SH, return success\n"
863 "\\& FOR each client supported groups\n"
864 "\\& IF current supported group is also part of current group tuple: HRR, return success\n"
865 "\\& ELSE (= server preference = with SSL_OP_CIPHER_SERVER_PREFERENCE option set)\n"
866 "\\& FOR each group in current tuple\n"
867 "\\& IF current group is also part of client key-share groups: SH, return success\n"
868 "\\& FOR each group in current tuple\n"
869 "\\& IF current group is also part of client supported groups: HRR, return success\n"
870 "\\& return failure\n"
871 "\\&\n"
872 "\\& with : SH: Server hello with current group\n"
873 "\\& HRR: Server retry request with current group\n"
874 msgstr ""
875
876 #. type: Plain text
877 #: debian-trixie debian-unstable
878 msgid ""
879 "\\&- \"A:D:*F\": Both prefer \"A\", but the server didn't receive a keyshare "
880 "for the most-preferred tuple in which there's at least one group supported "
881 "by both. Therefore, an HRR is triggered for \"A\"."
882 msgstr ""
883
884 #. type: Plain text
885 #: debian-trixie debian-unstable
886 msgid ""
887 "Earlier versions of this document described the list as a preference order. "
888 "However, OpenSSL's behavior as a TLS 1.3 server is to consider I<all> "
889 "supported groups as comparable in security."
890 msgstr ""
891
892 #. type: Plain text
893 #: debian-unstable
894 msgid ""
895 "For a TLS 1.2 server, the groups determine the selected group. If "
896 "\\&B<SSL_OP_SERVER_PREFERENCE> is set, the order of the elements in the "
897 "array determines the selected group. Otherwise, the order is ignored and the "
898 "client's order determines the selection."
899 msgstr ""