Debian Codegraph @

po/ar/man3/SSL_CTX_set_tlsext_ticket_key_cb.3ssl.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.30.2\n"
8 "POT-Creation-Date: 2026-06-05 06:44+0200\n"
9 "PO-Revision-Date: 2026-06-03 18:28+0400\n"
10 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
11 "Language-Team: Arabic <[email protected]>\n"
12 "Language: ar\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
17 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
18 "X-Generator: Lokalize 23.08.5\n"
19
20 # #-#-#-#-# archlinux: SSL_CTX_set_tlsext_ticket_key_cb.3ssl.pot (PACKAGE
21 # VERSION) #-#-#-#-#
22 #
23 #. #-#-#-#-# archlinux: SSL_CTX_set_tlsext_ticket_key_cb.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
24 #. Required to disable full justification in groff 1.23.0.
25 #. ========================================================================
26 #. type: IX
27 #. #-#-#-#-# debian-trixie: SSL_CTX_set_tlsext_ticket_key_cb.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
28 #. ========================================================================
29 #. type: IX
30 #. #-#-#-#-# debian-unstable: SSL_CTX_set_tlsext_ticket_key_cb.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
31 #. ========================================================================
32 #. type: IX
33 #: archlinux debian-trixie debian-unstable
34 #, no-wrap
35 msgid "Title"
36 msgstr "Title"
37
38 #. Required to disable full justification in groff 1.23.0.
39 #. ========================================================================
40 #. type: IX
41 #: archlinux
42 #, no-wrap
43 msgid "SSL_CTX_SET_TLSEXT_TICKET_KEY_CB 3ssl"
44 msgstr "SSL_CTX_SET_TLSEXT_TICKET_KEY_CB 3ssl"
45
46 #. type: TH
47 #: archlinux debian-trixie debian-unstable
48 #, no-wrap
49 msgid "SSL_CTX_SET_TLSEXT_TICKET_KEY_CB"
50 msgstr "SSL_CTX_SET_TLSEXT_TICKET_KEY_CB"
51
52 #. type: TH
53 #: archlinux debian-trixie debian-unstable
54 #, no-wrap
55 msgid "2026-04-07"
56 msgstr "7 أبريل 2026"
57
58 #. type: TH
59 #: archlinux debian-unstable
60 #, no-wrap
61 msgid "3.6.2"
62 msgstr "3.6.2"
63
64 #. type: TH
65 #: archlinux debian-trixie debian-unstable
66 #, no-wrap
67 msgid "OpenSSL"
68 msgstr "OpenSSL"
69
70 #. type: SH
71 #: archlinux debian-trixie debian-unstable
72 #, no-wrap
73 msgid "NAME"
74 msgstr "الاسم"
75
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable
78 msgid ""
79 "SSL_CTX_set_tlsext_ticket_key_evp_cb, SSL_CTX_set_tlsext_ticket_key_cb \\&- "
80 "set a callback for session ticket processing"
81 msgstr ""
82 "SSL_CTX_set_tlsext_ticket_key_evp_cb, SSL_CTX_set_tlsext_ticket_key_cb \\&- "
83 "تعيين دالة استدعاء لمعالجة تذاكر الجلسة"
84
85 #. type: IX
86 #: archlinux debian-trixie debian-unstable
87 #, no-wrap
88 msgid "SYNOPSIS"
89 msgstr "موجز"
90
91 #. type: IX
92 #: archlinux debian-trixie debian-unstable
93 #, no-wrap
94 msgid "Header"
95 msgstr "Header"
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable
99 #, no-wrap
100 msgid ""
101 "\\& #include E<lt>openssl/tls1.hE<gt>\n"
102 "\\&\n"
103 "\\& int SSL_CTX_set_tlsext_ticket_key_evp_cb(SSL_CTX sslctx,\n"
104 "\\& int (*cb)(SSL *s, unsigned char key_name[16],\n"
105 "\\& unsigned char iv[EVP_MAX_IV_LENGTH],\n"
106 "\\& EVP_CIPHER_CTX *ctx, EVP_MAC_CTX *hctx, int enc));\n"
107 msgstr ""
108 "\\& #include E<lt>openssl/tls1.hE<gt>\n"
109 "\\&\n"
110 "\\& int SSL_CTX_set_tlsext_ticket_key_evp_cb(SSL_CTX sslctx,\n"
111 "\\& int (*cb)(SSL *s, unsigned char key_name[16],\n"
112 "\\& unsigned char iv[EVP_MAX_IV_LENGTH],\n"
113 "\\& EVP_CIPHER_CTX *ctx, EVP_MAC_CTX *hctx, int enc));\n"
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable
117 msgid ""
118 "The following function has been deprecated since OpenSSL 3.0, and can be "
119 "hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version "
120 "value, see B<openssl_user_macros>\\|(7):"
121 msgstr ""
122 "الدالة التالية أصبحت مهجورة منذ OpenSSL 3.0، ويمكن إخفاؤها تمامًا عبر تعريف "
123 "B<OPENSSL_API_COMPAT> بقيمة إصدار مناسبة، انظر B<openssl_user_macros>\\|(7):"
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable
127 #, no-wrap
128 msgid ""
129 "\\& int SSL_CTX_set_tlsext_ticket_key_cb(SSL_CTX sslctx,\n"
130 "\\& int (*cb)(SSL *s, unsigned char key_name[16],\n"
131 "\\& unsigned char iv[EVP_MAX_IV_LENGTH],\n"
132 "\\& EVP_CIPHER_CTX *ctx, HMAC_CTX *hctx, int enc));\n"
133 msgstr ""
134 "\\& int SSL_CTX_set_tlsext_ticket_key_cb(SSL_CTX sslctx,\n"
135 "\\& int (*cb)(SSL *s, unsigned char key_name[16],\n"
136 "\\& unsigned char iv[EVP_MAX_IV_LENGTH],\n"
137 "\\& EVP_CIPHER_CTX *ctx, HMAC_CTX *hctx, int enc));\n"
138
139 #. type: IX
140 #: archlinux debian-trixie debian-unstable
141 #, no-wrap
142 msgid "DESCRIPTION"
143 msgstr "الوصف"
144
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable
147 msgid ""
148 "\\&B<SSL_CTX_set_tlsext_ticket_key_evp_cb()> sets a callback function I<cb> "
149 "for handling session tickets for the ssl context I<sslctx>. Session tickets, "
150 "defined in RFC5077 provide an enhanced session resumption capability where "
151 "the server implementation is not required to maintain per session state. It "
152 "only applies to TLS and there is no SSLv3 implementation."
153 msgstr ""
154 "\\&B<SSL_CTX_set_tlsext_ticket_key_evp_cb()> تعيّن دالة استدعاء I<cb> لمعالجة "
155 "تذاكر الجلسة لسياق SSL I<sslctx>. تذاكر الجلسة، المُعرَّفة في RFC5077، تُوفّر "
156 "قدرة محسّنة على استئناف الجلسة حيث لا يُطلب من تطبيق الخادم الحفاظ على حالة "
157 "لكل جلسة. ينطبق هذا فقط على TLS ولا يوجد تطبيق SSLv3."
158
159 #. type: Plain text
160 #: archlinux debian-trixie debian-unstable
161 msgid ""
162 "The callback function I<cb> will be called for every client instigated TLS "
163 "session when session ticket extension is presented in the TLS hello message. "
164 "It is the responsibility of this function to create or retrieve the "
165 "cryptographic parameters and to maintain their state."
166 msgstr ""
167 "دالة الاستدعاء I<cb> ستُستدعى لكل جلسة TLS يبدأها العميل عند تقديم امتداد "
168 "تذكرة الجلسة في رسالة الترحيب TLS. تقع على عاتق هذه الدالة مسؤولية إنشاء أو "
169 "استرجاع المعاملات التعمية والحفاظ على حالتها."
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable
173 msgid ""
174 "The OpenSSL library uses your callback function to help implement a common "
175 "TLS ticket construction state according to RFC5077 Section 4 such that per "
176 "session state is unnecessary and a small set of cryptographic variables "
177 "needs to be maintained by the callback function implementation."
178 msgstr ""
179 "مكتبة OpenSSL تستخدم دالة الاستدعاء الخاصة بك للمساعدة في تنفيذ حالة بناء "
180 "تذكرة TLS شائعة وفقًا للقسم 4 من RFC5077 بحيث لا تكون حالة كل جلسة ضرورية "
181 "وتحتاج مجموعة صغيرة من المتغيرات التعمية إلى الصيانة بواسطة تطبيق دالة "
182 "الاستدعاء."
183
184 #. type: Plain text
185 #: archlinux debian-trixie debian-unstable
186 msgid ""
187 "In order to reuse a session, a TLS client must send the session ticket "
188 "extension to the server. The client must send exactly one session ticket. "
189 "The server, through the callback function, either agrees to reuse the "
190 "session ticket information or it starts a full TLS handshake to create a new "
191 "session ticket."
192 msgstr ""
193 "لإعادة استخدام جلسة، يجب على عميل TLS إرسال امتداد تذكرة الجلسة إلى الخادم. "
194 "يجب على العميل إرسال تذكرة جلسة واحدة بالضبط. الخادم، من خلال دالة "
195 "الاستدعاء، إما يوافق على إعادة استخدام معلومات تذكرة الجلسة أو يبدأ مصافحة "
196 "TLS كاملة لإنشاء تذكرة جلسة جديدة."
197
198 #. type: Plain text
199 #: archlinux debian-trixie debian-unstable
200 msgid ""
201 "Before the callback function is started I<ctx> and I<hctx> have been "
202 "initialised with B<EVP_CIPHER_CTX_reset>\\|(3) and B<EVP_MAC_CTX_new>\\|(3) "
203 "respectively."
204 msgstr ""
205 "قبل بدء دالة الاستدعاء، تمت تهيئة I<ctx> و I<hctx> باستخدام "
206 "B<EVP_CIPHER_CTX_reset>\\|(3) و B<EVP_MAC_CTX_new>\\|(3) على التوالي."
207
208 #. type: Plain text
209 #: archlinux
210 msgid ""
211 "For new sessions tickets, when the client doesn\\*(Aqt present a session "
212 "ticket, or an attempted retrieval of the ticket failed, or a renew option "
213 "was indicated, the callback function will be called with I<enc> equal to 1. "
214 "The OpenSSL library expects that the function will set an arbitrary I<name>, "
215 "initialize \\&I<iv>, and set the cipher context I<ctx> and the hash context "
216 "I<hctx>."
217 msgstr ""
218 "لتذاكر الجلسات الجديدة، عندما لا يقدم العميل تذكرة جلسة، أو فشلت محاولة "
219 "استرجاع التذكرة، أو تمت الإشارة إلى خيار التجديد، ستُستدعى دالة الاستدعاء مع "
220 "I<enc> مساويًا لـ 1. تتوقع مكتبة OpenSSL أن الدالة ستُعيِّن I<name> عشوائيًا، "
221 "وتهيئ \\&I<iv>، وتُعيِّن سياق المُعمِّي I<ctx> وسياق التجزئة I<hctx>."
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable
225 msgid "The I<name> is 16 characters long and is used as a key identifier."
226 msgstr "I<name> طوله 16 حرفًا ويُستخدم كمُعرِّف للمفتاح."
227
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable
230 msgid ""
231 "The I<iv> length is the length of the IV of the corresponding cipher. The "
232 "maximum IV length is B<EVP_MAX_IV_LENGTH> bytes defined in I<E<lt>openssl/"
233 "evp.hE<gt>>."
234 msgstr ""
235 "طول I<iv> هو طول IV للمُعمِّي المقابل. الحد الأقصى لطول IV هو "
236 "B<EVP_MAX_IV_LENGTH> بايت مُعرَّف في I<E<lt>openssl/evp.hE<gt>>."
237
238 #. type: Plain text
239 #: archlinux debian-trixie debian-unstable
240 msgid ""
241 "The initialization vector I<iv> should be a random value. The cipher context "
242 "\\&I<ctx> should use the initialisation vector I<iv>. The cipher context can "
243 "be set using B<EVP_EncryptInit_ex>\\|(3). The hmac context and digest can be "
244 "set using \\&B<EVP_MAC_CTX_set_params>\\|(3) with the B<OSSL_MAC_PARAM_KEY> "
245 "and \\&B<OSSL_MAC_PARAM_DIGEST> parameters respectively."
246 msgstr ""
247 "متجه التهيئة I<iv> يجب أن يكون قيمة عشوائية. سياق المُعمِّي \\&I<ctx> يجب أن "
248 "يستخدم متجه التهيئة I<iv>. يمكن تعيين سياق المُعمِّي باستخدام "
249 "B<EVP_EncryptInit_ex>\\|(3). يمكن تعيين سياق HMAC والملخص باستخدام "
250 "\\&B<EVP_MAC_CTX_set_params>\\|(3) مع المعاملين B<OSSL_MAC_PARAM_KEY> و "
251 "\\&B<OSSL_MAC_PARAM_DIGEST> على التوالي."
252
253 #. type: Plain text
254 #: archlinux debian-trixie debian-unstable
255 msgid ""
256 "When the client presents a session ticket, the callback function with be "
257 "called with I<enc> set to 0 indicating that the I<cb> function should "
258 "retrieve a set of parameters. In this case I<name> and I<iv> have already "
259 "been parsed out of the session ticket. The OpenSSL library expects that the "
260 "I<name> will be used to retrieve a cryptographic parameters and that the "
261 "cryptographic context \\&I<ctx> will be set with the retrieved parameters "
262 "and the initialization vector \\&I<iv>. using a function like "
263 "B<EVP_DecryptInit_ex>\\|(3). The key material and digest for I<hctx> need to "
264 "be set using B<EVP_MAC_CTX_set_params>\\|(3) with the "
265 "\\&B<OSSL_MAC_PARAM_KEY> and B<OSSL_MAC_PARAM_DIGEST> parameters "
266 "respectively."
267 msgstr ""
268 "عندما يقدم العميل تذكرة جلسة، ستُستدعى دالة الاستدعاء مع I<enc> مُعيَّنًا إلى 0 "
269 "للإشارة إلى أن دالة I<cb> يجب أن تسترجع مجموعة من المعاملات. في هذه الحالة، "
270 "تم بالفعل تحليل I<name> و I<iv> من تذكرة الجلسة. تتوقع مكتبة OpenSSL أن "
271 "I<name> سيُستخدم لاسترجاع معاملات تعمية وأن السياق التعمي \\&I<ctx> سيُعيَّن مع "
272 "المعاملات المسترجعة ومتجه التهيئة \\&I<iv> باستخدام دالة مثل "
273 "B<EVP_DecryptInit_ex>\\|(3). مادة المفتاح والملخص لـ I<hctx> يحتاجان إلى "
274 "التعيين باستخدام B<EVP_MAC_CTX_set_params>\\|(3) مع المعاملين "
275 "\\&B<OSSL_MAC_PARAM_KEY> و B<OSSL_MAC_PARAM_DIGEST> على التوالي."
276
277 #. type: Plain text
278 #: archlinux debian-trixie debian-unstable
279 msgid ""
280 "If the I<name> is still valid but a renewal of the ticket is required the "
281 "callback function should return 2. The library will call the callback again "
282 "with an argument of enc equal to 1 to set the new ticket."
283 msgstr ""
284 "إذا كان I<name> لا يزال صالحًا ولكن تجديد التذكرة مطلوب، يجب على دالة "
285 "الاستدعاء إرجاع 2. ستستدعي المكتبة دالة الاستدعاء مرة أخرى مع وسيطة enc "
286 "مساوية لـ 1 لتعيين التذكرة الجديدة."
287
288 #. type: Plain text
289 #: archlinux debian-trixie debian-unstable
290 msgid ""
291 "The return value of the I<cb> function is used by OpenSSL to determine what "
292 "further processing will occur. The following return values have meaning:"
293 msgstr ""
294 "قيمة الإرجاع لدالة I<cb> تُستخدم بواسطة OpenSSL لتحديد المعالجة الإضافية التي "
295 "ستحدث. لقيم الإرجاع التالية معانٍ:"
296
297 #. type: IX
298 #: archlinux debian-trixie debian-unstable
299 #, no-wrap
300 msgid "2"
301 msgstr "2"
302
303 #. type: IX
304 #: archlinux debian-trixie debian-unstable
305 #, no-wrap
306 msgid "Item"
307 msgstr "Item"
308
309 #. type: Plain text
310 #: archlinux debian-trixie debian-unstable
311 msgid ""
312 "This indicates that the I<ctx> and I<hctx> have been set and the session can "
313 "continue on those parameters. Additionally it indicates that the session "
314 "ticket is in a renewal period and should be replaced. The OpenSSL library "
315 "will call I<cb> again with an enc argument of 1 to set the new ticket (see "
316 "RFC5077 3.3 paragraph 2)."
317 msgstr ""
318 "يشير هذا إلى أنه تم تعيين I<ctx> و I<hctx> ويمكن للجلسة الاستمرار على تلك "
319 "المعاملات. بالإضافة إلى ذلك، يشير إلى أن تذكرة الجلسة في فترة تجديد ويجب "
320 "استبدالها. ستستدعي مكتبة OpenSSL I<cb> مرة أخرى مع وسيطة enc بقيمة 1 لتعيين "
321 "التذكرة الجديدة (انظر RFC5077 3.3 الفقرة 2)."
322
323 #. type: IX
324 #: archlinux debian-trixie debian-unstable
325 #, no-wrap
326 msgid "1"
327 msgstr "1"
328
329 #. type: Plain text
330 #: archlinux debian-trixie debian-unstable
331 msgid ""
332 "This indicates that the I<ctx> and I<hctx> have been set and the session can "
333 "continue on those parameters."
334 msgstr ""
335 "يشير هذا إلى أنه تم تعيين I<ctx> و I<hctx> ويمكن للجلسة الاستمرار على تلك "
336 "المعاملات."
337
338 #. type: IP
339 #: archlinux debian-trixie debian-unstable
340 #, no-wrap
341 msgid "0"
342 msgstr "0"
343
344 #. type: Plain text
345 #: archlinux debian-trixie debian-unstable
346 msgid ""
347 "This indicates that it was not possible to set/retrieve a session ticket and "
348 "the SSL/TLS session will continue by negotiating a set of cryptographic "
349 "parameters or using the alternate SSL/TLS resumption mechanism, session ids."
350 msgstr ""
351 "يشير هذا إلى أنه لم يكن من الممكن تعيين/استرجاع تذكرة جلسة وستستمر جلسة SSL/"
352 "TLS عن طريق التفاوض على مجموعة من المعاملات التعمية أو باستخدام آلية استئناف "
353 "SSL/TLS البديلة، معرفات الجلسة."
354
355 #. type: Plain text
356 #: archlinux debian-trixie debian-unstable
357 msgid ""
358 "If called with enc equal to 0 the library will call the I<cb> again to get a "
359 "new set of parameters."
360 msgstr ""
361 "إذا استُدعيت مع enc مساوية لـ 0، ستستدعي المكتبة I<cb> مرة أخرى للحصول على "
362 "مجموعة جديدة من المعاملات."
363
364 #. type: IX
365 #: archlinux debian-trixie debian-unstable
366 #, no-wrap
367 msgid "less than 0"
368 msgstr "أقل من 0"
369
370 #. type: Plain text
371 #: archlinux debian-trixie debian-unstable
372 msgid "This indicates an error."
373 msgstr "يشير هذا إلى خطأ."
374
375 #. type: Plain text
376 #: archlinux debian-trixie debian-unstable
377 msgid ""
378 "The B<SSL_CTX_set_tlsext_ticket_key_cb()> function is identical to "
379 "\\&B<SSL_CTX_set_tlsext_ticket_key_evp_cb()> except that it takes a "
380 "deprecated HMAC_CTX pointer instead of an EVP_MAC_CTX one. Before this "
381 "callback function is started I<hctx> will have been initialised with "
382 "B<EVP_MAC_CTX_new>\\|(3) and the digest set with "
383 "\\&B<EVP_MAC_CTX_set_params>\\|(3). The I<hctx> key material can be set "
384 "using B<HMAC_Init_ex>\\|(3)."
385 msgstr ""
386 "الدالة B<SSL_CTX_set_tlsext_ticket_key_cb()> مطابقة لـ "
387 "\\&B<SSL_CTX_set_tlsext_ticket_key_evp_cb()> باستثناء أنها تأخذ مؤشر "
388 "HMAC_CTX مهمل بدلاً من مؤشر EVP_MAC_CTX. قبل بدء دالة الاستدعاء هذه، ستكون "
389 "I<hctx> قد هُيئت باستخدام B<EVP_MAC_CTX_new>\\|(3) وضُبط الملخص باستخدام "
390 "\\&B<EVP_MAC_CTX_set_params>\\|(3). يمكن ضبط مادة مفتاح I<hctx> باستخدام "
391 "B<HMAC_Init_ex>\\|(3)."
392
393 #. type: IX
394 #: archlinux debian-trixie debian-unstable
395 #, no-wrap
396 msgid "NOTES"
397 msgstr "ملاحظات"
398
399 #. type: Plain text
400 #: archlinux
401 msgid ""
402 "Session resumption shortcuts the TLS handshake so that the client "
403 "certificate negotiation doesn\\*(Aqt occur. It makes up for this by storing "
404 "the client certificate and all other negotiated state information encrypted "
405 "within the ticket. In a resumed session the applications will have all this "
406 "state information available exactly as if a full negotiation had occurred."
407 msgstr ""
408 "استئناف الجلسة يختصر المصافحة TLS بحيث لا يحدث تفاوض شهادة العميل. يعوض هذا "
409 "بتخزين شهادة العميل وجميع معلومات الحالة المتفاوض عليها الأخرى معمّاة داخل "
410 "التذكرة. في جلسة مستأنفة، ستتوفر للتطبيقات جميع معلومات الحالة هذه تمامًا كما "
411 "لو حدث تفاوض كامل."
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable
415 msgid ""
416 "If an attacker can obtain the key used to encrypt a session ticket, they can "
417 "obtain the master secret for any ticket using that key and decrypt any "
418 "traffic using that session: even if the cipher suite supports forward "
419 "secrecy. As a result applications may wish to use multiple keys and avoid "
420 "using long term keys stored in files."
421 msgstr ""
422 "إذا تمكن مهاجم من الحصول على المفتاح المستخدم لتعمية تذكرة جلسة، يمكنه "
423 "الحصول على السر الرئيسي لأي تذكرة باستخدام ذلك المفتاح وفك تعمية أي حركة "
424 "مرور باستخدام تلك الجلسة: حتى لو كانت مجموعة المُعمِّي تدعم السرية الأمامية. "
425 "نتيجة لذلك، قد ترغب التطبيقات في استخدام مفاتيح متعددة وتجنب استخدام مفاتيح "
426 "طويلة الأجل مخزنة في ملفات."
427
428 #. type: Plain text
429 #: archlinux debian-trixie debian-unstable
430 msgid ""
431 "Applications can use longer keys to maintain a consistent level of "
432 "security. For example if a cipher suite uses 256 bit ciphers but only a 128 "
433 "bit ticket key the overall security is only 128 bits because breaking the "
434 "ticket key will enable an attacker to obtain the session keys."
435 msgstr ""
436 "يمكن للتطبيقات استخدام مفاتيح أطول للحفاظ على مستوى ثابت من الأمان. على سبيل "
437 "المثال، إذا استخدمت مجموعة المُعمِّي مُعمِّيات 256 بت ولكن فقط مفتاح تذكرة 128 بت، "
438 "فإن الأمان الكلي هو 128 بت فقط لأن كسر مفتاح التذكرة سيمكن المهاجم من الحصول "
439 "على مفاتيح الجلسة."
440
441 #. type: IX
442 #: archlinux debian-trixie debian-unstable
443 #, no-wrap
444 msgid "RETURN VALUES"
445 msgstr "القيم المُرجعة"
446
447 #. type: Plain text
448 #: archlinux debian-trixie debian-unstable
449 msgid "Returns 1 to indicate the callback function was set and 0 otherwise."
450 msgstr "تُرجع 1 للإشارة إلى أن دالة الاستدعاء ضُبطت و0 خلاف ذلك."
451
452 #. type: IX
453 #: archlinux debian-trixie debian-unstable
454 #, no-wrap
455 msgid "EXAMPLES"
456 msgstr "أمثلة"
457
458 #. type: Plain text
459 #: archlinux debian-trixie debian-unstable
460 msgid "Reference Implementation:"
461 msgstr "التنفيذ المرجعي:"
462
463 #. type: Plain text
464 #: archlinux debian-trixie debian-unstable
465 #, no-wrap
466 msgid ""
467 "\\& SSL_CTX_set_tlsext_ticket_key_evp_cb(SSL, ssl_tlsext_ticket_key_cb);\n"
468 "\\& ...\n"
469 "\\&\n"
470 "\\& static int ssl_tlsext_ticket_key_cb(SSL *s, unsigned char key_name[16],\n"
471 "\\& unsigned char *iv, EVP_CIPHER_CTX *ctx,\n"
472 "\\& EVP_MAC_CTX *hctx, int enc)\n"
473 "\\& {\n"
474 "\\& OSSL_PARAM params[3];\n"
475 "\\& your_type_t *key; /* something that you need to implement */\n"
476 "\\&\n"
477 "\\& if (enc) { /* create new session */\n"
478 "\\& if (RAND_bytes(iv, EVP_MAX_IV_LENGTH) E<lt>= 0)\n"
479 "\\& return -1; /* insufficient random */\n"
480 "\\&\n"
481 "\\& key = currentkey(); /* something that you need to implement */\n"
482 "\\& if (key == NULL) {\n"
483 "\\& /* current key doesn\\*(Aqt exist or isn\\*(Aqt valid */\n"
484 "\\& key = createkey(); /*\n"
485 "\\& * Something that you need to implement.\n"
486 "\\& * createkey needs to initialise a name,\n"
487 "\\& * an aes_key, a hmac_key and optionally\n"
488 "\\& * an expire time.\n"
489 "\\& */\n"
490 "\\& if (key == NULL) /* key couldn\\*(Aqt be created */\n"
491 "\\& return 0;\n"
492 "\\& }\n"
493 "\\& memcpy(key_name, key-E<gt>name, 16);\n"
494 "\\&\n"
495 "\\& if (EVP_EncryptInit_ex(&ctx, EVP_aes_256_cbc(), NULL, key-E<gt>aes_key,\n"
496 "\\& iv) == 0)\n"
497 "\\& return -1; /* error in cipher initialisation */\n"
498 "\\&\n"
499 "\\& params[0] = OSSL_PARAM_construct_octet_string(OSSL_MAC_PARAM_KEY,\n"
500 "\\& key-E<gt>hmac_key, 32);\n"
501 "\\& params[1] = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_DIGEST,\n"
502 "\\& \"sha256\", 0);\n"
503 "\\& params[2] = OSSL_PARAM_construct_end();\n"
504 "\\& if (EVP_MAC_CTX_set_params(hctx, params) == 0)\n"
505 "\\& return -1; /* error in mac initialisation */\n"
506 "\\&\n"
507 "\\& return 1;\n"
508 "\\&\n"
509 "\\& } else { /* retrieve session */\n"
510 "\\& time_t t = time(NULL);\n"
511 "\\& key = findkey(key_name); /* something that you need to implement */\n"
512 "\\&\n"
513 "\\& if (key == NULL || key-E<gt>expire E<lt> t)\n"
514 "\\& return 0;\n"
515 "\\&\n"
516 "\\& params[0] = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_KEY,\n"
517 "\\& key-E<gt>hmac_key, 32);\n"
518 "\\& params[1] = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_DIGEST,\n"
519 "\\& \"sha256\", 0);\n"
520 "\\& params[2] = OSSL_PARAM_construct_end();\n"
521 "\\& if (EVP_MAC_CTX_set_params(hctx, params) == 0)\n"
522 "\\& return -1; /* error in mac initialisation */\n"
523 "\\&\n"
524 "\\& if (EVP_DecryptInit_ex(&ctx, EVP_aes_256_cbc(), NULL, key-E<gt>aes_key,\n"
525 "\\& iv) == 0)\n"
526 "\\& return -1; /* error in cipher initialisation */\n"
527 "\\&\n"
528 "\\& if (key-E<gt>expire E<lt> t - RENEW_TIME) { /* RENEW_TIME: implement */\n"
529 "\\& /*\n"
530 "\\& * return 2 - This session will get a new ticket even though the\n"
531 "\\& * current one is still valid.\n"
532 "\\& */\n"
533 "\\& return 2;\n"
534 "\\& }\n"
535 "\\& return 1;\n"
536 "\\& }\n"
537 "\\& }\n"
538 msgstr ""
539 "\\& SSL_CTX_set_tlsext_ticket_key_evp_cb(SSL, ssl_tlsext_ticket_key_cb);\n"
540 "\\& ...\n"
541 "\\&\n"
542 "\\& static int ssl_tlsext_ticket_key_cb(SSL *s, unsigned char key_name[16],\n"
543 "\\& unsigned char *iv, EVP_CIPHER_CTX *ctx,\n"
544 "\\& EVP_MAC_CTX *hctx, int enc)\n"
545 "\\& {\n"
546 "\\& OSSL_PARAM params[3];\n"
547 "\\& your_type_t *key; /* something that you need to implement */\n"
548 "\\&\n"
549 "\\& if (enc) { /* create new session */\n"
550 "\\& if (RAND_bytes(iv, EVP_MAX_IV_LENGTH) E<lt>= 0)\n"
551 "\\& return -1; /* insufficient random */\n"
552 "\\&\n"
553 "\\& key = currentkey(); /* something that you need to implement */\n"
554 "\\& if (key == NULL) {\n"
555 "\\& /* current key doesn\\*(Aqt exist or isn\\*(Aqt valid */\n"
556 "\\& key = createkey(); /*\n"
557 "\\& * Something that you need to implement.\n"
558 "\\& * createkey needs to initialise a name,\n"
559 "\\& * an aes_key, a hmac_key and optionally\n"
560 "\\& * an expire time.\n"
561 "\\& */\n"
562 "\\& if (key == NULL) /* key couldn\\*(Aqt be created */\n"
563 "\\& return 0;\n"
564 "\\& }\n"
565 "\\& memcpy(key_name, key-E<gt>name, 16);\n"
566 "\\&\n"
567 "\\& if (EVP_EncryptInit_ex(&ctx, EVP_aes_256_cbc(), NULL, key-E<gt>aes_key,\n"
568 "\\& iv) == 0)\n"
569 "\\& return -1; /* error in cipher initialisation */\n"
570 "\\&\n"
571 "\\& params[0] = OSSL_PARAM_construct_octet_string(OSSL_MAC_PARAM_KEY,\n"
572 "\\& key-E<gt>hmac_key, 32);\n"
573 "\\& params[1] = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_DIGEST,\n"
574 "\\& \"sha256\", 0);\n"
575 "\\& params[2] = OSSL_PARAM_construct_end();\n"
576 "\\& if (EVP_MAC_CTX_set_params(hctx, params) == 0)\n"
577 "\\& return -1; /* error in mac initialisation */\n"
578 "\\&\n"
579 "\\& return 1;\n"
580 "\\&\n"
581 "\\& } else { /* retrieve session */\n"
582 "\\& time_t t = time(NULL);\n"
583 "\\& key = findkey(key_name); /* something that you need to implement */\n"
584 "\\&\n"
585 "\\& if (key == NULL || key-E<gt>expire E<lt> t)\n"
586 "\\& return 0;\n"
587 "\\&\n"
588 "\\& params[0] = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_KEY,\n"
589 "\\& key-E<gt>hmac_key, 32);\n"
590 "\\& params[1] = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_DIGEST,\n"
591 "\\& \"sha256\", 0);\n"
592 "\\& params[2] = OSSL_PARAM_construct_end();\n"
593 "\\& if (EVP_MAC_CTX_set_params(hctx, params) == 0)\n"
594 "\\& return -1; /* error in mac initialisation */\n"
595 "\\&\n"
596 "\\& if (EVP_DecryptInit_ex(&ctx, EVP_aes_256_cbc(), NULL, key-E<gt>aes_key,\n"
597 "\\& iv) == 0)\n"
598 "\\& return -1; /* error in cipher initialisation */\n"
599 "\\&\n"
600 "\\& if (key-E<gt>expire E<lt> t - RENEW_TIME) { /* RENEW_TIME: implement */\n"
601 "\\& /*\n"
602 "\\& * return 2 - This session will get a new ticket even though the\n"
603 "\\& * current one is still valid.\n"
604 "\\& */\n"
605 "\\& return 2;\n"
606 "\\& }\n"
607 "\\& return 1;\n"
608 "\\& }\n"
609 "\\& }\n"
610
611 #. type: IX
612 #: archlinux debian-trixie debian-unstable
613 #, no-wrap
614 msgid "SEE ALSO"
615 msgstr "انظر أيضًا"
616
617 #. type: Plain text
618 #: archlinux debian-trixie debian-unstable
619 msgid ""
620 "\\&B<ssl>\\|(7), B<SSL_set_session>\\|(3), \\&B<SSL_session_reused>\\|(3), "
621 "\\&B<SSL_CTX_add_session>\\|(3), \\&B<SSL_CTX_sess_number>\\|(3), "
622 "\\&B<SSL_CTX_sess_set_get_cb>\\|(3), \\&B<SSL_CTX_set_session_id_context>\\|"
623 "(3),"
624 msgstr ""
625 "\\&B<ssl>\\|(7), B<SSL_set_session>\\|(3), \\&B<SSL_session_reused>\\|(3), "
626 "\\&B<SSL_CTX_add_session>\\|(3), \\&B<SSL_CTX_sess_number>\\|(3), "
627 "\\&B<SSL_CTX_sess_set_get_cb>\\|(3), \\&B<SSL_CTX_set_session_id_context>\\|"
628 "(3),"
629
630 #. type: IX
631 #: archlinux debian-trixie debian-unstable
632 #, no-wrap
633 msgid "HISTORY"
634 msgstr "التاريخ"
635
636 #. type: Plain text
637 #: archlinux debian-trixie debian-unstable
638 msgid ""
639 "The B<SSL_CTX_set_tlsext_ticket_key_cb()> function was deprecated in OpenSSL "
640 "3.0."
641 msgstr "الدالة B<SSL_CTX_set_tlsext_ticket_key_cb()> أُهملت في OpenSSL 3.0."
642
643 #. type: Plain text
644 #: archlinux debian-trixie debian-unstable
645 msgid ""
646 "The B<SSL_CTX_set_tlsext_ticket_key_evp_cb()> function was introduced in "
647 "OpenSSL 3.0."
648 msgstr "الدالة B<SSL_CTX_set_tlsext_ticket_key_evp_cb()> قُدمت في OpenSSL 3.0."
649
650 #. type: IX
651 #: archlinux debian-trixie debian-unstable
652 #, no-wrap
653 msgid "COPYRIGHT"
654 msgstr "حقوق النسخ"
655
656 #. type: Plain text
657 #: archlinux debian-trixie debian-unstable
658 msgid "Copyright 2014-2024 The OpenSSL Project Authors. All Rights Reserved."
659 msgstr "حقوق النشر 2014-2024 لمؤلفي مشروع OpenSSL. جميع الحقوق محفوظة."
660
661 #. type: Plain text
662 #: archlinux debian-trixie debian-unstable
663 msgid ""
664 "Licensed under the Apache License 2.0 (the \"License\"). You may not use "
665 "this file except in compliance with the License. You can obtain a copy in "
666 "the file LICENSE in the source distribution or at E<lt>https://www.openssl."
667 "org/source/license.htmlE<gt>."
668 msgstr ""
669 "مرخص بموجب رخصة Apache 2.0 (المشار إليها فيما يلي بـ ”الرخصة“). لا يجوز لك "
670 "استخدام هذا الملف إلا وفقًا لشروط الرخصة. يمكنك الحصول على نسخة منها في "
671 "الملف LICENSE الموجود في حزمة التوزيع المصدرية أو على الرابط E<lt>https://"
672 "www.openssl.org/source/license.htmlE<gt>."
673
674 #. ========================================================================
675 #. type: IX
676 #: debian-trixie debian-unstable
677 #, no-wrap
678 msgid "SSL_CTX_SET_TLSEXT_TICKET_KEY_CB 3SSL"
679 msgstr "SSL_CTX_SET_TLSEXT_TICKET_KEY_CB 3SSL"
680
681 #. type: TH
682 #: debian-trixie
683 #, no-wrap
684 msgid "3.5.6"
685 msgstr "3.5.6"
686
687 #. type: Plain text
688 #: debian-trixie debian-unstable
689 msgid ""
690 "For new sessions tickets, when the client doesn't present a session ticket, "
691 "or an attempted retrieval of the ticket failed, or a renew option was "
692 "indicated, the callback function will be called with I<enc> equal to 1. The "
693 "OpenSSL library expects that the function will set an arbitrary I<name>, "
694 "initialize \\&I<iv>, and set the cipher context I<ctx> and the hash context "
695 "I<hctx>."
696 msgstr ""
697 "لتذاكر الجلسات الجديدة، عندما لا يقدم العميل تذكرة جلسة، أو فشلت محاولة "
698 "استرجاع التذكرة، أو أُشير إلى خيار التجديد، ستُستدعى دالة الاستدعاء مع I<enc> "
699 "مساوية لـ 1. تتوقع مكتبة OpenSSL أن الدالة ستضبط I<name> عشوائياً، وتهيئ "
700 "\\&I<iv>، وتضبط سياق المُعمِّي I<ctx> وسياق التجزئة I<hctx>."
701
702 #. type: Plain text
703 #: debian-trixie debian-unstable
704 msgid ""
705 "Session resumption shortcuts the TLS handshake so that the client "
706 "certificate negotiation doesn't occur. It makes up for this by storing the "
707 "client certificate and all other negotiated state information encrypted "
708 "within the ticket. In a resumed session the applications will have all this "
709 "state information available exactly as if a full negotiation had occurred."
710 msgstr ""
711 "استئناف الجلسة يختصر المصافحة TLS بحيث لا يحدث تفاوض شهادة العميل. يعوض هذا "
712 "بتخزين شهادة العميل وجميع معلومات الحالة المتفاوض عليها الأخرى معمّاة داخل "
713 "التذكرة. في جلسة مستأنفة، ستتوفر للتطبيقات جميع معلومات الحالة هذه تمامًا كما "
714 "لو حدث تفاوض كامل."