Debian Codegraph @

templates/man3/BIO_s_accept.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_accept.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
20 #
21 #. #-#-#-#-# archlinux: BIO_s_accept.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
22 #. Required to disable full justification in groff 1.23.0.
23 #. ========================================================================
24 #. type: IX
25 #. #-#-#-#-# debian-trixie: BIO_s_accept.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
26 #. ========================================================================
27 #. type: IX
28 #. #-#-#-#-# debian-unstable: BIO_s_accept.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_ACCEPT 3ssl"
43 msgstr ""
44
45 #. type: TH
46 #: archlinux debian-trixie debian-unstable
47 #, no-wrap
48 msgid "BIO_S_ACCEPT"
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_accept, BIO_set_accept_name, BIO_set_accept_port, BIO_get_accept_name, "
79 "BIO_get_accept_port, BIO_new_accept, BIO_set_nbio_accept, "
80 "BIO_set_tfo_accept, BIO_set_accept_bios, BIO_get_peer_name, "
81 "BIO_get_peer_port, BIO_get_accept_ip_family, BIO_set_accept_ip_family, "
82 "BIO_set_bind_mode, BIO_get_bind_mode, BIO_do_accept - accept BIO"
83 msgstr ""
84
85 #. type: IX
86 #: archlinux debian-trixie debian-unstable
87 #, no-wrap
88 msgid "SYNOPSIS"
89 msgstr ""
90
91 #. type: IX
92 #: archlinux debian-trixie debian-unstable
93 #, no-wrap
94 msgid "Header"
95 msgstr ""
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable
99 #, no-wrap
100 msgid ""
101 "\\& #include E<lt>openssl/bio.hE<gt>\n"
102 "\\&\n"
103 "\\& const BIO_METHOD *BIO_s_accept(void);\n"
104 "\\&\n"
105 "\\& long BIO_set_accept_name(BIO *b, char *name);\n"
106 "\\& char *BIO_get_accept_name(BIO *b);\n"
107 "\\&\n"
108 "\\& long BIO_set_accept_port(BIO *b, char *port);\n"
109 "\\& char *BIO_get_accept_port(BIO *b);\n"
110 "\\&\n"
111 "\\& BIO *BIO_new_accept(char *host_port);\n"
112 "\\&\n"
113 "\\& long BIO_set_nbio_accept(BIO *b, int n);\n"
114 "\\& long BIO_set_tfo_accept(BIO *b, int n);\n"
115 "\\& long BIO_set_accept_bios(BIO *b, char *bio);\n"
116 "\\&\n"
117 "\\& char *BIO_get_peer_name(BIO *b);\n"
118 "\\& char *BIO_get_peer_port(BIO *b);\n"
119 "\\& long BIO_get_accept_ip_family(BIO *b);\n"
120 "\\& long BIO_set_accept_ip_family(BIO *b, long family);\n"
121 "\\&\n"
122 "\\& long BIO_set_bind_mode(BIO *b, long mode);\n"
123 "\\& long BIO_get_bind_mode(BIO *b);\n"
124 "\\&\n"
125 "\\& int BIO_do_accept(BIO *b);\n"
126 msgstr ""
127
128 #. type: IX
129 #: archlinux debian-trixie debian-unstable
130 #, no-wrap
131 msgid "DESCRIPTION"
132 msgstr ""
133
134 #. type: Plain text
135 #: archlinux
136 msgid ""
137 "\\&B<BIO_s_accept()> returns the accept BIO method. This is a wrapper round "
138 "the platform\\*(Aqs TCP/IP socket accept routines."
139 msgstr ""
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable
143 msgid ""
144 "Using accept BIOs, TCP/IP connections can be accepted and data transferred "
145 "using only BIO routines. In this way any platform specific operations are "
146 "hidden by the BIO abstraction."
147 msgstr ""
148
149 #. type: Plain text
150 #: archlinux debian-trixie debian-unstable
151 msgid ""
152 "Read and write operations on an accept BIO will perform I/O on the "
153 "underlying connection. If no connection is established and the port (see "
154 "below) is set up properly then the BIO waits for an incoming connection."
155 msgstr ""
156
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable
159 msgid "Accept BIOs support B<BIO_puts()> but not B<BIO_gets()>."
160 msgstr ""
161
162 #. type: Plain text
163 #: archlinux debian-trixie debian-unstable
164 msgid ""
165 "If the close flag is set on an accept BIO then any active connection on that "
166 "chain is shutdown and the socket closed when the BIO is freed."
167 msgstr ""
168
169 #. type: Plain text
170 #: archlinux debian-trixie debian-unstable
171 msgid ""
172 "Calling B<BIO_reset()> on an accept BIO will close any active connection and "
173 "reset the BIO into a state where it awaits another incoming connection."
174 msgstr ""
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable
178 msgid ""
179 "\\&B<BIO_get_fd()> and B<BIO_set_fd()> can be called to retrieve or set the "
180 "accept socket. See B<BIO_s_fd>\\|(3)"
181 msgstr ""
182
183 #. type: Plain text
184 #: archlinux debian-trixie debian-unstable
185 msgid ""
186 "\\&B<BIO_set_accept_name()> uses the string B<name> to set the accept name. "
187 "The name is represented as a string of the form \"host:port\", where "
188 "\"host\" is the interface to use and \"port\" is the port. The host can be "
189 "\"*\" or empty which is interpreted as meaning any interface. If the host "
190 "is an IPv6 address, it has to be enclosed in brackets, for example "
191 "\"[::1]:https\". \"port\" has the same syntax as the port specified in "
192 "B<BIO_set_conn_port()> for connect BIOs, that is it can be a numerical port "
193 "string or a string to lookup using B<getservbyname()> and a string table."
194 msgstr ""
195
196 #. type: Plain text
197 #: archlinux debian-trixie debian-unstable
198 msgid ""
199 "\\&B<BIO_set_accept_port()> uses the string B<port> to set the accept port "
200 "of BIO I<b>. \"port\" has the same syntax as the port specified in "
201 "\\&B<BIO_set_conn_port()> for connect BIOs, that is it can be a numerical "
202 "port string or a string to lookup using B<getservbyname()> and a string "
203 "table. If the given port is CW<0> then a random available port is chosen. "
204 "It may be queried using B<BIO_sock_info()> and B<BIO_ADDR_service_string>\\|"
205 "(3)."
206 msgstr ""
207
208 #. type: Plain text
209 #: archlinux debian-trixie debian-unstable
210 msgid ""
211 "\\&B<BIO_new_accept()> combines B<BIO_new()> and B<BIO_set_accept_name()> "
212 "into a single call: that is it creates a new accept BIO with port "
213 "\\&B<host_port>."
214 msgstr ""
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable
218 msgid ""
219 "\\&B<BIO_set_nbio_accept()> sets the accept socket to blocking mode (the "
220 "default) if B<n> is 0 or non blocking mode if B<n> is 1."
221 msgstr ""
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable
225 msgid ""
226 "\\&B<BIO_set_tfo_accept()> enables TCP Fast Open on the accept socket if "
227 "B<n> is 1 or disables TCP Fast Open if B<n> is 0 (the default). Setting the "
228 "value to 1 is equivalent to setting B<BIO_SOCK_TFO> in "
229 "B<BIO_set_bind_mode()>."
230 msgstr ""
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable
234 msgid ""
235 "\\&B<BIO_set_accept_bios()> can be used to set a chain of BIOs which will be "
236 "duplicated and prepended to the chain when an incoming connection is "
237 "received. This is useful if, for example, a buffering or SSL BIO is required "
238 "for each connection. The chain of BIOs must not be freed after this call, "
239 "they will be automatically freed when the accept BIO is freed."
240 msgstr ""
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable
244 msgid ""
245 "\\&B<BIO_get_accept_ip_family()> returns the IP family accepted by the BIO "
246 "I<b>, which may be B<BIO_FAMILY_IPV4>, B<BIO_FAMILY_IPV6>, or "
247 "B<BIO_FAMILY_IPANY>."
248 msgstr ""
249
250 #. type: Plain text
251 #: archlinux debian-trixie debian-unstable
252 msgid ""
253 "\\&B<BIO_set_accept_ip_family()> sets the IP family I<family> accepted by "
254 "BIO I<b>. The default is B<BIO_FAMILY_IPANY>."
255 msgstr ""
256
257 #. type: Plain text
258 #: archlinux debian-trixie debian-unstable
259 msgid ""
260 "\\&B<BIO_set_bind_mode()> and B<BIO_get_bind_mode()> set and retrieve the "
261 "current bind mode. If B<BIO_BIND_NORMAL> (the default) is set then another "
262 "socket cannot be bound to the same port. If \\&B<BIO_BIND_REUSEADDR> is set "
263 "then other sockets can bind to the same port. If "
264 "B<BIO_BIND_REUSEADDR_IF_UNUSED> is set then and attempt is first made to use "
265 "BIO_BIN_NORMAL, if this fails and the port is not in use then a second "
266 "attempt is made using B<BIO_BIND_REUSEADDR>. If B<BIO_SOCK_TFO> is set, then "
267 "the socket will be configured to accept TCP Fast Open connections."
268 msgstr ""
269
270 #. type: Plain text
271 #: archlinux debian-trixie debian-unstable
272 msgid ""
273 "\\&B<BIO_do_accept()> serves two functions. When it is first called, after "
274 "the accept BIO has been setup, it will attempt to create the accept socket "
275 "and bind an address to it. Second and subsequent calls to B<BIO_do_accept()> "
276 "will await an incoming connection, or request a retry in non blocking mode."
277 msgstr ""
278
279 #. type: IX
280 #: archlinux debian-trixie debian-unstable
281 #, no-wrap
282 msgid "NOTES"
283 msgstr ""
284
285 #. type: Plain text
286 #: archlinux debian-trixie debian-unstable
287 msgid ""
288 "When an accept BIO is at the end of a chain it will await an incoming "
289 "connection before processing I/O calls. When an accept BIO is not at then "
290 "end of a chain it passes I/O calls to the next BIO in the chain."
291 msgstr ""
292
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable
295 msgid ""
296 "When a connection is established a new socket BIO is created for the "
297 "connection and appended to the chain. That is the chain is now accept-"
298 "E<gt>socket. This effectively means that attempting I/O on an initial accept "
299 "socket will await an incoming connection then perform I/O on it."
300 msgstr ""
301
302 #. type: Plain text
303 #: archlinux debian-trixie debian-unstable
304 msgid ""
305 "If any additional BIOs have been set using B<BIO_set_accept_bios()> then "
306 "they are placed between the socket and the accept BIO, that is the chain "
307 "will be accept-E<gt>otherbios-E<gt>socket."
308 msgstr ""
309
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable
312 msgid ""
313 "If a server wishes to process multiple connections (as is normally the case) "
314 "then the accept BIO must be made available for further incoming connections. "
315 "This can be done by waiting for a connection and then calling:"
316 msgstr ""
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable
320 #, no-wrap
321 msgid "\\& connection = BIO_pop(accept);\n"
322 msgstr ""
323
324 #. type: Plain text
325 #: archlinux debian-trixie debian-unstable
326 msgid ""
327 "After this call B<connection> will contain a BIO for the recently "
328 "established connection and B<accept> will now be a single BIO again which "
329 "can be used to await further incoming connections. If no further "
330 "connections will be accepted the B<accept> can be freed using B<BIO_free()>."
331 msgstr ""
332
333 #. type: Plain text
334 #: archlinux debian-trixie debian-unstable
335 msgid ""
336 "If only a single connection will be processed it is possible to perform I/O "
337 "using the accept BIO itself. This is often undesirable however because the "
338 "accept BIO will still accept additional incoming connections. This can be "
339 "resolved by using B<BIO_pop()> (see above) and freeing up the accept BIO "
340 "after the initial connection."
341 msgstr ""
342
343 #. type: Plain text
344 #: archlinux debian-trixie debian-unstable
345 msgid ""
346 "If the underlying accept socket is nonblocking and B<BIO_do_accept()> is "
347 "called to await an incoming connection it is possible for "
348 "\\&B<BIO_should_io_special()> with the reason BIO_RR_ACCEPT. If this happens "
349 "then it is an indication that an accept attempt would block: the application "
350 "should take appropriate action to wait until the underlying socket has "
351 "accepted a connection and retry the call."
352 msgstr ""
353
354 #. type: Plain text
355 #: archlinux debian-trixie debian-unstable
356 msgid ""
357 "\\&B<BIO_set_accept_name()>, B<BIO_get_accept_name()>, "
358 "B<BIO_set_accept_port()>, \\&B<BIO_get_accept_port()>, "
359 "B<BIO_set_nbio_accept()>, B<BIO_set_accept_bios()>, "
360 "\\&B<BIO_get_peer_name()>, B<BIO_get_peer_port()>, "
361 "\\&B<BIO_get_accept_ip_family()>, B<BIO_set_accept_ip_family()>, "
362 "\\&B<BIO_set_bind_mode()>, B<BIO_get_bind_mode()> and B<BIO_do_accept()> are "
363 "macros."
364 msgstr ""
365
366 #. type: IX
367 #: archlinux debian-trixie debian-unstable
368 #, no-wrap
369 msgid "RETURN VALUES"
370 msgstr ""
371
372 #. type: Plain text
373 #: archlinux debian-trixie debian-unstable
374 msgid ""
375 "\\&B<BIO_do_accept()>, \\&B<BIO_set_accept_name()>, "
376 "B<BIO_set_accept_port()>, B<BIO_set_nbio_accept()>, "
377 "\\&B<BIO_set_accept_bios()>, B<BIO_set_accept_ip_family()>, and "
378 "B<BIO_set_bind_mode()> return 1 for success and E<lt>= 0 for failure."
379 msgstr ""
380
381 #. type: Plain text
382 #: archlinux debian-trixie debian-unstable
383 msgid ""
384 "\\&B<BIO_get_accept_name()> returns the accept name or NULL on error. "
385 "\\&B<BIO_get_peer_name()> returns the peer name or NULL on error."
386 msgstr ""
387
388 #. type: Plain text
389 #: archlinux debian-trixie debian-unstable
390 msgid ""
391 "\\&B<BIO_get_accept_port()> returns the accept port as a string or NULL on "
392 "error. \\&B<BIO_get_peer_port()> returns the peer port as a string or NULL "
393 "on error. \\&B<BIO_get_accept_ip_family()> returns the IP family or E<lt>= "
394 "0 on error."
395 msgstr ""
396
397 #. type: Plain text
398 #: archlinux debian-trixie debian-unstable
399 msgid ""
400 "\\&B<BIO_get_bind_mode()> returns the set of B<BIO_BIND> flags, or E<lt>= 0 "
401 "on failure."
402 msgstr ""
403
404 #. type: Plain text
405 #: archlinux debian-trixie debian-unstable
406 msgid "\\&B<BIO_new_accept()> returns a BIO or NULL on error."
407 msgstr ""
408
409 #. type: IX
410 #: archlinux debian-trixie debian-unstable
411 #, no-wrap
412 msgid "EXAMPLES"
413 msgstr ""
414
415 #. type: Plain text
416 #: archlinux debian-trixie debian-unstable
417 msgid ""
418 "This example accepts two connections on port 4444, sends messages down each "
419 "and finally closes both down."
420 msgstr ""
421
422 #. type: Plain text
423 #: archlinux debian-trixie debian-unstable
424 #, no-wrap
425 msgid ""
426 "\\& BIO *abio, *cbio, *cbio2;\n"
427 "\\&\n"
428 "\\& /* First call to BIO_do_accept() sets up accept BIO */\n"
429 "\\& abio = BIO_new_accept(\"4444\");\n"
430 "\\& if (BIO_do_accept(abio) E<lt>= 0) {\n"
431 "\\& fprintf(stderr, \"Error setting up accept\\en\");\n"
432 "\\& ERR_print_errors_fp(stderr);\n"
433 "\\& exit(1);\n"
434 "\\& }\n"
435 "\\&\n"
436 "\\& /* Wait for incoming connection */\n"
437 "\\& if (BIO_do_accept(abio) E<lt>= 0) {\n"
438 "\\& fprintf(stderr, \"Error accepting connection\\en\");\n"
439 "\\& ERR_print_errors_fp(stderr);\n"
440 "\\& exit(1);\n"
441 "\\& }\n"
442 "\\& fprintf(stderr, \"Connection 1 established\\en\");\n"
443 "\\&\n"
444 "\\& /* Retrieve BIO for connection */\n"
445 "\\& cbio = BIO_pop(abio);\n"
446 "\\& BIO_puts(cbio, \"Connection 1: Sending out Data on initial connection\\en\");\n"
447 "\\& fprintf(stderr, \"Sent out data on connection 1\\en\");\n"
448 "\\&\n"
449 "\\& /* Wait for another connection */\n"
450 "\\& if (BIO_do_accept(abio) E<lt>= 0) {\n"
451 "\\& fprintf(stderr, \"Error accepting connection\\en\");\n"
452 "\\& ERR_print_errors_fp(stderr);\n"
453 "\\& exit(1);\n"
454 "\\& }\n"
455 "\\& fprintf(stderr, \"Connection 2 established\\en\");\n"
456 "\\&\n"
457 "\\& /* Close accept BIO to refuse further connections */\n"
458 "\\& cbio2 = BIO_pop(abio);\n"
459 "\\& BIO_free(abio);\n"
460 "\\& BIO_puts(cbio2, \"Connection 2: Sending out Data on second\\en\");\n"
461 "\\& fprintf(stderr, \"Sent out data on connection 2\\en\");\n"
462 "\\&\n"
463 "\\& BIO_puts(cbio, \"Connection 1: Second connection established\\en\");\n"
464 "\\&\n"
465 "\\& /* Close the two established connections */\n"
466 "\\& BIO_free(cbio);\n"
467 "\\& BIO_free(cbio2);\n"
468 msgstr ""
469
470 #. type: IX
471 #: archlinux debian-trixie debian-unstable
472 #, no-wrap
473 msgid "HISTORY"
474 msgstr ""
475
476 #. type: Plain text
477 #: archlinux debian-trixie debian-unstable
478 msgid "\\&B<BIO_set_tfo_accept()> was added in OpenSSL 3.2."
479 msgstr ""
480
481 #. type: IX
482 #: archlinux debian-trixie debian-unstable
483 #, no-wrap
484 msgid "COPYRIGHT"
485 msgstr ""
486
487 #. type: Plain text
488 #: archlinux debian-trixie debian-unstable
489 msgid "Copyright 2000-2022 The OpenSSL Project Authors. All Rights Reserved."
490 msgstr ""
491
492 #. type: Plain text
493 #: archlinux debian-trixie debian-unstable
494 msgid ""
495 "Licensed under the Apache License 2.0 (the \"License\"). You may not use "
496 "this file except in compliance with the License. You can obtain a copy in "
497 "the file LICENSE in the source distribution or at E<lt>https://"
498 "www.openssl.org/source/license.htmlE<gt>."
499 msgstr ""
500
501 #. ========================================================================
502 #. type: IX
503 #: debian-trixie debian-unstable
504 #, no-wrap
505 msgid "BIO_S_ACCEPT 3SSL"
506 msgstr ""
507
508 #. type: TH
509 #: debian-trixie
510 #, no-wrap
511 msgid "3.5.6"
512 msgstr ""
513
514 #. type: Plain text
515 #: debian-trixie debian-unstable
516 msgid ""
517 "\\&B<BIO_s_accept()> returns the accept BIO method. This is a wrapper round "
518 "the platform's TCP/IP socket accept routines."
519 msgstr ""