# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2026-06-05 06:44+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\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 "" # #. 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 "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SSL_CTX_SET_TLSEXT_TICKET_KEY_CB" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "2026-04-07" msgstr "" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "3.6.2" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "OpenSSL" msgstr "" #. 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 "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Header" msgstr "" #. 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 "" #. 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 "" #. 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 "" #. 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 "" #. 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 "" #. 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 "" #. 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 "" #. 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 "" #. 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 "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "The I is 16 characters long and is used as a key identifier." msgstr "" #. 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 "" #. 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 "" #. 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 "" #. 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 "" #. 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 "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "2" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Item" msgstr "" #. 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 "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "1" msgstr "" #. 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 "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "0" msgstr "" #. 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 "" #. 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 "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "less than 0" msgstr "" #. 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 "" #. 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 "" #. 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 "" #. 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 "" #. 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 "" #. 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 "" #. 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 "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B function was introduced in " "OpenSSL 3.0." msgstr "" #. 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 "" #. 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 "" #. ======================================================================== #. type: IX #: debian-trixie debian-unstable #, no-wrap msgid "SSL_CTX_SET_TLSEXT_TICKET_KEY_CB 3SSL" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "3.5.6" msgstr "" #. 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 "" #. 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 ""