# Arabic translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # زايد السعيدي , 2026. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.30.2\n" "POT-Creation-Date: 2026-06-05 06:44+0200\n" "PO-Revision-Date: 2026-06-03 18:28+0400\n" "Last-Translator: Zayed Al-Saidi \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Lokalize 23.08.5\n" # #-#-#-#-# archlinux: SSL_CTX_set_tlsext_ticket_key_cb.3ssl.pot (PACKAGE # VERSION) #-#-#-#-# # #. #-#-#-#-# archlinux: SSL_CTX_set_tlsext_ticket_key_cb.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# debian-trixie: SSL_CTX_set_tlsext_ticket_key_cb.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# debian-unstable: SSL_CTX_set_tlsext_ticket_key_cb.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Title" msgstr "Title" #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #: archlinux #, no-wrap msgid "SSL_CTX_SET_TLSEXT_TICKET_KEY_CB 3ssl" msgstr "SSL_CTX_SET_TLSEXT_TICKET_KEY_CB 3ssl" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SSL_CTX_SET_TLSEXT_TICKET_KEY_CB" msgstr "SSL_CTX_SET_TLSEXT_TICKET_KEY_CB" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "2026-04-07" msgstr "7 أبريل 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "3.6.2" msgstr "3.6.2" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "OpenSSL" msgstr "OpenSSL" #. type: SH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "NAME" msgstr "الاسم" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "SSL_CTX_set_tlsext_ticket_key_evp_cb, SSL_CTX_set_tlsext_ticket_key_cb \\&- " "set a callback for session ticket processing" msgstr "" "SSL_CTX_set_tlsext_ticket_key_evp_cb, SSL_CTX_set_tlsext_ticket_key_cb \\&- " "تعيين دالة استدعاء لمعالجة تذاكر الجلسة" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SYNOPSIS" msgstr "موجز" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Header" msgstr "Header" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& #include Eopenssl/tls1.hE\n" "\\&\n" "\\& int SSL_CTX_set_tlsext_ticket_key_evp_cb(SSL_CTX sslctx,\n" "\\& int (*cb)(SSL *s, unsigned char key_name[16],\n" "\\& unsigned char iv[EVP_MAX_IV_LENGTH],\n" "\\& EVP_CIPHER_CTX *ctx, EVP_MAC_CTX *hctx, int enc));\n" msgstr "" "\\& #include Eopenssl/tls1.hE\n" "\\&\n" "\\& int SSL_CTX_set_tlsext_ticket_key_evp_cb(SSL_CTX sslctx,\n" "\\& int (*cb)(SSL *s, unsigned char key_name[16],\n" "\\& unsigned char iv[EVP_MAX_IV_LENGTH],\n" "\\& EVP_CIPHER_CTX *ctx, EVP_MAC_CTX *hctx, int enc));\n" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The following function has been deprecated since OpenSSL 3.0, and can be " "hidden entirely by defining B with a suitable version " "value, see B\\|(7):" msgstr "" "الدالة التالية أصبحت مهجورة منذ OpenSSL 3.0، ويمكن إخفاؤها تمامًا عبر تعريف " "B بقيمة إصدار مناسبة، انظر B\\|(7):" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& int SSL_CTX_set_tlsext_ticket_key_cb(SSL_CTX sslctx,\n" "\\& int (*cb)(SSL *s, unsigned char key_name[16],\n" "\\& unsigned char iv[EVP_MAX_IV_LENGTH],\n" "\\& EVP_CIPHER_CTX *ctx, HMAC_CTX *hctx, int enc));\n" msgstr "" "\\& int SSL_CTX_set_tlsext_ticket_key_cb(SSL_CTX sslctx,\n" "\\& int (*cb)(SSL *s, unsigned char key_name[16],\n" "\\& unsigned char iv[EVP_MAX_IV_LENGTH],\n" "\\& EVP_CIPHER_CTX *ctx, HMAC_CTX *hctx, int enc));\n" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "DESCRIPTION" msgstr "الوصف" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B sets a callback function I " "for handling session tickets for the ssl context I. Session tickets, " "defined in RFC5077 provide an enhanced session resumption capability where " "the server implementation is not required to maintain per session state. It " "only applies to TLS and there is no SSLv3 implementation." msgstr "" "\\&B تعيّن دالة استدعاء I لمعالجة " "تذاكر الجلسة لسياق SSL I. تذاكر الجلسة، المُعرَّفة في RFC5077، تُوفّر " "قدرة محسّنة على استئناف الجلسة حيث لا يُطلب من تطبيق الخادم الحفاظ على حالة " "لكل جلسة. ينطبق هذا فقط على TLS ولا يوجد تطبيق SSLv3." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The callback function I will be called for every client instigated TLS " "session when session ticket extension is presented in the TLS hello message. " "It is the responsibility of this function to create or retrieve the " "cryptographic parameters and to maintain their state." msgstr "" "دالة الاستدعاء I ستُستدعى لكل جلسة TLS يبدأها العميل عند تقديم امتداد " "تذكرة الجلسة في رسالة الترحيب TLS. تقع على عاتق هذه الدالة مسؤولية إنشاء أو " "استرجاع المعاملات التعمية والحفاظ على حالتها." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The OpenSSL library uses your callback function to help implement a common " "TLS ticket construction state according to RFC5077 Section 4 such that per " "session state is unnecessary and a small set of cryptographic variables " "needs to be maintained by the callback function implementation." msgstr "" "مكتبة OpenSSL تستخدم دالة الاستدعاء الخاصة بك للمساعدة في تنفيذ حالة بناء " "تذكرة TLS شائعة وفقًا للقسم 4 من RFC5077 بحيث لا تكون حالة كل جلسة ضرورية " "وتحتاج مجموعة صغيرة من المتغيرات التعمية إلى الصيانة بواسطة تطبيق دالة " "الاستدعاء." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "In order to reuse a session, a TLS client must send the session ticket " "extension to the server. The client must send exactly one session ticket. " "The server, through the callback function, either agrees to reuse the " "session ticket information or it starts a full TLS handshake to create a new " "session ticket." msgstr "" "لإعادة استخدام جلسة، يجب على عميل TLS إرسال امتداد تذكرة الجلسة إلى الخادم. " "يجب على العميل إرسال تذكرة جلسة واحدة بالضبط. الخادم، من خلال دالة " "الاستدعاء، إما يوافق على إعادة استخدام معلومات تذكرة الجلسة أو يبدأ مصافحة " "TLS كاملة لإنشاء تذكرة جلسة جديدة." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Before the callback function is started I and I have been " "initialised with B\\|(3) and B\\|(3) " "respectively." msgstr "" "قبل بدء دالة الاستدعاء، تمت تهيئة I و I باستخدام " "B\\|(3) و B\\|(3) على التوالي." #. type: Plain text #: archlinux msgid "" "For new sessions tickets, when the client doesn\\*(Aqt present a session " "ticket, or an attempted retrieval of the ticket failed, or a renew option " "was indicated, the callback function will be called with I equal to 1. " "The OpenSSL library expects that the function will set an arbitrary I, " "initialize \\&I, and set the cipher context I and the hash context " "I." msgstr "" "لتذاكر الجلسات الجديدة، عندما لا يقدم العميل تذكرة جلسة، أو فشلت محاولة " "استرجاع التذكرة، أو تمت الإشارة إلى خيار التجديد، ستُستدعى دالة الاستدعاء مع " "I مساويًا لـ 1. تتوقع مكتبة OpenSSL أن الدالة ستُعيِّن I عشوائيًا، " "وتهيئ \\&I، وتُعيِّن سياق المُعمِّي I وسياق التجزئة I." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "The I is 16 characters long and is used as a key identifier." msgstr "I طوله 16 حرفًا ويُستخدم كمُعرِّف للمفتاح." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The I length is the length of the IV of the corresponding cipher. The " "maximum IV length is B bytes defined in Iopenssl/" "evp.hE>." msgstr "" "طول I هو طول IV للمُعمِّي المقابل. الحد الأقصى لطول IV هو " "B بايت مُعرَّف في Iopenssl/evp.hE>." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The initialization vector I should be a random value. The cipher context " "\\&I should use the initialisation vector I. The cipher context can " "be set using B\\|(3). The hmac context and digest can be " "set using \\&B\\|(3) with the B " "and \\&B parameters respectively." msgstr "" "متجه التهيئة I يجب أن يكون قيمة عشوائية. سياق المُعمِّي \\&I يجب أن " "يستخدم متجه التهيئة I. يمكن تعيين سياق المُعمِّي باستخدام " "B\\|(3). يمكن تعيين سياق HMAC والملخص باستخدام " "\\&B\\|(3) مع المعاملين B و " "\\&B على التوالي." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When the client presents a session ticket, the callback function with be " "called with I set to 0 indicating that the I function should " "retrieve a set of parameters. In this case I and I have already " "been parsed out of the session ticket. The OpenSSL library expects that the " "I will be used to retrieve a cryptographic parameters and that the " "cryptographic context \\&I will be set with the retrieved parameters " "and the initialization vector \\&I. using a function like " "B\\|(3). The key material and digest for I need to " "be set using B\\|(3) with the " "\\&B and B parameters " "respectively." msgstr "" "عندما يقدم العميل تذكرة جلسة، ستُستدعى دالة الاستدعاء مع I مُعيَّنًا إلى 0 " "للإشارة إلى أن دالة I يجب أن تسترجع مجموعة من المعاملات. في هذه الحالة، " "تم بالفعل تحليل I و I من تذكرة الجلسة. تتوقع مكتبة OpenSSL أن " "I سيُستخدم لاسترجاع معاملات تعمية وأن السياق التعمي \\&I سيُعيَّن مع " "المعاملات المسترجعة ومتجه التهيئة \\&I باستخدام دالة مثل " "B\\|(3). مادة المفتاح والملخص لـ I يحتاجان إلى " "التعيين باستخدام B\\|(3) مع المعاملين " "\\&B و B على التوالي." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If the I is still valid but a renewal of the ticket is required the " "callback function should return 2. The library will call the callback again " "with an argument of enc equal to 1 to set the new ticket." msgstr "" "إذا كان I لا يزال صالحًا ولكن تجديد التذكرة مطلوب، يجب على دالة " "الاستدعاء إرجاع 2. ستستدعي المكتبة دالة الاستدعاء مرة أخرى مع وسيطة enc " "مساوية لـ 1 لتعيين التذكرة الجديدة." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The return value of the I function is used by OpenSSL to determine what " "further processing will occur. The following return values have meaning:" msgstr "" "قيمة الإرجاع لدالة I تُستخدم بواسطة OpenSSL لتحديد المعالجة الإضافية التي " "ستحدث. لقيم الإرجاع التالية معانٍ:" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "2" msgstr "2" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Item" msgstr "Item" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This indicates that the I and I have been set and the session can " "continue on those parameters. Additionally it indicates that the session " "ticket is in a renewal period and should be replaced. The OpenSSL library " "will call I again with an enc argument of 1 to set the new ticket (see " "RFC5077 3.3 paragraph 2)." msgstr "" "يشير هذا إلى أنه تم تعيين I و I ويمكن للجلسة الاستمرار على تلك " "المعاملات. بالإضافة إلى ذلك، يشير إلى أن تذكرة الجلسة في فترة تجديد ويجب " "استبدالها. ستستدعي مكتبة OpenSSL I مرة أخرى مع وسيطة enc بقيمة 1 لتعيين " "التذكرة الجديدة (انظر RFC5077 3.3 الفقرة 2)." #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "1" msgstr "1" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This indicates that the I and I have been set and the session can " "continue on those parameters." msgstr "" "يشير هذا إلى أنه تم تعيين I و I ويمكن للجلسة الاستمرار على تلك " "المعاملات." #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "0" msgstr "0" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This indicates that it was not possible to set/retrieve a session ticket and " "the SSL/TLS session will continue by negotiating a set of cryptographic " "parameters or using the alternate SSL/TLS resumption mechanism, session ids." msgstr "" "يشير هذا إلى أنه لم يكن من الممكن تعيين/استرجاع تذكرة جلسة وستستمر جلسة SSL/" "TLS عن طريق التفاوض على مجموعة من المعاملات التعمية أو باستخدام آلية استئناف " "SSL/TLS البديلة، معرفات الجلسة." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If called with enc equal to 0 the library will call the I again to get a " "new set of parameters." msgstr "" "إذا استُدعيت مع enc مساوية لـ 0، ستستدعي المكتبة I مرة أخرى للحصول على " "مجموعة جديدة من المعاملات." #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "less than 0" msgstr "أقل من 0" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "This indicates an error." msgstr "يشير هذا إلى خطأ." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B function is identical to " "\\&B except that it takes a " "deprecated HMAC_CTX pointer instead of an EVP_MAC_CTX one. Before this " "callback function is started I will have been initialised with " "B\\|(3) and the digest set with " "\\&B\\|(3). The I key material can be set " "using B\\|(3)." msgstr "" "الدالة B مطابقة لـ " "\\&B باستثناء أنها تأخذ مؤشر " "HMAC_CTX مهمل بدلاً من مؤشر EVP_MAC_CTX. قبل بدء دالة الاستدعاء هذه، ستكون " "I قد هُيئت باستخدام B\\|(3) وضُبط الملخص باستخدام " "\\&B\\|(3). يمكن ضبط مادة مفتاح I باستخدام " "B\\|(3)." #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "NOTES" msgstr "ملاحظات" #. type: Plain text #: archlinux msgid "" "Session resumption shortcuts the TLS handshake so that the client " "certificate negotiation doesn\\*(Aqt occur. It makes up for this by storing " "the client certificate and all other negotiated state information encrypted " "within the ticket. In a resumed session the applications will have all this " "state information available exactly as if a full negotiation had occurred." msgstr "" "استئناف الجلسة يختصر المصافحة TLS بحيث لا يحدث تفاوض شهادة العميل. يعوض هذا " "بتخزين شهادة العميل وجميع معلومات الحالة المتفاوض عليها الأخرى معمّاة داخل " "التذكرة. في جلسة مستأنفة، ستتوفر للتطبيقات جميع معلومات الحالة هذه تمامًا كما " "لو حدث تفاوض كامل." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If an attacker can obtain the key used to encrypt a session ticket, they can " "obtain the master secret for any ticket using that key and decrypt any " "traffic using that session: even if the cipher suite supports forward " "secrecy. As a result applications may wish to use multiple keys and avoid " "using long term keys stored in files." msgstr "" "إذا تمكن مهاجم من الحصول على المفتاح المستخدم لتعمية تذكرة جلسة، يمكنه " "الحصول على السر الرئيسي لأي تذكرة باستخدام ذلك المفتاح وفك تعمية أي حركة " "مرور باستخدام تلك الجلسة: حتى لو كانت مجموعة المُعمِّي تدعم السرية الأمامية. " "نتيجة لذلك، قد ترغب التطبيقات في استخدام مفاتيح متعددة وتجنب استخدام مفاتيح " "طويلة الأجل مخزنة في ملفات." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Applications can use longer keys to maintain a consistent level of " "security. For example if a cipher suite uses 256 bit ciphers but only a 128 " "bit ticket key the overall security is only 128 bits because breaking the " "ticket key will enable an attacker to obtain the session keys." msgstr "" "يمكن للتطبيقات استخدام مفاتيح أطول للحفاظ على مستوى ثابت من الأمان. على سبيل " "المثال، إذا استخدمت مجموعة المُعمِّي مُعمِّيات 256 بت ولكن فقط مفتاح تذكرة 128 بت، " "فإن الأمان الكلي هو 128 بت فقط لأن كسر مفتاح التذكرة سيمكن المهاجم من الحصول " "على مفاتيح الجلسة." #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RETURN VALUES" msgstr "القيم المُرجعة" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Returns 1 to indicate the callback function was set and 0 otherwise." msgstr "تُرجع 1 للإشارة إلى أن دالة الاستدعاء ضُبطت و0 خلاف ذلك." #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EXAMPLES" msgstr "أمثلة" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Reference Implementation:" msgstr "التنفيذ المرجعي:" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& SSL_CTX_set_tlsext_ticket_key_evp_cb(SSL, ssl_tlsext_ticket_key_cb);\n" "\\& ...\n" "\\&\n" "\\& static int ssl_tlsext_ticket_key_cb(SSL *s, unsigned char key_name[16],\n" "\\& unsigned char *iv, EVP_CIPHER_CTX *ctx,\n" "\\& EVP_MAC_CTX *hctx, int enc)\n" "\\& {\n" "\\& OSSL_PARAM params[3];\n" "\\& your_type_t *key; /* something that you need to implement */\n" "\\&\n" "\\& if (enc) { /* create new session */\n" "\\& if (RAND_bytes(iv, EVP_MAX_IV_LENGTH) E= 0)\n" "\\& return -1; /* insufficient random */\n" "\\&\n" "\\& key = currentkey(); /* something that you need to implement */\n" "\\& if (key == NULL) {\n" "\\& /* current key doesn\\*(Aqt exist or isn\\*(Aqt valid */\n" "\\& key = createkey(); /*\n" "\\& * Something that you need to implement.\n" "\\& * createkey needs to initialise a name,\n" "\\& * an aes_key, a hmac_key and optionally\n" "\\& * an expire time.\n" "\\& */\n" "\\& if (key == NULL) /* key couldn\\*(Aqt be created */\n" "\\& return 0;\n" "\\& }\n" "\\& memcpy(key_name, key-Ename, 16);\n" "\\&\n" "\\& if (EVP_EncryptInit_ex(&ctx, EVP_aes_256_cbc(), NULL, key-Eaes_key,\n" "\\& iv) == 0)\n" "\\& return -1; /* error in cipher initialisation */\n" "\\&\n" "\\& params[0] = OSSL_PARAM_construct_octet_string(OSSL_MAC_PARAM_KEY,\n" "\\& key-Ehmac_key, 32);\n" "\\& params[1] = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_DIGEST,\n" "\\& \"sha256\", 0);\n" "\\& params[2] = OSSL_PARAM_construct_end();\n" "\\& if (EVP_MAC_CTX_set_params(hctx, params) == 0)\n" "\\& return -1; /* error in mac initialisation */\n" "\\&\n" "\\& return 1;\n" "\\&\n" "\\& } else { /* retrieve session */\n" "\\& time_t t = time(NULL);\n" "\\& key = findkey(key_name); /* something that you need to implement */\n" "\\&\n" "\\& if (key == NULL || key-Eexpire E t)\n" "\\& return 0;\n" "\\&\n" "\\& params[0] = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_KEY,\n" "\\& key-Ehmac_key, 32);\n" "\\& params[1] = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_DIGEST,\n" "\\& \"sha256\", 0);\n" "\\& params[2] = OSSL_PARAM_construct_end();\n" "\\& if (EVP_MAC_CTX_set_params(hctx, params) == 0)\n" "\\& return -1; /* error in mac initialisation */\n" "\\&\n" "\\& if (EVP_DecryptInit_ex(&ctx, EVP_aes_256_cbc(), NULL, key-Eaes_key,\n" "\\& iv) == 0)\n" "\\& return -1; /* error in cipher initialisation */\n" "\\&\n" "\\& if (key-Eexpire E t - RENEW_TIME) { /* RENEW_TIME: implement */\n" "\\& /*\n" "\\& * return 2 - This session will get a new ticket even though the\n" "\\& * current one is still valid.\n" "\\& */\n" "\\& return 2;\n" "\\& }\n" "\\& return 1;\n" "\\& }\n" "\\& }\n" msgstr "" "\\& SSL_CTX_set_tlsext_ticket_key_evp_cb(SSL, ssl_tlsext_ticket_key_cb);\n" "\\& ...\n" "\\&\n" "\\& static int ssl_tlsext_ticket_key_cb(SSL *s, unsigned char key_name[16],\n" "\\& unsigned char *iv, EVP_CIPHER_CTX *ctx,\n" "\\& EVP_MAC_CTX *hctx, int enc)\n" "\\& {\n" "\\& OSSL_PARAM params[3];\n" "\\& your_type_t *key; /* something that you need to implement */\n" "\\&\n" "\\& if (enc) { /* create new session */\n" "\\& if (RAND_bytes(iv, EVP_MAX_IV_LENGTH) E= 0)\n" "\\& return -1; /* insufficient random */\n" "\\&\n" "\\& key = currentkey(); /* something that you need to implement */\n" "\\& if (key == NULL) {\n" "\\& /* current key doesn\\*(Aqt exist or isn\\*(Aqt valid */\n" "\\& key = createkey(); /*\n" "\\& * Something that you need to implement.\n" "\\& * createkey needs to initialise a name,\n" "\\& * an aes_key, a hmac_key and optionally\n" "\\& * an expire time.\n" "\\& */\n" "\\& if (key == NULL) /* key couldn\\*(Aqt be created */\n" "\\& return 0;\n" "\\& }\n" "\\& memcpy(key_name, key-Ename, 16);\n" "\\&\n" "\\& if (EVP_EncryptInit_ex(&ctx, EVP_aes_256_cbc(), NULL, key-Eaes_key,\n" "\\& iv) == 0)\n" "\\& return -1; /* error in cipher initialisation */\n" "\\&\n" "\\& params[0] = OSSL_PARAM_construct_octet_string(OSSL_MAC_PARAM_KEY,\n" "\\& key-Ehmac_key, 32);\n" "\\& params[1] = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_DIGEST,\n" "\\& \"sha256\", 0);\n" "\\& params[2] = OSSL_PARAM_construct_end();\n" "\\& if (EVP_MAC_CTX_set_params(hctx, params) == 0)\n" "\\& return -1; /* error in mac initialisation */\n" "\\&\n" "\\& return 1;\n" "\\&\n" "\\& } else { /* retrieve session */\n" "\\& time_t t = time(NULL);\n" "\\& key = findkey(key_name); /* something that you need to implement */\n" "\\&\n" "\\& if (key == NULL || key-Eexpire E t)\n" "\\& return 0;\n" "\\&\n" "\\& params[0] = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_KEY,\n" "\\& key-Ehmac_key, 32);\n" "\\& params[1] = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_DIGEST,\n" "\\& \"sha256\", 0);\n" "\\& params[2] = OSSL_PARAM_construct_end();\n" "\\& if (EVP_MAC_CTX_set_params(hctx, params) == 0)\n" "\\& return -1; /* error in mac initialisation */\n" "\\&\n" "\\& if (EVP_DecryptInit_ex(&ctx, EVP_aes_256_cbc(), NULL, key-Eaes_key,\n" "\\& iv) == 0)\n" "\\& return -1; /* error in cipher initialisation */\n" "\\&\n" "\\& if (key-Eexpire E t - RENEW_TIME) { /* RENEW_TIME: implement */\n" "\\& /*\n" "\\& * return 2 - This session will get a new ticket even though the\n" "\\& * current one is still valid.\n" "\\& */\n" "\\& return 2;\n" "\\& }\n" "\\& return 1;\n" "\\& }\n" "\\& }\n" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SEE ALSO" msgstr "انظر أيضًا" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B\\|(7), B\\|(3), \\&B\\|(3), " "\\&B\\|(3), \\&B\\|(3), " "\\&B\\|(3), \\&B\\|" "(3)," msgstr "" "\\&B\\|(7), B\\|(3), \\&B\\|(3), " "\\&B\\|(3), \\&B\\|(3), " "\\&B\\|(3), \\&B\\|" "(3)," #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "HISTORY" msgstr "التاريخ" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B function was deprecated in OpenSSL " "3.0." msgstr "الدالة B أُهملت في OpenSSL 3.0." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B function was introduced in " "OpenSSL 3.0." msgstr "الدالة B قُدمت في OpenSSL 3.0." #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "COPYRIGHT" msgstr "حقوق النسخ" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Copyright 2014-2024 The OpenSSL Project Authors. All Rights Reserved." msgstr "حقوق النشر 2014-2024 لمؤلفي مشروع OpenSSL. جميع الحقوق محفوظة." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Licensed under the Apache License 2.0 (the \"License\"). You may not use " "this file except in compliance with the License. You can obtain a copy in " "the file LICENSE in the source distribution or at Ehttps://www.openssl." "org/source/license.htmlE." msgstr "" "مرخص بموجب رخصة Apache 2.0 (المشار إليها فيما يلي بـ ”الرخصة“). لا يجوز لك " "استخدام هذا الملف إلا وفقًا لشروط الرخصة. يمكنك الحصول على نسخة منها في " "الملف LICENSE الموجود في حزمة التوزيع المصدرية أو على الرابط Ehttps://" "www.openssl.org/source/license.htmlE." #. ======================================================================== #. type: IX #: debian-trixie debian-unstable #, no-wrap msgid "SSL_CTX_SET_TLSEXT_TICKET_KEY_CB 3SSL" msgstr "SSL_CTX_SET_TLSEXT_TICKET_KEY_CB 3SSL" #. type: TH #: debian-trixie #, no-wrap msgid "3.5.6" msgstr "3.5.6" #. type: Plain text #: debian-trixie debian-unstable msgid "" "For new sessions tickets, when the client doesn't present a session ticket, " "or an attempted retrieval of the ticket failed, or a renew option was " "indicated, the callback function will be called with I equal to 1. The " "OpenSSL library expects that the function will set an arbitrary I, " "initialize \\&I, and set the cipher context I and the hash context " "I." msgstr "" "لتذاكر الجلسات الجديدة، عندما لا يقدم العميل تذكرة جلسة، أو فشلت محاولة " "استرجاع التذكرة، أو أُشير إلى خيار التجديد، ستُستدعى دالة الاستدعاء مع I " "مساوية لـ 1. تتوقع مكتبة OpenSSL أن الدالة ستضبط I عشوائياً، وتهيئ " "\\&I، وتضبط سياق المُعمِّي I وسياق التجزئة I." #. type: Plain text #: debian-trixie debian-unstable msgid "" "Session resumption shortcuts the TLS handshake so that the client " "certificate negotiation doesn't occur. It makes up for this by storing the " "client certificate and all other negotiated state information encrypted " "within the ticket. In a resumed session the applications will have all this " "state information available exactly as if a full negotiation had occurred." msgstr "" "استئناف الجلسة يختصر المصافحة TLS بحيث لا يحدث تفاوض شهادة العميل. يعوض هذا " "بتخزين شهادة العميل وجميع معلومات الحالة المتفاوض عليها الأخرى معمّاة داخل " "التذكرة. في جلسة مستأنفة، ستتوفر للتطبيقات جميع معلومات الحالة هذه تمامًا كما " "لو حدث تفاوض كامل."