Debian Codegraph @

templates/man3/BIO_s_bio.3ssl.pot

raw
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:19+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: BIO_s_bio.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
20 #
21 #. #-#-#-#-# archlinux: BIO_s_bio.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
22 #. Required to disable full justification in groff 1.23.0.
23 #. ========================================================================
24 #. type: IX
25 #. #-#-#-#-# debian-trixie: BIO_s_bio.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
26 #. ========================================================================
27 #. type: IX
28 #. #-#-#-#-# debian-unstable: BIO_s_bio.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 "BIO_S_BIO 3ssl"
43 msgstr ""
44
45 #. type: TH
46 #: archlinux debian-trixie debian-unstable
47 #, no-wrap
48 msgid "BIO_S_BIO"
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 "BIO_s_bio, BIO_make_bio_pair, BIO_destroy_bio_pair, BIO_shutdown_wr, "
79 "BIO_set_write_buf_size, BIO_get_write_buf_size, BIO_new_bio_pair, "
80 "BIO_get_write_guarantee, BIO_ctrl_get_write_guarantee, BIO_get_read_request, "
81 "BIO_ctrl_get_read_request, BIO_ctrl_reset_read_request - BIO pair BIO"
82 msgstr ""
83
84 #. type: IX
85 #: archlinux debian-trixie debian-unstable
86 #, no-wrap
87 msgid "SYNOPSIS"
88 msgstr ""
89
90 #. type: IX
91 #: archlinux debian-trixie debian-unstable
92 #, no-wrap
93 msgid "Header"
94 msgstr ""
95
96 #. type: Plain text
97 #: archlinux debian-trixie debian-unstable
98 #, no-wrap
99 msgid ""
100 "\\& #include E<lt>openssl/bio.hE<gt>\n"
101 "\\&\n"
102 "\\& const BIO_METHOD *BIO_s_bio(void);\n"
103 "\\&\n"
104 "\\& int BIO_make_bio_pair(BIO *b1, BIO *b2);\n"
105 "\\& int BIO_destroy_bio_pair(BIO *b);\n"
106 "\\& int BIO_shutdown_wr(BIO *b);\n"
107 "\\&\n"
108 "\\& int BIO_set_write_buf_size(BIO *b, long size);\n"
109 "\\& size_t BIO_get_write_buf_size(BIO *b, long size);\n"
110 "\\&\n"
111 "\\& int BIO_new_bio_pair(BIO **bio1, size_t writebuf1, BIO **bio2, size_t writebuf2);\n"
112 "\\&\n"
113 "\\& int BIO_get_write_guarantee(BIO *b);\n"
114 "\\& size_t BIO_ctrl_get_write_guarantee(BIO *b);\n"
115 "\\& int BIO_get_read_request(BIO *b);\n"
116 "\\& size_t BIO_ctrl_get_read_request(BIO *b);\n"
117 "\\& int BIO_ctrl_reset_read_request(BIO *b);\n"
118 msgstr ""
119
120 #. type: IX
121 #: archlinux debian-trixie debian-unstable
122 #, no-wrap
123 msgid "DESCRIPTION"
124 msgstr ""
125
126 #. type: Plain text
127 #: archlinux debian-trixie debian-unstable
128 msgid ""
129 "\\&B<BIO_s_bio()> returns the method for a BIO pair. A BIO pair is a pair of "
130 "source/sink BIOs where data written to either half of the pair is buffered "
131 "and can be read from the other half. Both halves must usually by handled by "
132 "the same application thread since no locking is done on the internal data "
133 "structures."
134 msgstr ""
135
136 #. type: Plain text
137 #: archlinux debian-trixie debian-unstable
138 msgid ""
139 "Since BIO chains typically end in a source/sink BIO it is possible to make "
140 "this one half of a BIO pair and have all the data processed by the chain "
141 "under application control."
142 msgstr ""
143
144 #. type: Plain text
145 #: archlinux debian-trixie debian-unstable
146 msgid ""
147 "One typical use of BIO pairs is to place TLS/SSL I/O under application "
148 "control, this can be used when the application wishes to use a non standard "
149 "transport for TLS/SSL or the normal socket routines are inappropriate."
150 msgstr ""
151
152 #. type: Plain text
153 #: archlinux debian-trixie debian-unstable
154 msgid ""
155 "Calls to B<BIO_read_ex()> will read data from the buffer or request a retry "
156 "if no data is available."
157 msgstr ""
158
159 #. type: Plain text
160 #: archlinux debian-trixie debian-unstable
161 msgid ""
162 "Calls to B<BIO_write_ex()> will place data in the buffer or request a retry "
163 "if the buffer is full."
164 msgstr ""
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable
168 msgid ""
169 "The standard calls B<BIO_ctrl_pending()> and B<BIO_ctrl_wpending()> can be "
170 "used to determine the amount of pending data in the read or write buffer."
171 msgstr ""
172
173 #. type: Plain text
174 #: archlinux debian-trixie debian-unstable
175 msgid "\\&B<BIO_reset()> clears any data in the write buffer."
176 msgstr ""
177
178 #. type: Plain text
179 #: archlinux debian-trixie debian-unstable
180 msgid ""
181 "\\&B<BIO_make_bio_pair()> joins two separate BIOs into a connected pair."
182 msgstr ""
183
184 #. type: Plain text
185 #: archlinux debian-trixie debian-unstable
186 msgid ""
187 "\\&B<BIO_destroy_pair()> destroys the association between two connected "
188 "BIOs. Freeing up any half of the pair will automatically destroy the "
189 "association."
190 msgstr ""
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable
194 msgid ""
195 "\\&B<BIO_shutdown_wr()> is used to close down a BIO B<b>. After this call no "
196 "further writes on BIO B<b> are allowed (they will return an error). Reads on "
197 "the other half of the pair will return any pending data or EOF when all "
198 "pending data has been read."
199 msgstr ""
200
201 #. type: Plain text
202 #: archlinux debian-trixie debian-unstable
203 msgid ""
204 "\\&B<BIO_set_write_buf_size()> sets the write buffer size of BIO B<b> to "
205 "B<size>. If the size is not initialized a default value is used. This is "
206 "currently 17K, sufficient for a maximum size TLS record."
207 msgstr ""
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable
211 msgid "\\&B<BIO_get_write_buf_size()> returns the size of the write buffer."
212 msgstr ""
213
214 #. type: Plain text
215 #: archlinux debian-trixie debian-unstable
216 msgid ""
217 "\\&B<BIO_new_bio_pair()> combines the calls to B<BIO_new()>, "
218 "B<BIO_make_bio_pair()> and \\&B<BIO_set_write_buf_size()> to create a "
219 "connected pair of BIOs B<bio1>, B<bio2> with write buffer sizes B<writebuf1> "
220 "and B<writebuf2>. If either size is zero then the default size is used. "
221 "B<BIO_new_bio_pair()> does not check whether \\&B<bio1> or B<bio2> do point "
222 "to some other BIO, the values are overwritten, \\&B<BIO_free()> is not "
223 "called."
224 msgstr ""
225
226 #. type: Plain text
227 #: archlinux debian-trixie debian-unstable
228 msgid ""
229 "\\&B<BIO_get_write_guarantee()> and B<BIO_ctrl_get_write_guarantee()> return "
230 "the maximum length of data that can be currently written to the BIO. Writes "
231 "larger than this value will return a value from B<BIO_write_ex()> less than "
232 "the amount requested or if the buffer is full request a retry. "
233 "B<BIO_ctrl_get_write_guarantee()> is a function whereas "
234 "B<BIO_get_write_guarantee()> is a macro."
235 msgstr ""
236
237 #. type: Plain text
238 #: archlinux debian-trixie debian-unstable
239 msgid ""
240 "\\&B<BIO_get_read_request()> and B<BIO_ctrl_get_read_request()> return the "
241 "amount of data requested, or the buffer size if it is less, if the last read "
242 "attempt at the other half of the BIO pair failed due to an empty buffer. "
243 "This can be used to determine how much data should be written to the BIO so "
244 "the next read will succeed: this is most useful in TLS/SSL applications "
245 "where the amount of data read is usually meaningful rather than just a "
246 "buffer size. After a successful read this call will return zero. It also "
247 "will return zero once new data has been written satisfying the read request "
248 "or part of it. Note that B<BIO_get_read_request()> never returns an amount "
249 "larger than that returned by B<BIO_get_write_guarantee()>."
250 msgstr ""
251
252 #. type: Plain text
253 #: archlinux debian-trixie debian-unstable
254 msgid ""
255 "\\&B<BIO_ctrl_reset_read_request()> can also be used to reset the value "
256 "returned by \\&B<BIO_get_read_request()> to zero."
257 msgstr ""
258
259 #. type: IX
260 #: archlinux debian-trixie debian-unstable
261 #, no-wrap
262 msgid "NOTES"
263 msgstr ""
264
265 #. type: Plain text
266 #: archlinux debian-trixie debian-unstable
267 msgid ""
268 "Both halves of a BIO pair should be freed. That is even if one half is "
269 "implicit freed due to a B<BIO_free_all()> or B<SSL_free()> call the other "
270 "half needs to be freed."
271 msgstr ""
272
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable
275 msgid ""
276 "When used in bidirectional applications (such as TLS/SSL) care should be "
277 "taken to flush any data in the write buffer. This can be done by calling "
278 "B<BIO_pending()> on the other half of the pair and, if any data is pending, "
279 "reading it and sending it to the underlying transport. This must be done "
280 "before any normal processing (such as calling B<select()> ) due to a request "
281 "and B<BIO_should_read()> being true."
282 msgstr ""
283
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable
286 msgid ""
287 "To see why this is important consider a case where a request is sent using "
288 "\\&B<BIO_write_ex()> and a response read with B<BIO_read_ex()>, this can "
289 "occur during an TLS/SSL handshake for example. B<BIO_write_ex()> will "
290 "succeed and place data in the write buffer. B<BIO_read_ex()> will initially "
291 "fail and B<BIO_should_read()> will be true. If the application then waits "
292 "for data to be available on the underlying transport before flushing the "
293 "write buffer it will never succeed because the request was never sent!"
294 msgstr ""
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable
298 msgid ""
299 "\\&B<BIO_eof()> is true if no data is in the peer BIO and the peer BIO has "
300 "been shutdown."
301 msgstr ""
302
303 #. type: Plain text
304 #: archlinux debian-trixie debian-unstable
305 msgid ""
306 "\\&B<BIO_make_bio_pair()>, B<BIO_destroy_bio_pair()>, B<BIO_shutdown_wr()>, "
307 "\\&B<BIO_set_write_buf_size()>, B<BIO_get_write_buf_size()>, "
308 "\\&B<BIO_get_write_guarantee()>, and B<BIO_get_read_request()> are "
309 "implemented as macros."
310 msgstr ""
311
312 #. type: IX
313 #: archlinux debian-trixie debian-unstable
314 #, no-wrap
315 msgid "RETURN VALUES"
316 msgstr ""
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable
320 msgid ""
321 "\\&B<BIO_new_bio_pair()> returns 1 on success, with the new BIOs available "
322 "in \\&B<bio1> and B<bio2>, or 0 on failure, with NULL pointers stored into "
323 "the locations for B<bio1> and B<bio2>. Check the error stack for more "
324 "information."
325 msgstr ""
326
327 #. type: Plain text
328 #: archlinux debian-trixie debian-unstable
329 msgid "[XXXXX: More return values need to be added here]"
330 msgstr ""
331
332 #. type: IX
333 #: archlinux debian-trixie debian-unstable
334 #, no-wrap
335 msgid "EXAMPLES"
336 msgstr ""
337
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable
340 msgid ""
341 "The BIO pair can be used to have full control over the network access of an "
342 "application. The application can call B<select()> on the socket as required "
343 "without having to go through the SSL-interface."
344 msgstr ""
345
346 #. type: Plain text
347 #: archlinux debian-trixie debian-unstable
348 #, no-wrap
349 msgid ""
350 "\\& BIO *internal_bio, *network_bio;\n"
351 "\\&\n"
352 "\\& ...\n"
353 "\\& BIO_new_bio_pair(&internal_bio, 0, &network_bio, 0);\n"
354 "\\& SSL_set_bio(ssl, internal_bio, internal_bio);\n"
355 "\\& SSL_operations(); /* e.g. SSL_read and SSL_write */\n"
356 "\\& ...\n"
357 "\\&\n"
358 "\\& application | TLS-engine\n"
359 "\\& | |\n"
360 "\\& +----------E<gt> SSL_operations()\n"
361 "\\& | /\\e ||\n"
362 "\\& | || \\e/\n"
363 "\\& | BIO-pair (internal_bio)\n"
364 "\\& | BIO-pair (network_bio)\n"
365 "\\& | || /\\e\n"
366 "\\& | \\e/ ||\n"
367 "\\& +-----------E<lt> BIO_operations()\n"
368 "\\& | |\n"
369 "\\& | |\n"
370 "\\& socket\n"
371 "\\&\n"
372 "\\& ...\n"
373 "\\& SSL_free(ssl); /* implicitly frees internal_bio */\n"
374 "\\& BIO_free(network_bio);\n"
375 "\\& ...\n"
376 msgstr ""
377
378 #. type: Plain text
379 #: archlinux debian-trixie debian-unstable
380 msgid ""
381 "As the BIO pair will only buffer the data and never directly access the "
382 "connection, it behaves nonblocking and will return as soon as the write "
383 "buffer is full or the read buffer is drained. Then the application has to "
384 "flush the write buffer and/or fill the read buffer."
385 msgstr ""
386
387 #. type: Plain text
388 #: archlinux debian-trixie debian-unstable
389 msgid ""
390 "Use the B<BIO_ctrl_pending()>, to find out whether data is buffered in the "
391 "BIO and must be transferred to the network. Use "
392 "B<BIO_ctrl_get_read_request()> to find out, how many bytes must be written "
393 "into the buffer before the \\&B<SSL_operation()> can successfully be "
394 "continued."
395 msgstr ""
396
397 #. type: IX
398 #: archlinux debian-trixie debian-unstable
399 #, no-wrap
400 msgid "WARNINGS"
401 msgstr ""
402
403 #. type: Plain text
404 #: archlinux debian-trixie debian-unstable
405 msgid ""
406 "As the data is buffered, B<SSL_operation()> may return with an "
407 "ERROR_SSL_WANT_READ condition, but there is still data in the write buffer. "
408 "An application must not rely on the error value of B<SSL_operation()> but "
409 "must assure that the write buffer is always flushed first. Otherwise a "
410 "deadlock may occur as the peer might be waiting for the data before being "
411 "able to continue."
412 msgstr ""
413
414 #. type: IX
415 #: archlinux debian-trixie debian-unstable
416 #, no-wrap
417 msgid "SEE ALSO"
418 msgstr ""
419
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable
422 msgid ""
423 "\\&B<SSL_set_bio>\\|(3), B<ssl>\\|(7), B<bio>\\|(7), "
424 "\\&B<BIO_should_retry>\\|(3), B<BIO_read_ex>\\|(3)"
425 msgstr ""
426
427 #. type: IX
428 #: archlinux debian-trixie debian-unstable
429 #, no-wrap
430 msgid "COPYRIGHT"
431 msgstr ""
432
433 #. type: Plain text
434 #: archlinux debian-trixie debian-unstable
435 msgid "Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved."
436 msgstr ""
437
438 #. type: Plain text
439 #: archlinux debian-trixie debian-unstable
440 msgid ""
441 "Licensed under the Apache License 2.0 (the \"License\"). You may not use "
442 "this file except in compliance with the License. You can obtain a copy in "
443 "the file LICENSE in the source distribution or at E<lt>https://"
444 "www.openssl.org/source/license.htmlE<gt>."
445 msgstr ""
446
447 #. ========================================================================
448 #. type: IX
449 #: debian-trixie debian-unstable
450 #, no-wrap
451 msgid "BIO_S_BIO 3SSL"
452 msgstr ""
453
454 #. type: TH
455 #: debian-trixie
456 #, no-wrap
457 msgid "3.5.6"
458 msgstr ""