# 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:19+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: BIO_f_ssl.3ssl.pot (PACKAGE VERSION) #-#-#-#-# # #. #-#-#-#-# archlinux: BIO_f_ssl.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# debian-trixie: BIO_f_ssl.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# debian-unstable: BIO_f_ssl.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 "BIO_F_SSL 3ssl" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "BIO_F_SSL" 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 "" "BIO_do_handshake, BIO_f_ssl, BIO_set_ssl, BIO_get_ssl, BIO_set_ssl_mode, " "BIO_set_ssl_renegotiate_bytes, BIO_get_num_renegotiates, " "BIO_set_ssl_renegotiate_timeout, BIO_new_ssl, BIO_new_ssl_connect, " "BIO_new_buffer_ssl_connect, BIO_ssl_copy_session_id, BIO_ssl_shutdown - SSL " "BIO" 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/bio.hE\n" "\\& #include Eopenssl/ssl.hE\n" "\\&\n" "\\& const BIO_METHOD *BIO_f_ssl(void);\n" "\\&\n" "\\& long BIO_set_ssl(BIO *b, SSL *ssl, long c);\n" "\\& long BIO_get_ssl(BIO *b, SSL **sslp);\n" "\\& long BIO_set_ssl_mode(BIO *b, long client);\n" "\\& long BIO_set_ssl_renegotiate_bytes(BIO *b, long num);\n" "\\& long BIO_set_ssl_renegotiate_timeout(BIO *b, long seconds);\n" "\\& long BIO_get_num_renegotiates(BIO *b);\n" "\\&\n" "\\& BIO *BIO_new_ssl(SSL_CTX *ctx, int client);\n" "\\& BIO *BIO_new_ssl_connect(SSL_CTX *ctx);\n" "\\& BIO *BIO_new_buffer_ssl_connect(SSL_CTX *ctx);\n" "\\& int BIO_ssl_copy_session_id(BIO *to, BIO *from);\n" "\\& void BIO_ssl_shutdown(BIO *bio);\n" "\\&\n" "\\& long BIO_do_handshake(BIO *b);\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B returns the SSL BIO method. This is a filter BIO which is " "a wrapper round the OpenSSL SSL routines adding a BIO \"flavour\" to SSL I/O." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "I/O performed on an SSL BIO communicates using the SSL protocol with the " "SSLs read and write BIOs. If an SSL connection is not established then an " "attempt is made to establish one on the first I/O call." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If a BIO is appended to an SSL BIO using B it is automatically " "used as the SSL BIOs read and write BIOs." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Calling B on an SSL BIO closes down any current SSL connection " "by calling B. B is then sent to the next BIO in " "the chain: this will typically disconnect the underlying transport. The SSL " "BIO is then reset to the initial accept or connect state." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If the close flag is set when an SSL BIO is freed then the internal SSL " "structure is also freed using B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B sets the internal SSL pointer of SSL BIO B to B " "using the close flag B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B retrieves the SSL pointer of SSL BIO B, it can then " "be manipulated using the standard SSL library functions." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B sets the SSL BIO mode to B. If B is " "1 client mode is set. If B is 0 server mode is set." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B sets the renegotiate byte count of SSL " "BIO B to B. When set after every B bytes of I/O (read and " "write) the SSL session is automatically renegotiated. B must be at " "least 512 bytes." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B sets the renegotiate timeout of SSL " "BIO B to B. When the renegotiate timeout elapses the session is " "automatically renegotiated." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B returns the total number of session " "renegotiations due to I/O or timeout of SSL BIO B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B allocates an SSL BIO using SSL_CTX B and using " "client mode if B is non zero." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B creates a new BIO chain consisting of an SSL BIO " "(using B) followed by a connect BIO." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B creates a new BIO chain consisting of a " "buffering BIO, an SSL BIO (using B), and a connect BIO." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B copies an SSL session id between BIO chains " "B and B. It does this by locating the SSL BIOs in each chain and " "calling B on the internal SSL pointer." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B closes down an SSL connection on BIO chain B. " "It does this by locating the SSL BIO in the chain and calling " "B on its internal SSL pointer." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B attempts to complete an SSL handshake on the " "supplied BIO and establish the SSL connection. For non-SSL BIOs the " "connection is done typically at TCP level. If domain name resolution yields " "multiple IP addresses all of them are tried after B failures. " "The function returns 1 if the connection was established successfully. A " "zero or negative value is returned if the connection could not be " "established. The call B should be used for nonblocking " "connect BIOs to determine if the call should be retried. If a connection " "has already been established this call has no effect." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "SSL BIOs are exceptional in that if the underlying transport is non blocking " "they can still request a retry in exceptional circumstances. Specifically " "this will happen if a session renegotiation takes place during a " "B operation, one case where this happens is when step up " "occurs." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The SSL flag SSL_AUTO_RETRY can be set to disable this behaviour. That is " "when this flag is set an SSL BIO using a blocking transport will never " "request a retry." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Since unknown B operations are sent through filter BIOs the " "servers name and port can be set using B on the BIO returned " "by B without having to locate the connect BIO first." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Applications do not have to call B but may wish to do so " "to separate the handshake process from other I/O processing." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, B, B, " "\\&B, B, " "\\&B, and B are implemented " "as macros." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B is not currently supported on QUIC SSL " "objects and fails if called on such an object." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RETURN VALUES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B returns the SSL B structure." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, B, B, " "B, \\&B " "and B return 1 on success or a value which is " "less than or equal to 0 if an error occurred." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, B and " "B return a valid B structure on success " "or B if an error occurred." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B returns 1 on success or 0 on error, or if " "called on a QUIC SSL object." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B returns 1 if the connection was established " "successfully. A zero or negative value is returned if the connection could " "not be established." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EXAMPLES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This SSL/TLS client example attempts to retrieve a page from an SSL/TLS web " "server. The I/O routines are identical to those of the unencrypted example " "in B\\|(3)." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& BIO *sbio, *out;\n" "\\& int len;\n" "\\& char tmpbuf[1024];\n" "\\& SSL_CTX *ctx;\n" "\\& SSL *ssl;\n" "\\&\n" "\\& /* XXX Seed the PRNG if needed. */\n" "\\&\n" "\\& ctx = SSL_CTX_new(TLS_client_method());\n" "\\&\n" "\\& /* XXX Set verify paths and mode here. */\n" "\\&\n" "\\& sbio = BIO_new_ssl_connect(ctx);\n" "\\& BIO_get_ssl(sbio, &ssl);\n" "\\& if (ssl == NULL) {\n" "\\& fprintf(stderr, \"Can\\*(Aqt locate SSL pointer\\en\");\n" "\\& ERR_print_errors_fp(stderr);\n" "\\& exit(1);\n" "\\& }\n" "\\&\n" "\\& /* XXX We might want to do other things with ssl here */\n" "\\&\n" "\\& /* An empty host part means the loopback address */\n" "\\& BIO_set_conn_hostname(sbio, \":https\");\n" "\\&\n" "\\& out = BIO_new_fp(stdout, BIO_NOCLOSE);\n" "\\& if (BIO_do_connect(sbio) E= 0) {\n" "\\& fprintf(stderr, \"Error connecting to server\\en\");\n" "\\& ERR_print_errors_fp(stderr);\n" "\\& exit(1);\n" "\\& }\n" "\\&\n" "\\& /* XXX Could examine ssl here to get connection info */\n" "\\&\n" "\\& BIO_puts(sbio, \"GET / HTTP/1.0\\en\\en\");\n" "\\& for (;;) {\n" "\\& len = BIO_read(sbio, tmpbuf, 1024);\n" "\\& if (len E= 0)\n" "\\& break;\n" "\\& BIO_write(out, tmpbuf, len);\n" "\\& }\n" "\\& BIO_free_all(sbio);\n" "\\& BIO_free(out);\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Here is a simple server example. It makes use of a buffering BIO to allow " "lines to be read from the SSL BIO using BIO_gets. It creates a pseudo web " "page containing the actual request from a client and also echoes the request " "to standard output." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& BIO *sbio, *bbio, *acpt, *out;\n" "\\& int len;\n" "\\& char tmpbuf[1024];\n" "\\& SSL_CTX *ctx;\n" "\\& SSL *ssl;\n" "\\&\n" "\\& /* XXX Seed the PRNG if needed. */\n" "\\&\n" "\\& ctx = SSL_CTX_new(TLS_server_method());\n" "\\& if (!SSL_CTX_use_certificate_file(ctx, \"server.pem\", SSL_FILETYPE_PEM)\n" "\\& || !SSL_CTX_use_PrivateKey_file(ctx, \"server.pem\", SSL_FILETYPE_PEM)\n" "\\& || !SSL_CTX_check_private_key(ctx)) {\n" "\\& fprintf(stderr, \"Error setting up SSL_CTX\\en\");\n" "\\& ERR_print_errors_fp(stderr);\n" "\\& exit(1);\n" "\\& }\n" "\\&\n" "\\& /* XXX Other things like set verify locations, EDH temp callbacks. */\n" "\\&\n" "\\& /* New SSL BIO setup as server */\n" "\\& sbio = BIO_new_ssl(ctx, 0);\n" "\\& BIO_get_ssl(sbio, &ssl);\n" "\\& if (ssl == NULL) {\n" "\\& fprintf(stderr, \"Can\\*(Aqt locate SSL pointer\\en\");\n" "\\& ERR_print_errors_fp(stderr);\n" "\\& exit(1);\n" "\\& }\n" "\\&\n" "\\& bbio = BIO_new(BIO_f_buffer());\n" "\\& sbio = BIO_push(bbio, sbio);\n" "\\& acpt = BIO_new_accept(\"4433\");\n" "\\&\n" "\\& /*\n" "\\& * By doing this when a new connection is established\n" "\\& * we automatically have sbio inserted into it. The\n" "\\& * BIO chain is now \\*(Aqswallowed\\*(Aq by the accept BIO and\n" "\\& * will be freed when the accept BIO is freed.\n" "\\& */\n" "\\& BIO_set_accept_bios(acpt, sbio);\n" "\\& out = BIO_new_fp(stdout, BIO_NOCLOSE);\n" "\\&\n" "\\& /* First call to BIO_do_accept() sets up accept BIO */\n" "\\& if (BIO_do_accept(acpt) E= 0) {\n" "\\& fprintf(stderr, \"Error setting up accept BIO\\en\");\n" "\\& ERR_print_errors_fp(stderr);\n" "\\& exit(1);\n" "\\& }\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "/* Second call to B waits for incoming connection */\n" " if (BIO_do_accept(acpt) E= 0) {\n" " fprintf(stderr, \"Error accepting connection\\en\");\n" " ERR_print_errors_fp(stderr);\n" " B\\|(1);\n" " }\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& /* We only want one connection so remove and free accept BIO */\n" "\\& sbio = BIO_pop(acpt);\n" "\\& BIO_free_all(acpt);\n" "\\&\n" "\\& if (BIO_do_handshake(sbio) E= 0) {\n" "\\& fprintf(stderr, \"Error in SSL handshake\\en\");\n" "\\& ERR_print_errors_fp(stderr);\n" "\\& exit(1);\n" "\\& }\n" "\\&\n" "\\& BIO_puts(sbio, \"HTTP/1.0 200 OK\\er\\enContent-type: text/plain\\er\\en\\er\\en\");\n" "\\& BIO_puts(sbio, \"\\er\\enConnection Established\\er\\enRequest headers:\\er\\en\");\n" "\\& BIO_puts(sbio, \"--------------------------------------------------\\er\\en\");\n" "\\&\n" "\\& for (;;) {\n" "\\& len = BIO_gets(sbio, tmpbuf, 1024);\n" "\\& if (len E= 0)\n" "\\& break;\n" "\\& BIO_write(sbio, tmpbuf, len);\n" "\\& BIO_write(out, tmpbuf, len);\n" "\\& /* Look for blank line signifying end of headers*/\n" "\\& if (tmpbuf[0] == \\*(Aq\\er\\*(Aq || tmpbuf[0] == \\*(Aq\\en\\*(Aq)\n" "\\& break;\n" "\\& }\n" "\\&\n" "\\& BIO_puts(sbio, \"--------------------------------------------------\\er\\en\");\n" "\\& BIO_puts(sbio, \"\\er\\en\");\n" "\\& BIO_flush(sbio);\n" "\\& BIO_free_all(sbio);\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "HISTORY" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "In OpenSSL before 1.0.0 the B call was handled incorrectly, the I/" "O BIO reference count was incorrectly incremented (instead of decremented) " "and dissociated with the SSL BIO even if the SSL BIO was not explicitly " "being popped (e.g. a pop higher up the chain). Applications which included " "workarounds for this bug (e.g. freeing BIOs more than once) should be " "modified to handle this fix or they may free up an already freed BIO." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "COPYRIGHT" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Copyright 2000-2023 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 "BIO_F_SSL 3SSL" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "3.5.6" msgstr ""