# 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_read.3ssl.pot (PACKAGE VERSION) #-#-#-#-# # #. #-#-#-#-# archlinux: SSL_read.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# debian-trixie: SSL_read.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# debian-unstable: SSL_read.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_READ 3ssl" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SSL_READ" 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_read_ex, SSL_read, SSL_peek_ex, SSL_peek \\&- read bytes from a TLS/SSL " "connection" 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/ssl.hE\n" "\\&\n" "\\& int SSL_read_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);\n" "\\& int SSL_read(SSL *ssl, void *buf, int num);\n" "\\&\n" "\\& int SSL_peek_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);\n" "\\& int SSL_peek(SSL *ssl, void *buf, int num);\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B try to read B bytes from the " "specified B into the buffer B. On success B will " "store the number of bytes actually read in B<*readbytes>." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B are identical to B and " "B respectively except no bytes are actually removed from the " "underlying BIO during the read, so that a subsequent call to " "B or B will yield at least the same bytes." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "In the paragraphs below a \"read function\" is defined as one of " "B, \\&B, B or B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If necessary, a read function will negotiate a TLS/SSL session, if not " "already explicitly performed by B\\|(3) or B\\|(3). " "If the peer requests a re-negotiation, it will be performed transparently " "during the read function operation. The behaviour of the read functions " "depends on the underlying BIO." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For the transparent negotiation to succeed, the B must have been " "initialized to client or server mode. This is being done by calling " "\\&B\\|(3) or B before the " "first invocation of a read function." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The read functions work based on the SSL/TLS records. The data are received " "in records (with a maximum record size of 16kB). Only when a record has been " "completely received, can it be processed (decryption and check of " "integrity). Therefore, data that was not retrieved at the last read call " "can still be buffered inside the SSL layer and will be retrieved on the next " "read call. If B is higher than the number of bytes buffered then the " "read functions will return with the bytes buffered. If no more bytes are in " "the buffer, the read functions will trigger the processing of the next " "record. Only when the record has been received and processed completely " "will the read functions return reporting success. At most the contents of " "one record will be returned. As the size of an SSL/TLS record may exceed the " "maximum packet size of the underlying transport (e.g. TCP), it may be " "necessary to read several packets from the transport layer before the record " "is complete and the read call can succeed." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If B has been switched off and a non-application data " "record has been processed, the read function can return and set the error to " "\\&B. In this case there might still be unprocessed " "data available in the B. If read ahead was set using " "B\\|(3), there might also still be unprocessed data " "available in the B. This behaviour can be controlled using the " "B\\|(3) call." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If the underlying BIO is B, a read function will only return once " "the read operation has been finished or an error occurred, except when a non-" "application data record has been processed and B is not " "set. Note that if B is set and only non-application " "data is available the call will hang." msgstr "" #. type: Plain text #: archlinux msgid "" "If the underlying BIO is B, a read function will also return " "when the underlying BIO could not satisfy the needs of the function to " "continue the operation. In this case a call to B\\|(3) with " "the return value of the read function will yield B or " "\\&B. As at any time it\\*(Aqs possible that non-" "application data needs to be sent, a read function can also cause write " "operations. The calling process then must repeat the call after taking " "appropriate action to satisfy the needs of the read function. The action " "depends on the underlying BIO. When using a nonblocking socket, nothing is " "to be done, but B can be used to check for the required " "condition. When using a buffering BIO, like a BIO pair, data must be " "written into or retrieved out of the BIO before being able to continue." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B\\|(3) can be used to find out whether there are buffered " "bytes available for immediate retrieval. In this case the read function can " "be called without blocking or actually receiving new data from the " "underlying socket." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When used with a QUIC SSL object, calling an I/O function such as " "B allows internal network event processing to be performed. It " "is important that this processing is performed regularly. If an application " "is not using thread assisted mode, an application should ensure that an I/O " "function such as \\&B is called regularly, or alternatively " "ensure that B is called regularly. See B\\|(7) and B\\|(3) for more information." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RETURN VALUES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B will return 1 for success or 0 for " "failure. Success means that 1 or more application data bytes have been read " "from the SSL connection. Failure means that no bytes could be read from the " "SSL connection. Failures can be retryable (e.g. we are waiting for more " "bytes to be delivered by the network) or non-retryable (e.g. a fatal network " "error). In the event of a failure call B\\|(3) to find out " "the reason which indicates whether the call is retryable or not." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For B and B the following return values can occur:" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "E 0" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Item" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The read operation was successful. The return value is the number of bytes " "actually read from the TLS/SSL connection." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "E= 0" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The read operation was not successful, because either the connection was " "closed, an error occurred or action must be taken by the calling process. " "Call B\\|(3) with the return value B to find out the " "reason." msgstr "" #. type: Plain text #: archlinux msgid "" "Old documentation indicated a difference between 0 and -1, and that -1 was " "retryable. You should instead call B to find out if " "it\\*(Aqs retryable." 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\\|(3), \\&B\\|" "(3), B\\|(3), \\&B\\|(3), B\\|(3) " "\\&B\\|(3), \\&B\\|(3), " "\\&B\\|(3), B\\|(3), \\&B\\|(7), " "B\\|(7)" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "HISTORY" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B and B functions were added in OpenSSL " "1.1.1." 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 "SSL_READ 3SSL" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "3.5.6" msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "If the underlying BIO is B, a read function will also return " "when the underlying BIO could not satisfy the needs of the function to " "continue the operation. In this case a call to B\\|(3) with " "the return value of the read function will yield B or " "\\&B. As at any time it's possible that non-" "application data needs to be sent, a read function can also cause write " "operations. The calling process then must repeat the call after taking " "appropriate action to satisfy the needs of the read function. The action " "depends on the underlying BIO. When using a nonblocking socket, nothing is " "to be done, but B can be used to check for the required " "condition. When using a buffering BIO, like a BIO pair, data must be " "written into or retrieved out of the BIO before being able to continue." msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "Old documentation indicated a difference between 0 and -1, and that -1 was " "retryable. You should instead call B to find out if it's " "retryable." msgstr ""