Debian Codegraph @

templates/man3/SSL_CTX_set_psk_client_callback.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_set_psk_client_callback.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
20 #
21 #. #-#-#-#-# archlinux: SSL_CTX_set_psk_client_callback.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
22 #. Required to disable full justification in groff 1.23.0.
23 #. ========================================================================
24 #. type: IX
25 #. #-#-#-#-# debian-trixie: SSL_CTX_set_psk_client_callback.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
26 #. ========================================================================
27 #. type: IX
28 #. #-#-#-#-# debian-unstable: SSL_CTX_set_psk_client_callback.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_SET_PSK_CLIENT_CALLBACK 3ssl"
43 msgstr ""
44
45 #. type: TH
46 #: archlinux debian-trixie debian-unstable
47 #, no-wrap
48 msgid "SSL_CTX_SET_PSK_CLIENT_CALLBACK"
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_psk_client_cb_func, SSL_psk_use_session_cb_func, "
79 "SSL_CTX_set_psk_client_callback, SSL_set_psk_client_callback, "
80 "SSL_CTX_set_psk_use_session_callback, SSL_set_psk_use_session_callback \\&- "
81 "set PSK client callback"
82 msgstr ""
83
84 #. type: IX
85 #: archlinux debian-trixie debian-unstable
86 #, no-wrap
87 msgid "SYNOPSIS"
88 msgstr ""
89
90 #. type: IX
91 #: archlinux debian-trixie debian-unstable
92 #, no-wrap
93 msgid "Header"
94 msgstr ""
95
96 #. type: Plain text
97 #: archlinux debian-trixie debian-unstable
98 #, no-wrap
99 msgid ""
100 "\\& #include E<lt>openssl/ssl.hE<gt>\n"
101 "\\&\n"
102 "\\& typedef int (*SSL_psk_use_session_cb_func)(SSL *ssl, const EVP_MD *md,\n"
103 "\\& const unsigned char **id,\n"
104 "\\& size_t *idlen,\n"
105 "\\& SSL_SESSION **sess);\n"
106 "\\&\n"
107 "\\&\n"
108 "\\& void SSL_CTX_set_psk_use_session_callback(SSL_CTX *ctx,\n"
109 "\\& SSL_psk_use_session_cb_func cb);\n"
110 "\\& void SSL_set_psk_use_session_callback(SSL *s, SSL_psk_use_session_cb_func cb);\n"
111 "\\&\n"
112 "\\&\n"
113 "\\& typedef unsigned int (*SSL_psk_client_cb_func)(SSL *ssl,\n"
114 "\\& const char *hint,\n"
115 "\\& char *identity,\n"
116 "\\& unsigned int max_identity_len,\n"
117 "\\& unsigned char *psk,\n"
118 "\\& unsigned int max_psk_len);\n"
119 "\\&\n"
120 "\\& void SSL_CTX_set_psk_client_callback(SSL_CTX *ctx, SSL_psk_client_cb_func cb);\n"
121 "\\& void SSL_set_psk_client_callback(SSL *ssl, SSL_psk_client_cb_func cb);\n"
122 msgstr ""
123
124 #. type: IX
125 #: archlinux debian-trixie debian-unstable
126 #, no-wrap
127 msgid "DESCRIPTION"
128 msgstr ""
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable
132 msgid ""
133 "A client application wishing to use TLSv1.3 PSKs should use either "
134 "\\&B<SSL_CTX_set_psk_use_session_callback()> or "
135 "B<SSL_set_psk_use_session_callback()> as appropriate. These functions cannot "
136 "be used for TLSv1.2 and below PSKs."
137 msgstr ""
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable
141 msgid ""
142 "The callback function is given a pointer to the SSL connection in B<ssl>."
143 msgstr ""
144
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable
147 msgid ""
148 "The first time the callback is called for a connection the B<md> parameter "
149 "is NULL. In some circumstances the callback will be called a second time. In "
150 "that case the server will have specified a ciphersuite to use already and "
151 "the PSK must be compatible with the digest for that ciphersuite. The digest "
152 "will be given in B<md>. The PSK returned by the callback is allowed to be "
153 "different between the first and second time it is called."
154 msgstr ""
155
156 #. type: Plain text
157 #: archlinux debian-trixie debian-unstable
158 msgid ""
159 "On successful completion the callback must store a pointer to an identifier "
160 "for the PSK in B<*id>. The identifier length in bytes should be stored in "
161 "B<*idlen>. The memory pointed to by B<*id> remains owned by the application "
162 "and should be freed by it as required at any point after the handshake is "
163 "complete."
164 msgstr ""
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable
168 msgid ""
169 "Additionally the callback should store a pointer to an SSL_SESSION object in "
170 "\\&B<*sess>. This is used as the basis for the PSK, and should, at a "
171 "minimum, have the following fields set:"
172 msgstr ""
173
174 #. type: IX
175 #: archlinux debian-trixie debian-unstable
176 #, no-wrap
177 msgid "The master key"
178 msgstr ""
179
180 #. type: IX
181 #: archlinux debian-trixie debian-unstable
182 #, no-wrap
183 msgid "Item"
184 msgstr ""
185
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable
188 msgid "This can be set via a call to B<SSL_SESSION_set1_master_key>\\|(3)."
189 msgstr ""
190
191 #. type: IX
192 #: archlinux debian-trixie debian-unstable
193 #, no-wrap
194 msgid "A ciphersuite"
195 msgstr ""
196
197 #. type: Plain text
198 #: archlinux debian-trixie debian-unstable
199 msgid ""
200 "Only the handshake digest associated with the ciphersuite is relevant for "
201 "the PSK (the server may go on to negotiate any ciphersuite which is "
202 "compatible with the digest). The application can use any TLSv1.3 "
203 "ciphersuite. If B<md> is not NULL the handshake digest for the ciphersuite "
204 "should be the same. The ciphersuite can be set via a call to "
205 "E<lt>B<SSL_SESSION_set_cipher>\\|(3)E<gt>. The handshake digest of an "
206 "SSL_CIPHER object can be checked using "
207 "E<lt>B<SSL_CIPHER_get_handshake_digest>\\|(3)E<gt>."
208 msgstr ""
209
210 #. type: IX
211 #: archlinux debian-trixie debian-unstable
212 #, no-wrap
213 msgid "The protocol version"
214 msgstr ""
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable
218 msgid ""
219 "This can be set via a call to B<SSL_SESSION_set_protocol_version>\\|(3) and "
220 "should be TLS1_3_VERSION."
221 msgstr ""
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable
225 msgid ""
226 "Additionally the maximum early data value should be set via a call to "
227 "\\&B<SSL_SESSION_set_max_early_data>\\|(3) if the PSK will be used for "
228 "sending early data."
229 msgstr ""
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable
233 msgid ""
234 "Alternatively an SSL_SESSION created from a previous non-PSK handshake may "
235 "also be used as the basis for a PSK."
236 msgstr ""
237
238 #. type: Plain text
239 #: archlinux debian-trixie debian-unstable
240 msgid ""
241 "Ownership of the SSL_SESSION object is passed to the OpenSSL library and so "
242 "it should not be freed by the application."
243 msgstr ""
244
245 #. type: Plain text
246 #: archlinux debian-trixie debian-unstable
247 msgid ""
248 "Note that as described above, the callback may be called a second time "
249 "during a handshake. Since ownership of the SSL_SESSION is transferred to "
250 "OpenSSL on each call, if the callback wishes to return the same SSL_SESSION "
251 "pointer on a subsequent invocation, it must first call "
252 "B<SSL_SESSION_up_ref>\\|(3) to increment the reference count. Failure to do "
253 "so will result in a use-after-free error. Alternatively, the callback may "
254 "return a different SSL_SESSION object on each call (e.g., by calling "
255 "B<SSL_SESSION_dup>\\|(3))."
256 msgstr ""
257
258 #. type: Plain text
259 #: archlinux debian-trixie debian-unstable
260 msgid ""
261 "It is also possible for the callback to succeed but not supply a PSK. In "
262 "this case no PSK will be sent to the server but the handshake will continue. "
263 "To do this the callback should return successfully and ensure that B<*sess> "
264 "is NULL. The contents of B<*id> and B<*idlen> will be ignored."
265 msgstr ""
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable
269 msgid ""
270 "A client application wishing to use PSK ciphersuites for TLSv1.2 and below "
271 "must provide a different callback function. This function will be called "
272 "when the client is sending the ClientKeyExchange message to the server."
273 msgstr ""
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable
277 msgid ""
278 "The purpose of the callback function is to select the PSK identity and the "
279 "pre-shared key to use during the connection setup phase."
280 msgstr ""
281
282 #. type: Plain text
283 #: archlinux debian-trixie debian-unstable
284 msgid ""
285 "The callback is set using functions B<SSL_CTX_set_psk_client_callback()> or "
286 "B<SSL_set_psk_client_callback()>. The callback function is given the "
287 "connection in parameter B<ssl>, a B<NUL>-terminated PSK identity hint sent "
288 "by the server in parameter B<hint>, a buffer B<identity> of length "
289 "B<max_identity_len> bytes (including the B<NUL>-terminator) where the "
290 "resulting B<NUL>-terminated identity is to be stored, and a buffer B<psk> of "
291 "length B<max_psk_len> bytes where the resulting pre-shared key is to be "
292 "stored."
293 msgstr ""
294
295 #. type: Plain text
296 #: archlinux debian-trixie debian-unstable
297 msgid ""
298 "The callback for use in TLSv1.2 will also work in TLSv1.3 although it is "
299 "recommended to use B<SSL_CTX_set_psk_use_session_callback()> or "
300 "B<SSL_set_psk_use_session_callback()> for this purpose instead. If TLSv1.3 "
301 "has been negotiated then OpenSSL will first check to see if a callback has "
302 "been set via B<SSL_CTX_set_psk_use_session_callback()> or "
303 "B<SSL_set_psk_use_session_callback()> and it will use that in preference. If "
304 "no such callback is present then it will check to see if a callback has been "
305 "set via B<SSL_CTX_set_psk_client_callback()> or "
306 "\\&B<SSL_set_psk_client_callback()> and use that. In this case the B<hint> "
307 "value will always be NULL and the handshake digest will default to SHA-256 "
308 "for any returned PSK. TLSv1.3 early data exchanges are possible in PSK "
309 "connections only with the \\&B<SSL_psk_use_session_cb_func> callback, and "
310 "are not possible with the \\&B<SSL_psk_client_cb_func> callback."
311 msgstr ""
312
313 #. type: IX
314 #: archlinux debian-trixie debian-unstable
315 #, no-wrap
316 msgid "NOTES"
317 msgstr ""
318
319 #. type: Plain text
320 #: archlinux debian-trixie debian-unstable
321 msgid "Note that parameter B<hint> given to the callback may be B<NULL>."
322 msgstr ""
323
324 #. type: Plain text
325 #: archlinux debian-trixie debian-unstable
326 msgid ""
327 "A connection established via a TLSv1.3 PSK will appear as if session "
328 "resumption has occurred so that B<SSL_session_reused>\\|(3) will return true."
329 msgstr ""
330
331 #. type: Plain text
332 #: archlinux debian-trixie debian-unstable
333 msgid ""
334 "There are no known security issues with sharing the same PSK between TLSv1.2 "
335 "(or below) and TLSv1.3. However, the RFC has this note of caution:"
336 msgstr ""
337
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable
340 msgid ""
341 "While there is no known way in which the same PSK might produce related "
342 "output in both versions, only limited analysis has been done. "
343 "Implementations can ensure safety from cross-protocol related output by not "
344 "reusing PSKs between TLS 1.3 and TLS 1.2."
345 msgstr ""
346
347 #. type: IX
348 #: archlinux debian-trixie debian-unstable
349 #, no-wrap
350 msgid "RETURN VALUES"
351 msgstr ""
352
353 #. type: Plain text
354 #: archlinux debian-trixie debian-unstable
355 msgid ""
356 "Return values from the B<SSL_psk_client_cb_func> callback are interpreted as "
357 "follows:"
358 msgstr ""
359
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable
362 msgid ""
363 "On success (callback found a PSK identity and a pre-shared key to use) the "
364 "length (E<gt> 0) of B<psk> in bytes is returned."
365 msgstr ""
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable
369 msgid ""
370 "Otherwise or on errors the callback should return 0. In this case the "
371 "connection setup fails."
372 msgstr ""
373
374 #. type: Plain text
375 #: archlinux debian-trixie debian-unstable
376 msgid ""
377 "The SSL_psk_use_session_cb_func callback should return 1 on success or 0 on "
378 "failure. In the event of failure the connection setup fails."
379 msgstr ""
380
381 #. type: IX
382 #: archlinux debian-trixie debian-unstable
383 #, no-wrap
384 msgid "SEE ALSO"
385 msgstr ""
386
387 #. type: Plain text
388 #: archlinux debian-trixie debian-unstable
389 msgid ""
390 "\\&B<ssl>\\|(7), \\&B<SSL_CTX_set_psk_find_session_callback>\\|(3), "
391 "\\&B<SSL_set_psk_find_session_callback>\\|(3)"
392 msgstr ""
393
394 #. type: IX
395 #: archlinux debian-trixie debian-unstable
396 #, no-wrap
397 msgid "HISTORY"
398 msgstr ""
399
400 #. type: Plain text
401 #: archlinux debian-trixie debian-unstable
402 msgid ""
403 "\\&B<SSL_CTX_set_psk_use_session_callback()> and "
404 "B<SSL_set_psk_use_session_callback()> were added in OpenSSL 1.1.1."
405 msgstr ""
406
407 #. type: IX
408 #: archlinux debian-trixie debian-unstable
409 #, no-wrap
410 msgid "COPYRIGHT"
411 msgstr ""
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable
415 msgid "Copyright 2006-2026 The OpenSSL Project Authors. All Rights Reserved."
416 msgstr ""
417
418 #. type: Plain text
419 #: archlinux debian-trixie debian-unstable
420 msgid ""
421 "Licensed under the Apache License 2.0 (the \"License\"). You may not use "
422 "this file except in compliance with the License. You can obtain a copy in "
423 "the file LICENSE in the source distribution or at E<lt>https://"
424 "www.openssl.org/source/license.htmlE<gt>."
425 msgstr ""
426
427 #. ========================================================================
428 #. type: IX
429 #: debian-trixie debian-unstable
430 #, no-wrap
431 msgid "SSL_CTX_SET_PSK_CLIENT_CALLBACK 3SSL"
432 msgstr ""
433
434 #. type: TH
435 #: debian-trixie
436 #, no-wrap
437 msgid "3.5.6"
438 msgstr ""