Debian Codegraph @

templates/man3/BIO_s_mem.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_mem.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
20 #
21 #. #-#-#-#-# archlinux: BIO_s_mem.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
22 #. Required to disable full justification in groff 1.23.0.
23 #. ========================================================================
24 #. type: IX
25 #. #-#-#-#-# debian-trixie: BIO_s_mem.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
26 #. ========================================================================
27 #. type: IX
28 #. #-#-#-#-# debian-unstable: BIO_s_mem.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_MEM 3ssl"
43 msgstr ""
44
45 #. type: TH
46 #: archlinux debian-trixie debian-unstable
47 #, no-wrap
48 msgid "BIO_S_MEM"
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_secmem, BIO_s_dgram_mem, BIO_s_mem, BIO_set_mem_eof_return, "
79 "BIO_get_mem_data, BIO_set_mem_buf, BIO_get_mem_ptr, BIO_new_mem_buf - memory "
80 "BIO"
81 msgstr ""
82
83 #. type: IX
84 #: archlinux debian-trixie debian-unstable
85 #, no-wrap
86 msgid "SYNOPSIS"
87 msgstr ""
88
89 #. type: IX
90 #: archlinux debian-trixie debian-unstable
91 #, no-wrap
92 msgid "Header"
93 msgstr ""
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable
97 #, no-wrap
98 msgid ""
99 "\\& #include E<lt>openssl/bio.hE<gt>\n"
100 "\\&\n"
101 "\\& const BIO_METHOD *BIO_s_mem(void);\n"
102 "\\& const BIO_METHOD *BIO_s_dgram_mem(void);\n"
103 "\\& const BIO_METHOD *BIO_s_secmem(void);\n"
104 "\\&\n"
105 "\\& BIO_set_mem_eof_return(BIO *b, int v);\n"
106 "\\& long BIO_get_mem_data(BIO *b, char **pp);\n"
107 "\\& BIO_set_mem_buf(BIO *b, BUF_MEM *bm, int c);\n"
108 "\\& BIO_get_mem_ptr(BIO *b, BUF_MEM **pp);\n"
109 "\\&\n"
110 "\\& BIO *BIO_new_mem_buf(const void *buf, int len);\n"
111 msgstr ""
112
113 #. type: IX
114 #: archlinux debian-trixie debian-unstable
115 #, no-wrap
116 msgid "DESCRIPTION"
117 msgstr ""
118
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable
121 msgid "\\&B<BIO_s_mem()> returns the memory BIO method function."
122 msgstr ""
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable
126 msgid ""
127 "A memory BIO is a source/sink BIO which uses memory for its I/O. Data "
128 "written to a memory BIO is stored in a BUF_MEM structure which is extended "
129 "as appropriate to accommodate the stored data."
130 msgstr ""
131
132 #. type: Plain text
133 #: archlinux debian-trixie debian-unstable
134 msgid ""
135 "\\&B<BIO_s_secmem()> is like B<BIO_s_mem()> except that the secure heap is "
136 "used for buffer storage."
137 msgstr ""
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable
141 msgid ""
142 "\\&B<BIO_s_dgram_mem()> is a memory BIO that respects datagram semantics. A "
143 "single call to B<BIO_write>\\|(3) will write a single datagram to the memory "
144 "BIO. A subsequent call to B<BIO_read>\\|(3) will read the data in that "
145 "datagram. The \\&B<BIO_read>\\|(3) call will never return more data than was "
146 "written in the original \\&B<BIO_write>\\|(3) call even if there were "
147 "subsequent B<BIO_write>\\|(3) calls that wrote more datagrams. Each "
148 "successive call to B<BIO_read>\\|(3) will read the next datagram. If a "
149 "B<BIO_read>\\|(3) call supplies a read buffer that is smaller than the size "
150 "of the datagram, then the read buffer will be completely filled and the "
151 "remaining data from the datagram will be discarded."
152 msgstr ""
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable
156 msgid ""
157 "It is not possible to write a zero length datagram. Calling B<BIO_write>\\|"
158 "(3) in this case will return 0 and no datagrams will be written. Calling "
159 "B<BIO_read>\\|(3) when there are no datagrams in the BIO to read will "
160 "return a negative result and the \"retry\" flags will be set (i.e. calling "
161 "B<BIO_should_retry>\\|(3) will return true). A datagram mem BIO will never "
162 "return true from B<BIO_eof>\\|(3)."
163 msgstr ""
164
165 #. type: Plain text
166 #: archlinux debian-trixie debian-unstable
167 msgid ""
168 "Any data written to a memory BIO can be recalled by reading from it. Unless "
169 "the memory BIO is read only any data read from it is deleted from the BIO."
170 msgstr ""
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable
174 msgid ""
175 "Memory BIOs except B<BIO_s_dgram_mem()> support B<BIO_gets()> and "
176 "B<BIO_puts()>."
177 msgstr ""
178
179 #. type: Plain text
180 #: archlinux debian-trixie debian-unstable
181 msgid ""
182 "\\&B<BIO_s_dgram_mem()> supports B<BIO_sendmmsg>\\|(3) and B<BIO_recvmmsg>\\|"
183 "(3) calls and calls related to B<BIO_ADDR> and MTU handling similarly to the "
184 "\\&B<BIO_s_dgram_pair>\\|(3)."
185 msgstr ""
186
187 #. type: Plain text
188 #: archlinux debian-trixie debian-unstable
189 msgid ""
190 "If the BIO_CLOSE flag is set when a memory BIO is freed then the underlying "
191 "BUF_MEM structure is also freed."
192 msgstr ""
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable
196 msgid ""
197 "Calling B<BIO_reset()> on a read write memory BIO clears any data in it if "
198 "the flag BIO_FLAGS_NONCLEAR_RST is not set, otherwise it just restores the "
199 "read pointer to the state it was just after the last write was performed and "
200 "the data can be read again. On a read only BIO it similarly restores the BIO "
201 "to its original state and the read only data can be read again."
202 msgstr ""
203
204 #. type: Plain text
205 #: archlinux debian-trixie debian-unstable
206 msgid "\\&B<BIO_eof()> is true if no data is in the BIO."
207 msgstr ""
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable
211 msgid "\\&B<BIO_ctrl_pending()> returns the number of bytes currently stored."
212 msgstr ""
213
214 #. type: Plain text
215 #: archlinux debian-trixie debian-unstable
216 msgid ""
217 "\\&B<BIO_set_mem_eof_return()> sets the behaviour of memory BIO B<b> when it "
218 "is empty. If the B<v> is zero then an empty memory BIO will return EOF (that "
219 "is it will return zero and BIO_should_retry(b) will be false. If B<v> is non "
220 "zero then it will return B<v> when it is empty and it will set the read "
221 "retry flag (that is BIO_read_retry(b) is true). To avoid ambiguity with a "
222 "normal positive return value B<v> should be set to a negative value, "
223 "typically -1. Calling this macro will fail for datagram mem BIOs."
224 msgstr ""
225
226 #. type: Plain text
227 #: archlinux debian-trixie debian-unstable
228 msgid ""
229 "\\&B<BIO_get_mem_data()> sets *B<pp> to a pointer to the start of the memory "
230 "BIOs data and returns the total amount of data available. It is implemented "
231 "as a macro. Note the pointer returned by this call is informative, no "
232 "transfer of ownership of this memory is implied. See notes on "
233 "B<BIO_set_close()>."
234 msgstr ""
235
236 #. type: Plain text
237 #: archlinux debian-trixie debian-unstable
238 msgid ""
239 "\\&B<BIO_set_mem_buf()> sets the internal BUF_MEM structure to B<bm> and "
240 "sets the close flag to B<c>, that is B<c> should be either BIO_CLOSE or "
241 "BIO_NOCLOSE. It is a macro."
242 msgstr ""
243
244 #. type: Plain text
245 #: archlinux debian-trixie debian-unstable
246 msgid ""
247 "\\&B<BIO_get_mem_ptr()> places the underlying BUF_MEM structure in *B<pp>. "
248 "It is a macro."
249 msgstr ""
250
251 #. type: Plain text
252 #: archlinux debian-trixie debian-unstable
253 msgid ""
254 "\\&B<BIO_new_mem_buf()> creates a memory BIO using B<len> bytes of data at "
255 "B<buf>, if B<len> is -1 then the B<buf> is assumed to be nul terminated and "
256 "its length is determined by B<strlen>. The BIO is set to a read only state "
257 "and as a result cannot be written to. This is useful when some data needs to "
258 "be made available from a static area of memory in the form of a BIO. The "
259 "supplied data is read directly from the supplied buffer: it is B<not> copied "
260 "first, so the supplied area of memory must be unchanged until the BIO is "
261 "freed."
262 msgstr ""
263
264 #. type: Plain text
265 #: archlinux debian-trixie debian-unstable
266 msgid ""
267 "All of the five functions described above return an error with "
268 "\\&B<BIO_s_dgram_mem()>."
269 msgstr ""
270
271 #. type: IX
272 #: archlinux debian-trixie debian-unstable
273 #, no-wrap
274 msgid "NOTES"
275 msgstr ""
276
277 #. type: Plain text
278 #: archlinux debian-trixie debian-unstable
279 msgid ""
280 "Writes to memory BIOs will always succeed if memory is available: that is "
281 "their size can grow indefinitely. An exception is B<BIO_s_dgram_mem()> when "
282 "\\&B<BIO_set_write_buf_size>\\|(3) is called on it. In such case the write "
283 "buffer size will be fixed and any writes that would overflow the buffer will "
284 "return an error."
285 msgstr ""
286
287 #. type: Plain text
288 #: archlinux debian-trixie debian-unstable
289 msgid ""
290 "Every write after partial read (not all data in the memory buffer was read) "
291 "to a read write memory BIO will have to move the unread data with an "
292 "internal copy operation, if a BIO contains a lot of data and it is read in "
293 "small chunks intertwined with writes the operation can be very slow. Adding "
294 "a buffering BIO to the chain can speed up the process."
295 msgstr ""
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable
299 msgid ""
300 "Calling B<BIO_set_mem_buf()> on a secmem or dgram BIO will give undefined "
301 "results, including perhaps a program crash."
302 msgstr ""
303
304 #. type: Plain text
305 #: archlinux debian-trixie debian-unstable
306 msgid ""
307 "Switching a memory BIO from read write to read only is not supported and can "
308 "give undefined results including a program crash. There are two notable "
309 "exceptions to the rule. The first one is to assign a static memory buffer "
310 "immediately after BIO creation and set the BIO as read only."
311 msgstr ""
312
313 #. type: Plain text
314 #: archlinux debian-trixie debian-unstable
315 msgid ""
316 "The other supported sequence is to start with a read write BIO then "
317 "temporarily switch it to read only and call B<BIO_reset()> on the read only "
318 "BIO immediately before switching it back to read write. Before the BIO is "
319 "freed it must be switched back to the read write mode."
320 msgstr ""
321
322 #. type: Plain text
323 #: archlinux debian-trixie debian-unstable
324 msgid ""
325 "Calling B<BIO_get_mem_ptr()> on read only BIO will return a BUF_MEM that "
326 "contains only the remaining data to be read. If the close status of the BIO "
327 "is set to BIO_NOCLOSE, before freeing the BUF_MEM the data pointer in it "
328 "must be set to NULL as the data pointer does not point to an allocated "
329 "memory."
330 msgstr ""
331
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable
334 msgid ""
335 "Calling B<BIO_reset()> on a read write memory BIO with "
336 "BIO_FLAGS_NONCLEAR_RST flag set can have unexpected outcome when the reads "
337 "and writes to the BIO are intertwined. As documented above the BIO will be "
338 "reset to the state after the last completed write operation. The effects of "
339 "reads preceding that write operation cannot be undone."
340 msgstr ""
341
342 #. type: Plain text
343 #: archlinux debian-trixie debian-unstable
344 msgid ""
345 "Calling B<BIO_get_mem_ptr()> prior to a B<BIO_reset()> call with "
346 "BIO_FLAGS_NONCLEAR_RST set has the same effect as a write operation."
347 msgstr ""
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable
351 msgid ""
352 "Calling B<BIO_set_close()> with BIO_NOCLOSE orphans the BUF_MEM internal to "
353 "the BIO, _not_ its actual data buffer. See the examples section for the "
354 "proper method for claiming ownership of the data pointer for a deferred free "
355 "operation."
356 msgstr ""
357
358 #. type: IX
359 #: archlinux debian-trixie debian-unstable
360 #, no-wrap
361 msgid "RETURN VALUES"
362 msgstr ""
363
364 #. type: Plain text
365 #: archlinux debian-trixie debian-unstable
366 msgid ""
367 "\\&B<BIO_s_mem()>, B<BIO_s_dgram_mem()> and B<BIO_s_secmem()> return a valid "
368 "memory \\&B<BIO_METHOD> structure."
369 msgstr ""
370
371 #. type: Plain text
372 #: archlinux debian-trixie debian-unstable
373 msgid ""
374 "\\&B<BIO_set_mem_eof_return()>, B<BIO_set_mem_buf()> and "
375 "B<BIO_get_mem_ptr()> return 1 on success or a value which is less than or "
376 "equal to 0 if an error occurred."
377 msgstr ""
378
379 #. type: Plain text
380 #: archlinux debian-trixie debian-unstable
381 msgid ""
382 "\\&B<BIO_get_mem_data()> returns the total number of bytes available on "
383 "success, 0 if b is NULL, or a negative value in case of other errors."
384 msgstr ""
385
386 #. type: Plain text
387 #: archlinux debian-trixie debian-unstable
388 msgid ""
389 "\\&B<BIO_new_mem_buf()> returns a valid B<BIO> structure on success or NULL "
390 "on error."
391 msgstr ""
392
393 #. type: IX
394 #: archlinux debian-trixie debian-unstable
395 #, no-wrap
396 msgid "EXAMPLES"
397 msgstr ""
398
399 #. type: Plain text
400 #: archlinux debian-trixie debian-unstable
401 msgid "Create a memory BIO and write some data to it:"
402 msgstr ""
403
404 #. type: Plain text
405 #: archlinux debian-trixie debian-unstable
406 #, no-wrap
407 msgid ""
408 "\\& BIO *mem = BIO_new(BIO_s_mem());\n"
409 "\\&\n"
410 "\\& BIO_puts(mem, \"Hello World\\en\");\n"
411 msgstr ""
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable
415 msgid "Create a read only memory BIO:"
416 msgstr ""
417
418 #. type: Plain text
419 #: archlinux debian-trixie debian-unstable
420 #, no-wrap
421 msgid ""
422 "\\& char data[] = \"Hello World\";\n"
423 "\\& BIO *mem = BIO_new_mem_buf(data, -1);\n"
424 msgstr ""
425
426 #. type: Plain text
427 #: archlinux debian-trixie debian-unstable
428 msgid ""
429 "Extract the BUF_MEM structure from a memory BIO and then free up the BIO:"
430 msgstr ""
431
432 #. type: Plain text
433 #: archlinux debian-trixie debian-unstable
434 #, no-wrap
435 msgid ""
436 "\\& BUF_MEM *bptr;\n"
437 "\\&\n"
438 "\\& BIO_get_mem_ptr(mem, &bptr);\n"
439 "\\& BIO_set_close(mem, BIO_NOCLOSE); /* So BIO_free() leaves BUF_MEM alone */\n"
440 "\\& BIO_free(mem);\n"
441 msgstr ""
442
443 #. type: Plain text
444 #: archlinux debian-trixie debian-unstable
445 msgid ""
446 "Extract the BUF_MEM ptr, claim ownership of the internal data and free the "
447 "BIO and BUF_MEM structure:"
448 msgstr ""
449
450 #. type: Plain text
451 #: archlinux debian-trixie debian-unstable
452 #, no-wrap
453 msgid ""
454 "\\& BUF_MEM *bptr;\n"
455 "\\& char *data;\n"
456 "\\&\n"
457 "\\& BIO_get_mem_data(bio, &data);\n"
458 "\\& BIO_get_mem_ptr(bio, &bptr);\n"
459 "\\& BIO_set_close(mem, BIO_NOCLOSE); /* So BIO_free orphans BUF_MEM */\n"
460 "\\& BIO_free(bio);\n"
461 "\\& bptr-E<gt>data = NULL; /* Tell BUF_MEM to orphan data */\n"
462 "\\& BUF_MEM_free(bptr);\n"
463 "\\& ...\n"
464 "\\& free(data);\n"
465 msgstr ""
466
467 #. type: IX
468 #: archlinux debian-trixie debian-unstable
469 #, no-wrap
470 msgid "HISTORY"
471 msgstr ""
472
473 #. type: Plain text
474 #: archlinux debian-trixie debian-unstable
475 msgid "\\&B<BIO_s_dgram_mem()> was added in OpenSSL 3.2."
476 msgstr ""
477
478 #. type: IX
479 #: archlinux debian-trixie debian-unstable
480 #, no-wrap
481 msgid "COPYRIGHT"
482 msgstr ""
483
484 #. type: Plain text
485 #: archlinux debian-trixie debian-unstable
486 msgid "Copyright 2000-2024 The OpenSSL Project Authors. All Rights Reserved."
487 msgstr ""
488
489 #. type: Plain text
490 #: archlinux debian-trixie debian-unstable
491 msgid ""
492 "Licensed under the Apache License 2.0 (the \"License\"). You may not use "
493 "this file except in compliance with the License. You can obtain a copy in "
494 "the file LICENSE in the source distribution or at E<lt>https://"
495 "www.openssl.org/source/license.htmlE<gt>."
496 msgstr ""
497
498 #. ========================================================================
499 #. type: IX
500 #: debian-trixie debian-unstable
501 #, no-wrap
502 msgid "BIO_S_MEM 3SSL"
503 msgstr ""
504
505 #. type: TH
506 #: debian-trixie
507 #, no-wrap
508 msgid "3.5.6"
509 msgstr ""