# 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_s_bio.3ssl.pot (PACKAGE VERSION) #-#-#-#-# # #. #-#-#-#-# archlinux: BIO_s_bio.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# debian-trixie: BIO_s_bio.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# debian-unstable: BIO_s_bio.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_S_BIO 3ssl" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "BIO_S_BIO" 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_s_bio, BIO_make_bio_pair, BIO_destroy_bio_pair, BIO_shutdown_wr, " "BIO_set_write_buf_size, BIO_get_write_buf_size, BIO_new_bio_pair, " "BIO_get_write_guarantee, BIO_ctrl_get_write_guarantee, BIO_get_read_request, " "BIO_ctrl_get_read_request, BIO_ctrl_reset_read_request - BIO pair 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" "\\&\n" "\\& const BIO_METHOD *BIO_s_bio(void);\n" "\\&\n" "\\& int BIO_make_bio_pair(BIO *b1, BIO *b2);\n" "\\& int BIO_destroy_bio_pair(BIO *b);\n" "\\& int BIO_shutdown_wr(BIO *b);\n" "\\&\n" "\\& int BIO_set_write_buf_size(BIO *b, long size);\n" "\\& size_t BIO_get_write_buf_size(BIO *b, long size);\n" "\\&\n" "\\& int BIO_new_bio_pair(BIO **bio1, size_t writebuf1, BIO **bio2, size_t writebuf2);\n" "\\&\n" "\\& int BIO_get_write_guarantee(BIO *b);\n" "\\& size_t BIO_ctrl_get_write_guarantee(BIO *b);\n" "\\& int BIO_get_read_request(BIO *b);\n" "\\& size_t BIO_ctrl_get_read_request(BIO *b);\n" "\\& int BIO_ctrl_reset_read_request(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 method for a BIO pair. A BIO pair is a pair of " "source/sink BIOs where data written to either half of the pair is buffered " "and can be read from the other half. Both halves must usually by handled by " "the same application thread since no locking is done on the internal data " "structures." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Since BIO chains typically end in a source/sink BIO it is possible to make " "this one half of a BIO pair and have all the data processed by the chain " "under application control." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "One typical use of BIO pairs is to place TLS/SSL I/O under application " "control, this can be used when the application wishes to use a non standard " "transport for TLS/SSL or the normal socket routines are inappropriate." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Calls to B will read data from the buffer or request a retry " "if no data is available." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Calls to B will place data in the buffer or request a retry " "if the buffer is full." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The standard calls B and B can be " "used to determine the amount of pending data in the read or write buffer." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B clears any data in the write buffer." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B joins two separate BIOs into a connected pair." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B destroys the association between two connected " "BIOs. Freeing up any half of the pair will automatically destroy the " "association." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B is used to close down a BIO B. After this call no " "further writes on BIO B are allowed (they will return an error). Reads on " "the other half of the pair will return any pending data or EOF when all " "pending data has been read." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B sets the write buffer size of BIO B to " "B. If the size is not initialized a default value is used. This is " "currently 17K, sufficient for a maximum size TLS record." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B returns the size of the write buffer." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B combines the calls to B, " "B and \\&B to create a " "connected pair of BIOs B, B with write buffer sizes B " "and B. If either size is zero then the default size is used. " "B does not check whether \\&B or B do point " "to some other BIO, the values are overwritten, \\&B is not " "called." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B return " "the maximum length of data that can be currently written to the BIO. Writes " "larger than this value will return a value from B less than " "the amount requested or if the buffer is full request a retry. " "B is a function whereas " "B is a macro." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B return the " "amount of data requested, or the buffer size if it is less, if the last read " "attempt at the other half of the BIO pair failed due to an empty buffer. " "This can be used to determine how much data should be written to the BIO so " "the next read will succeed: this is most useful in TLS/SSL applications " "where the amount of data read is usually meaningful rather than just a " "buffer size. After a successful read this call will return zero. It also " "will return zero once new data has been written satisfying the read request " "or part of it. Note that B never returns an amount " "larger than that returned by B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B can also be used to reset the value " "returned by \\&B to zero." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Both halves of a BIO pair should be freed. That is even if one half is " "implicit freed due to a B or B call the other " "half needs to be freed." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used in bidirectional applications (such as TLS/SSL) care should be " "taken to flush any data in the write buffer. This can be done by calling " "B on the other half of the pair and, if any data is pending, " "reading it and sending it to the underlying transport. This must be done " "before any normal processing (such as calling B ) due to a request " "and B being true." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "To see why this is important consider a case where a request is sent using " "\\&B and a response read with B, this can " "occur during an TLS/SSL handshake for example. B will " "succeed and place data in the write buffer. B will initially " "fail and B will be true. If the application then waits " "for data to be available on the underlying transport before flushing the " "write buffer it will never succeed because the request was never sent!" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B is true if no data is in the peer BIO and the peer BIO has " "been shutdown." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, B, B, " "\\&B, B, " "\\&B, and B are " "implemented as macros." 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 1 on success, with the new BIOs available " "in \\&B and B, or 0 on failure, with NULL pointers stored into " "the locations for B and B. Check the error stack for more " "information." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "[XXXXX: More return values need to be added here]" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EXAMPLES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The BIO pair can be used to have full control over the network access of an " "application. The application can call B on the socket as required " "without having to go through the SSL-interface." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& BIO *internal_bio, *network_bio;\n" "\\&\n" "\\& ...\n" "\\& BIO_new_bio_pair(&internal_bio, 0, &network_bio, 0);\n" "\\& SSL_set_bio(ssl, internal_bio, internal_bio);\n" "\\& SSL_operations(); /* e.g. SSL_read and SSL_write */\n" "\\& ...\n" "\\&\n" "\\& application | TLS-engine\n" "\\& | |\n" "\\& +----------E SSL_operations()\n" "\\& | /\\e ||\n" "\\& | || \\e/\n" "\\& | BIO-pair (internal_bio)\n" "\\& | BIO-pair (network_bio)\n" "\\& | || /\\e\n" "\\& | \\e/ ||\n" "\\& +-----------E BIO_operations()\n" "\\& | |\n" "\\& | |\n" "\\& socket\n" "\\&\n" "\\& ...\n" "\\& SSL_free(ssl); /* implicitly frees internal_bio */\n" "\\& BIO_free(network_bio);\n" "\\& ...\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "As the BIO pair will only buffer the data and never directly access the " "connection, it behaves nonblocking and will return as soon as the write " "buffer is full or the read buffer is drained. Then the application has to " "flush the write buffer and/or fill the read buffer." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Use the B, to find out whether data is buffered in the " "BIO and must be transferred to the network. Use " "B to find out, how many bytes must be written " "into the buffer before the \\&B can successfully be " "continued." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "WARNINGS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "As the data is buffered, B may return with an " "ERROR_SSL_WANT_READ condition, but there is still data in the write buffer. " "An application must not rely on the error value of B but " "must assure that the write buffer is always flushed first. Otherwise a " "deadlock may occur as the peer might be waiting for the data before being " "able to continue." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B\\|(3), B\\|(7), B\\|(7), " "\\&B\\|(3), B\\|(3)" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "COPYRIGHT" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Copyright 2000-2020 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_S_BIO 3SSL" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "3.5.6" msgstr ""