| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:44+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
# #-#-#-#-# archlinux: SSL_read.3ssl.pot (PACKAGE VERSION) #-#-#-#-# |
| 20 |
# |
| 21 |
#. #-#-#-#-# archlinux: SSL_read.3ssl.pot (PACKAGE VERSION) #-#-#-#-# |
| 22 |
#. Required to disable full justification in groff 1.23.0. |
| 23 |
#. ======================================================================== |
| 24 |
#. type: IX |
| 25 |
#. #-#-#-#-# debian-trixie: SSL_read.3ssl.pot (PACKAGE VERSION) #-#-#-#-# |
| 26 |
#. ======================================================================== |
| 27 |
#. type: IX |
| 28 |
#. #-#-#-#-# debian-unstable: SSL_read.3ssl.pot (PACKAGE VERSION) #-#-#-#-# |
| 29 |
#. ======================================================================== |
| 30 |
#. type: IX |
| 31 |
#: archlinux debian-trixie debian-unstable |
| 32 |
#, no-wrap |
| 33 |
msgid "Title" |
| 34 |
msgstr "" |
| 35 |
|
| 36 |
# |
| 37 |
#. Required to disable full justification in groff 1.23.0. |
| 38 |
#. ======================================================================== |
| 39 |
#. type: IX |
| 40 |
#: archlinux |
| 41 |
#, no-wrap |
| 42 |
msgid "SSL_READ 3ssl" |
| 43 |
msgstr "" |
| 44 |
|
| 45 |
#. type: TH |
| 46 |
#: archlinux debian-trixie debian-unstable |
| 47 |
#, no-wrap |
| 48 |
msgid "SSL_READ" |
| 49 |
msgstr "" |
| 50 |
|
| 51 |
#. type: TH |
| 52 |
#: archlinux debian-trixie debian-unstable |
| 53 |
#, no-wrap |
| 54 |
msgid "2026-04-07" |
| 55 |
msgstr "" |
| 56 |
|
| 57 |
#. type: TH |
| 58 |
#: archlinux debian-unstable |
| 59 |
#, no-wrap |
| 60 |
msgid "3.6.2" |
| 61 |
msgstr "" |
| 62 |
|
| 63 |
#. type: TH |
| 64 |
#: archlinux debian-trixie debian-unstable |
| 65 |
#, no-wrap |
| 66 |
msgid "OpenSSL" |
| 67 |
msgstr "" |
| 68 |
|
| 69 |
#. type: SH |
| 70 |
#: archlinux debian-trixie debian-unstable |
| 71 |
#, no-wrap |
| 72 |
msgid "NAME" |
| 73 |
msgstr "" |
| 74 |
|
| 75 |
#. type: Plain text |
| 76 |
#: archlinux debian-trixie debian-unstable |
| 77 |
msgid "" |
| 78 |
"SSL_read_ex, SSL_read, SSL_peek_ex, SSL_peek \\&- read bytes from a TLS/SSL " |
| 79 |
"connection" |
| 80 |
msgstr "" |
| 81 |
|
| 82 |
#. type: IX |
| 83 |
#: archlinux debian-trixie debian-unstable |
| 84 |
#, no-wrap |
| 85 |
msgid "SYNOPSIS" |
| 86 |
msgstr "" |
| 87 |
|
| 88 |
#. type: IX |
| 89 |
#: archlinux debian-trixie debian-unstable |
| 90 |
#, no-wrap |
| 91 |
msgid "Header" |
| 92 |
msgstr "" |
| 93 |
|
| 94 |
#. type: Plain text |
| 95 |
#: archlinux debian-trixie debian-unstable |
| 96 |
#, no-wrap |
| 97 |
msgid "" |
| 98 |
"\\& #include E<lt>openssl/ssl.hE<gt>\n" |
| 99 |
"\\&\n" |
| 100 |
"\\& int SSL_read_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);\n" |
| 101 |
"\\& int SSL_read(SSL *ssl, void *buf, int num);\n" |
| 102 |
"\\&\n" |
| 103 |
"\\& int SSL_peek_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);\n" |
| 104 |
"\\& int SSL_peek(SSL *ssl, void *buf, int num);\n" |
| 105 |
msgstr "" |
| 106 |
|
| 107 |
#. type: IX |
| 108 |
#: archlinux debian-trixie debian-unstable |
| 109 |
#, no-wrap |
| 110 |
msgid "DESCRIPTION" |
| 111 |
msgstr "" |
| 112 |
|
| 113 |
#. type: Plain text |
| 114 |
#: archlinux debian-trixie debian-unstable |
| 115 |
msgid "" |
| 116 |
"\\&B<SSL_read_ex()> and B<SSL_read()> try to read B<num> bytes from the " |
| 117 |
"specified B<ssl> into the buffer B<buf>. On success B<SSL_read_ex()> will " |
| 118 |
"store the number of bytes actually read in B<*readbytes>." |
| 119 |
msgstr "" |
| 120 |
|
| 121 |
#. type: Plain text |
| 122 |
#: archlinux debian-trixie debian-unstable |
| 123 |
msgid "" |
| 124 |
"\\&B<SSL_peek_ex()> and B<SSL_peek()> are identical to B<SSL_read_ex()> and " |
| 125 |
"B<SSL_read()> respectively except no bytes are actually removed from the " |
| 126 |
"underlying BIO during the read, so that a subsequent call to " |
| 127 |
"B<SSL_read_ex()> or B<SSL_read()> will yield at least the same bytes." |
| 128 |
msgstr "" |
| 129 |
|
| 130 |
#. type: IX |
| 131 |
#: archlinux debian-trixie debian-unstable |
| 132 |
#, no-wrap |
| 133 |
msgid "NOTES" |
| 134 |
msgstr "" |
| 135 |
|
| 136 |
#. type: Plain text |
| 137 |
#: archlinux debian-trixie debian-unstable |
| 138 |
msgid "" |
| 139 |
"In the paragraphs below a \"read function\" is defined as one of " |
| 140 |
"B<SSL_read_ex()>, \\&B<SSL_read()>, B<SSL_peek_ex()> or B<SSL_peek()>." |
| 141 |
msgstr "" |
| 142 |
|
| 143 |
#. type: Plain text |
| 144 |
#: archlinux debian-trixie debian-unstable |
| 145 |
msgid "" |
| 146 |
"If necessary, a read function will negotiate a TLS/SSL session, if not " |
| 147 |
"already explicitly performed by B<SSL_connect>\\|(3) or B<SSL_accept>\\|(3). " |
| 148 |
"If the peer requests a re-negotiation, it will be performed transparently " |
| 149 |
"during the read function operation. The behaviour of the read functions " |
| 150 |
"depends on the underlying BIO." |
| 151 |
msgstr "" |
| 152 |
|
| 153 |
#. type: Plain text |
| 154 |
#: archlinux debian-trixie debian-unstable |
| 155 |
msgid "" |
| 156 |
"For the transparent negotiation to succeed, the B<ssl> must have been " |
| 157 |
"initialized to client or server mode. This is being done by calling " |
| 158 |
"\\&B<SSL_set_connect_state>\\|(3) or B<SSL_set_accept_state()> before the " |
| 159 |
"first invocation of a read function." |
| 160 |
msgstr "" |
| 161 |
|
| 162 |
#. type: Plain text |
| 163 |
#: archlinux debian-trixie debian-unstable |
| 164 |
msgid "" |
| 165 |
"The read functions work based on the SSL/TLS records. The data are received " |
| 166 |
"in records (with a maximum record size of 16kB). Only when a record has been " |
| 167 |
"completely received, can it be processed (decryption and check of " |
| 168 |
"integrity). Therefore, data that was not retrieved at the last read call " |
| 169 |
"can still be buffered inside the SSL layer and will be retrieved on the next " |
| 170 |
"read call. If B<num> is higher than the number of bytes buffered then the " |
| 171 |
"read functions will return with the bytes buffered. If no more bytes are in " |
| 172 |
"the buffer, the read functions will trigger the processing of the next " |
| 173 |
"record. Only when the record has been received and processed completely " |
| 174 |
"will the read functions return reporting success. At most the contents of " |
| 175 |
"one record will be returned. As the size of an SSL/TLS record may exceed the " |
| 176 |
"maximum packet size of the underlying transport (e.g. TCP), it may be " |
| 177 |
"necessary to read several packets from the transport layer before the record " |
| 178 |
"is complete and the read call can succeed." |
| 179 |
msgstr "" |
| 180 |
|
| 181 |
#. type: Plain text |
| 182 |
#: archlinux debian-trixie debian-unstable |
| 183 |
msgid "" |
| 184 |
"If B<SSL_MODE_AUTO_RETRY> has been switched off and a non-application data " |
| 185 |
"record has been processed, the read function can return and set the error to " |
| 186 |
"\\&B<SSL_ERROR_WANT_READ>. In this case there might still be unprocessed " |
| 187 |
"data available in the B<BIO>. If read ahead was set using " |
| 188 |
"B<SSL_CTX_set_read_ahead>\\|(3), there might also still be unprocessed data " |
| 189 |
"available in the B<SSL>. This behaviour can be controlled using the " |
| 190 |
"B<SSL_CTX_set_mode>\\|(3) call." |
| 191 |
msgstr "" |
| 192 |
|
| 193 |
#. type: Plain text |
| 194 |
#: archlinux debian-trixie debian-unstable |
| 195 |
msgid "" |
| 196 |
"If the underlying BIO is B<blocking>, a read function will only return once " |
| 197 |
"the read operation has been finished or an error occurred, except when a non-" |
| 198 |
"application data record has been processed and B<SSL_MODE_AUTO_RETRY> is not " |
| 199 |
"set. Note that if B<SSL_MODE_AUTO_RETRY> is set and only non-application " |
| 200 |
"data is available the call will hang." |
| 201 |
msgstr "" |
| 202 |
|
| 203 |
#. type: Plain text |
| 204 |
#: archlinux |
| 205 |
msgid "" |
| 206 |
"If the underlying BIO is B<nonblocking>, a read function will also return " |
| 207 |
"when the underlying BIO could not satisfy the needs of the function to " |
| 208 |
"continue the operation. In this case a call to B<SSL_get_error>\\|(3) with " |
| 209 |
"the return value of the read function will yield B<SSL_ERROR_WANT_READ> or " |
| 210 |
"\\&B<SSL_ERROR_WANT_WRITE>. As at any time it\\*(Aqs possible that non-" |
| 211 |
"application data needs to be sent, a read function can also cause write " |
| 212 |
"operations. The calling process then must repeat the call after taking " |
| 213 |
"appropriate action to satisfy the needs of the read function. The action " |
| 214 |
"depends on the underlying BIO. When using a nonblocking socket, nothing is " |
| 215 |
"to be done, but B<select()> can be used to check for the required " |
| 216 |
"condition. When using a buffering BIO, like a BIO pair, data must be " |
| 217 |
"written into or retrieved out of the BIO before being able to continue." |
| 218 |
msgstr "" |
| 219 |
|
| 220 |
#. type: Plain text |
| 221 |
#: archlinux debian-trixie debian-unstable |
| 222 |
msgid "" |
| 223 |
"\\&B<SSL_pending>\\|(3) can be used to find out whether there are buffered " |
| 224 |
"bytes available for immediate retrieval. In this case the read function can " |
| 225 |
"be called without blocking or actually receiving new data from the " |
| 226 |
"underlying socket." |
| 227 |
msgstr "" |
| 228 |
|
| 229 |
#. type: Plain text |
| 230 |
#: archlinux debian-trixie debian-unstable |
| 231 |
msgid "" |
| 232 |
"When used with a QUIC SSL object, calling an I/O function such as " |
| 233 |
"B<SSL_read()> allows internal network event processing to be performed. It " |
| 234 |
"is important that this processing is performed regularly. If an application " |
| 235 |
"is not using thread assisted mode, an application should ensure that an I/O " |
| 236 |
"function such as \\&B<SSL_read()> is called regularly, or alternatively " |
| 237 |
"ensure that B<SSL_handle_events()> is called regularly. See B<openssl-" |
| 238 |
"quic>\\|(7) and B<SSL_handle_events>\\|(3) for more information." |
| 239 |
msgstr "" |
| 240 |
|
| 241 |
#. type: IX |
| 242 |
#: archlinux debian-trixie debian-unstable |
| 243 |
#, no-wrap |
| 244 |
msgid "RETURN VALUES" |
| 245 |
msgstr "" |
| 246 |
|
| 247 |
#. type: Plain text |
| 248 |
#: archlinux debian-trixie debian-unstable |
| 249 |
msgid "" |
| 250 |
"\\&B<SSL_read_ex()> and B<SSL_peek_ex()> will return 1 for success or 0 for " |
| 251 |
"failure. Success means that 1 or more application data bytes have been read " |
| 252 |
"from the SSL connection. Failure means that no bytes could be read from the " |
| 253 |
"SSL connection. Failures can be retryable (e.g. we are waiting for more " |
| 254 |
"bytes to be delivered by the network) or non-retryable (e.g. a fatal network " |
| 255 |
"error). In the event of a failure call B<SSL_get_error>\\|(3) to find out " |
| 256 |
"the reason which indicates whether the call is retryable or not." |
| 257 |
msgstr "" |
| 258 |
|
| 259 |
#. type: Plain text |
| 260 |
#: archlinux debian-trixie debian-unstable |
| 261 |
msgid "" |
| 262 |
"For B<SSL_read()> and B<SSL_peek()> the following return values can occur:" |
| 263 |
msgstr "" |
| 264 |
|
| 265 |
#. type: IX |
| 266 |
#: archlinux debian-trixie debian-unstable |
| 267 |
#, no-wrap |
| 268 |
msgid "E<gt> 0" |
| 269 |
msgstr "" |
| 270 |
|
| 271 |
#. type: IX |
| 272 |
#: archlinux debian-trixie debian-unstable |
| 273 |
#, no-wrap |
| 274 |
msgid "Item" |
| 275 |
msgstr "" |
| 276 |
|
| 277 |
#. type: Plain text |
| 278 |
#: archlinux debian-trixie debian-unstable |
| 279 |
msgid "" |
| 280 |
"The read operation was successful. The return value is the number of bytes " |
| 281 |
"actually read from the TLS/SSL connection." |
| 282 |
msgstr "" |
| 283 |
|
| 284 |
#. type: IX |
| 285 |
#: archlinux debian-trixie debian-unstable |
| 286 |
#, no-wrap |
| 287 |
msgid "E<lt>= 0" |
| 288 |
msgstr "" |
| 289 |
|
| 290 |
#. type: Plain text |
| 291 |
#: archlinux debian-trixie debian-unstable |
| 292 |
msgid "" |
| 293 |
"The read operation was not successful, because either the connection was " |
| 294 |
"closed, an error occurred or action must be taken by the calling process. " |
| 295 |
"Call B<SSL_get_error>\\|(3) with the return value B<ret> to find out the " |
| 296 |
"reason." |
| 297 |
msgstr "" |
| 298 |
|
| 299 |
#. type: Plain text |
| 300 |
#: archlinux |
| 301 |
msgid "" |
| 302 |
"Old documentation indicated a difference between 0 and -1, and that -1 was " |
| 303 |
"retryable. You should instead call B<SSL_get_error()> to find out if " |
| 304 |
"it\\*(Aqs retryable." |
| 305 |
msgstr "" |
| 306 |
|
| 307 |
#. type: IX |
| 308 |
#: archlinux debian-trixie debian-unstable |
| 309 |
#, no-wrap |
| 310 |
msgid "SEE ALSO" |
| 311 |
msgstr "" |
| 312 |
|
| 313 |
#. type: Plain text |
| 314 |
#: archlinux debian-trixie debian-unstable |
| 315 |
msgid "" |
| 316 |
"\\&B<SSL_get_error>\\|(3), B<SSL_write_ex>\\|(3), \\&B<SSL_CTX_set_mode>\\|" |
| 317 |
"(3), B<SSL_CTX_new>\\|(3), \\&B<SSL_connect>\\|(3), B<SSL_accept>\\|(3) " |
| 318 |
"\\&B<SSL_set_connect_state>\\|(3), \\&B<SSL_pending>\\|(3), " |
| 319 |
"\\&B<SSL_shutdown>\\|(3), B<SSL_set_shutdown>\\|(3), \\&B<ssl>\\|(7), " |
| 320 |
"B<bio>\\|(7)" |
| 321 |
msgstr "" |
| 322 |
|
| 323 |
#. type: IX |
| 324 |
#: archlinux debian-trixie debian-unstable |
| 325 |
#, no-wrap |
| 326 |
msgid "HISTORY" |
| 327 |
msgstr "" |
| 328 |
|
| 329 |
#. type: Plain text |
| 330 |
#: archlinux debian-trixie debian-unstable |
| 331 |
msgid "" |
| 332 |
"The B<SSL_read_ex()> and B<SSL_peek_ex()> functions were added in OpenSSL " |
| 333 |
"1.1.1." |
| 334 |
msgstr "" |
| 335 |
|
| 336 |
#. type: IX |
| 337 |
#: archlinux debian-trixie debian-unstable |
| 338 |
#, no-wrap |
| 339 |
msgid "COPYRIGHT" |
| 340 |
msgstr "" |
| 341 |
|
| 342 |
#. type: Plain text |
| 343 |
#: archlinux debian-trixie debian-unstable |
| 344 |
msgid "Copyright 2000-2023 The OpenSSL Project Authors. All Rights Reserved." |
| 345 |
msgstr "" |
| 346 |
|
| 347 |
#. type: Plain text |
| 348 |
#: archlinux debian-trixie debian-unstable |
| 349 |
msgid "" |
| 350 |
"Licensed under the Apache License 2.0 (the \"License\"). You may not use " |
| 351 |
"this file except in compliance with the License. You can obtain a copy in " |
| 352 |
"the file LICENSE in the source distribution or at E<lt>https://" |
| 353 |
"www.openssl.org/source/license.htmlE<gt>." |
| 354 |
msgstr "" |
| 355 |
|
| 356 |
#. ======================================================================== |
| 357 |
#. type: IX |
| 358 |
#: debian-trixie debian-unstable |
| 359 |
#, no-wrap |
| 360 |
msgid "SSL_READ 3SSL" |
| 361 |
msgstr "" |
| 362 |
|
| 363 |
#. type: TH |
| 364 |
#: debian-trixie |
| 365 |
#, no-wrap |
| 366 |
msgid "3.5.6" |
| 367 |
msgstr "" |
| 368 |
|
| 369 |
#. type: Plain text |
| 370 |
#: debian-trixie debian-unstable |
| 371 |
msgid "" |
| 372 |
"If the underlying BIO is B<nonblocking>, a read function will also return " |
| 373 |
"when the underlying BIO could not satisfy the needs of the function to " |
| 374 |
"continue the operation. In this case a call to B<SSL_get_error>\\|(3) with " |
| 375 |
"the return value of the read function will yield B<SSL_ERROR_WANT_READ> or " |
| 376 |
"\\&B<SSL_ERROR_WANT_WRITE>. As at any time it's possible that non-" |
| 377 |
"application data needs to be sent, a read function can also cause write " |
| 378 |
"operations. The calling process then must repeat the call after taking " |
| 379 |
"appropriate action to satisfy the needs of the read function. The action " |
| 380 |
"depends on the underlying BIO. When using a nonblocking socket, nothing is " |
| 381 |
"to be done, but B<select()> can be used to check for the required " |
| 382 |
"condition. When using a buffering BIO, like a BIO pair, data must be " |
| 383 |
"written into or retrieved out of the BIO before being able to continue." |
| 384 |
msgstr "" |
| 385 |
|
| 386 |
#. type: Plain text |
| 387 |
#: debian-trixie debian-unstable |
| 388 |
msgid "" |
| 389 |
"Old documentation indicated a difference between 0 and -1, and that -1 was " |
| 390 |
"retryable. You should instead call B<SSL_get_error()> to find out if it's " |
| 391 |
"retryable." |
| 392 |
msgstr "" |