| 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_f_ssl.3ssl.pot (PACKAGE VERSION) #-#-#-#-# |
| 20 |
# |
| 21 |
#. #-#-#-#-# archlinux: BIO_f_ssl.3ssl.pot (PACKAGE VERSION) #-#-#-#-# |
| 22 |
#. Required to disable full justification in groff 1.23.0. |
| 23 |
#. ======================================================================== |
| 24 |
#. type: IX |
| 25 |
#. #-#-#-#-# debian-trixie: BIO_f_ssl.3ssl.pot (PACKAGE VERSION) #-#-#-#-# |
| 26 |
#. ======================================================================== |
| 27 |
#. type: IX |
| 28 |
#. #-#-#-#-# debian-unstable: BIO_f_ssl.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_F_SSL 3ssl" |
| 43 |
msgstr "" |
| 44 |
|
| 45 |
#. type: TH |
| 46 |
#: archlinux debian-trixie debian-unstable |
| 47 |
#, no-wrap |
| 48 |
msgid "BIO_F_SSL" |
| 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_do_handshake, BIO_f_ssl, BIO_set_ssl, BIO_get_ssl, BIO_set_ssl_mode, " |
| 79 |
"BIO_set_ssl_renegotiate_bytes, BIO_get_num_renegotiates, " |
| 80 |
"BIO_set_ssl_renegotiate_timeout, BIO_new_ssl, BIO_new_ssl_connect, " |
| 81 |
"BIO_new_buffer_ssl_connect, BIO_ssl_copy_session_id, BIO_ssl_shutdown - SSL " |
| 82 |
"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 |
"\\& #include E<lt>openssl/ssl.hE<gt>\n" |
| 103 |
"\\&\n" |
| 104 |
"\\& const BIO_METHOD *BIO_f_ssl(void);\n" |
| 105 |
"\\&\n" |
| 106 |
"\\& long BIO_set_ssl(BIO *b, SSL *ssl, long c);\n" |
| 107 |
"\\& long BIO_get_ssl(BIO *b, SSL **sslp);\n" |
| 108 |
"\\& long BIO_set_ssl_mode(BIO *b, long client);\n" |
| 109 |
"\\& long BIO_set_ssl_renegotiate_bytes(BIO *b, long num);\n" |
| 110 |
"\\& long BIO_set_ssl_renegotiate_timeout(BIO *b, long seconds);\n" |
| 111 |
"\\& long BIO_get_num_renegotiates(BIO *b);\n" |
| 112 |
"\\&\n" |
| 113 |
"\\& BIO *BIO_new_ssl(SSL_CTX *ctx, int client);\n" |
| 114 |
"\\& BIO *BIO_new_ssl_connect(SSL_CTX *ctx);\n" |
| 115 |
"\\& BIO *BIO_new_buffer_ssl_connect(SSL_CTX *ctx);\n" |
| 116 |
"\\& int BIO_ssl_copy_session_id(BIO *to, BIO *from);\n" |
| 117 |
"\\& void BIO_ssl_shutdown(BIO *bio);\n" |
| 118 |
"\\&\n" |
| 119 |
"\\& long BIO_do_handshake(BIO *b);\n" |
| 120 |
msgstr "" |
| 121 |
|
| 122 |
#. type: IX |
| 123 |
#: archlinux debian-trixie debian-unstable |
| 124 |
#, no-wrap |
| 125 |
msgid "DESCRIPTION" |
| 126 |
msgstr "" |
| 127 |
|
| 128 |
#. type: Plain text |
| 129 |
#: archlinux debian-trixie debian-unstable |
| 130 |
msgid "" |
| 131 |
"\\&B<BIO_f_ssl()> returns the SSL BIO method. This is a filter BIO which is " |
| 132 |
"a wrapper round the OpenSSL SSL routines adding a BIO \"flavour\" to SSL I/O." |
| 133 |
msgstr "" |
| 134 |
|
| 135 |
#. type: Plain text |
| 136 |
#: archlinux debian-trixie debian-unstable |
| 137 |
msgid "" |
| 138 |
"I/O performed on an SSL BIO communicates using the SSL protocol with the " |
| 139 |
"SSLs read and write BIOs. If an SSL connection is not established then an " |
| 140 |
"attempt is made to establish one on the first I/O call." |
| 141 |
msgstr "" |
| 142 |
|
| 143 |
#. type: Plain text |
| 144 |
#: archlinux debian-trixie debian-unstable |
| 145 |
msgid "" |
| 146 |
"If a BIO is appended to an SSL BIO using B<BIO_push()> it is automatically " |
| 147 |
"used as the SSL BIOs read and write BIOs." |
| 148 |
msgstr "" |
| 149 |
|
| 150 |
#. type: Plain text |
| 151 |
#: archlinux debian-trixie debian-unstable |
| 152 |
msgid "" |
| 153 |
"Calling B<BIO_reset()> on an SSL BIO closes down any current SSL connection " |
| 154 |
"by calling B<SSL_shutdown()>. B<BIO_reset()> is then sent to the next BIO in " |
| 155 |
"the chain: this will typically disconnect the underlying transport. The SSL " |
| 156 |
"BIO is then reset to the initial accept or connect state." |
| 157 |
msgstr "" |
| 158 |
|
| 159 |
#. type: Plain text |
| 160 |
#: archlinux debian-trixie debian-unstable |
| 161 |
msgid "" |
| 162 |
"If the close flag is set when an SSL BIO is freed then the internal SSL " |
| 163 |
"structure is also freed using B<SSL_free()>." |
| 164 |
msgstr "" |
| 165 |
|
| 166 |
#. type: Plain text |
| 167 |
#: archlinux debian-trixie debian-unstable |
| 168 |
msgid "" |
| 169 |
"\\&B<BIO_set_ssl()> sets the internal SSL pointer of SSL BIO B<b> to B<ssl> " |
| 170 |
"using the close flag B<c>." |
| 171 |
msgstr "" |
| 172 |
|
| 173 |
#. type: Plain text |
| 174 |
#: archlinux debian-trixie debian-unstable |
| 175 |
msgid "" |
| 176 |
"\\&B<BIO_get_ssl()> retrieves the SSL pointer of SSL BIO B<b>, it can then " |
| 177 |
"be manipulated using the standard SSL library functions." |
| 178 |
msgstr "" |
| 179 |
|
| 180 |
#. type: Plain text |
| 181 |
#: archlinux debian-trixie debian-unstable |
| 182 |
msgid "" |
| 183 |
"\\&B<BIO_set_ssl_mode()> sets the SSL BIO mode to B<client>. If B<client> is " |
| 184 |
"1 client mode is set. If B<client> is 0 server mode is set." |
| 185 |
msgstr "" |
| 186 |
|
| 187 |
#. type: Plain text |
| 188 |
#: archlinux debian-trixie debian-unstable |
| 189 |
msgid "" |
| 190 |
"\\&B<BIO_set_ssl_renegotiate_bytes()> sets the renegotiate byte count of SSL " |
| 191 |
"BIO B<b> to B<num>. When set after every B<num> bytes of I/O (read and " |
| 192 |
"write) the SSL session is automatically renegotiated. B<num> must be at " |
| 193 |
"least 512 bytes." |
| 194 |
msgstr "" |
| 195 |
|
| 196 |
#. type: Plain text |
| 197 |
#: archlinux debian-trixie debian-unstable |
| 198 |
msgid "" |
| 199 |
"\\&B<BIO_set_ssl_renegotiate_timeout()> sets the renegotiate timeout of SSL " |
| 200 |
"BIO B<b> to B<seconds>. When the renegotiate timeout elapses the session is " |
| 201 |
"automatically renegotiated." |
| 202 |
msgstr "" |
| 203 |
|
| 204 |
#. type: Plain text |
| 205 |
#: archlinux debian-trixie debian-unstable |
| 206 |
msgid "" |
| 207 |
"\\&B<BIO_get_num_renegotiates()> returns the total number of session " |
| 208 |
"renegotiations due to I/O or timeout of SSL BIO B<b>." |
| 209 |
msgstr "" |
| 210 |
|
| 211 |
#. type: Plain text |
| 212 |
#: archlinux debian-trixie debian-unstable |
| 213 |
msgid "" |
| 214 |
"\\&B<BIO_new_ssl()> allocates an SSL BIO using SSL_CTX B<ctx> and using " |
| 215 |
"client mode if B<client> is non zero." |
| 216 |
msgstr "" |
| 217 |
|
| 218 |
#. type: Plain text |
| 219 |
#: archlinux debian-trixie debian-unstable |
| 220 |
msgid "" |
| 221 |
"\\&B<BIO_new_ssl_connect()> creates a new BIO chain consisting of an SSL BIO " |
| 222 |
"(using B<ctx>) followed by a connect BIO." |
| 223 |
msgstr "" |
| 224 |
|
| 225 |
#. type: Plain text |
| 226 |
#: archlinux debian-trixie debian-unstable |
| 227 |
msgid "" |
| 228 |
"\\&B<BIO_new_buffer_ssl_connect()> creates a new BIO chain consisting of a " |
| 229 |
"buffering BIO, an SSL BIO (using B<ctx>), and a connect BIO." |
| 230 |
msgstr "" |
| 231 |
|
| 232 |
#. type: Plain text |
| 233 |
#: archlinux debian-trixie debian-unstable |
| 234 |
msgid "" |
| 235 |
"\\&B<BIO_ssl_copy_session_id()> copies an SSL session id between BIO chains " |
| 236 |
"B<from> and B<to>. It does this by locating the SSL BIOs in each chain and " |
| 237 |
"calling B<SSL_copy_session_id()> on the internal SSL pointer." |
| 238 |
msgstr "" |
| 239 |
|
| 240 |
#. type: Plain text |
| 241 |
#: archlinux debian-trixie debian-unstable |
| 242 |
msgid "" |
| 243 |
"\\&B<BIO_ssl_shutdown()> closes down an SSL connection on BIO chain B<bio>. " |
| 244 |
"It does this by locating the SSL BIO in the chain and calling " |
| 245 |
"B<SSL_shutdown()> on its internal SSL pointer." |
| 246 |
msgstr "" |
| 247 |
|
| 248 |
#. type: Plain text |
| 249 |
#: archlinux debian-trixie debian-unstable |
| 250 |
msgid "" |
| 251 |
"\\&B<BIO_do_handshake()> attempts to complete an SSL handshake on the " |
| 252 |
"supplied BIO and establish the SSL connection. For non-SSL BIOs the " |
| 253 |
"connection is done typically at TCP level. If domain name resolution yields " |
| 254 |
"multiple IP addresses all of them are tried after B<connect()> failures. " |
| 255 |
"The function returns 1 if the connection was established successfully. A " |
| 256 |
"zero or negative value is returned if the connection could not be " |
| 257 |
"established. The call B<BIO_should_retry()> should be used for nonblocking " |
| 258 |
"connect BIOs to determine if the call should be retried. If a connection " |
| 259 |
"has already been established this call has no effect." |
| 260 |
msgstr "" |
| 261 |
|
| 262 |
#. type: IX |
| 263 |
#: archlinux debian-trixie debian-unstable |
| 264 |
#, no-wrap |
| 265 |
msgid "NOTES" |
| 266 |
msgstr "" |
| 267 |
|
| 268 |
#. type: Plain text |
| 269 |
#: archlinux debian-trixie debian-unstable |
| 270 |
msgid "" |
| 271 |
"SSL BIOs are exceptional in that if the underlying transport is non blocking " |
| 272 |
"they can still request a retry in exceptional circumstances. Specifically " |
| 273 |
"this will happen if a session renegotiation takes place during a " |
| 274 |
"B<BIO_read_ex()> operation, one case where this happens is when step up " |
| 275 |
"occurs." |
| 276 |
msgstr "" |
| 277 |
|
| 278 |
#. type: Plain text |
| 279 |
#: archlinux debian-trixie debian-unstable |
| 280 |
msgid "" |
| 281 |
"The SSL flag SSL_AUTO_RETRY can be set to disable this behaviour. That is " |
| 282 |
"when this flag is set an SSL BIO using a blocking transport will never " |
| 283 |
"request a retry." |
| 284 |
msgstr "" |
| 285 |
|
| 286 |
#. type: Plain text |
| 287 |
#: archlinux debian-trixie debian-unstable |
| 288 |
msgid "" |
| 289 |
"Since unknown B<BIO_ctrl()> operations are sent through filter BIOs the " |
| 290 |
"servers name and port can be set using B<BIO_set_host()> on the BIO returned " |
| 291 |
"by B<BIO_new_ssl_connect()> without having to locate the connect BIO first." |
| 292 |
msgstr "" |
| 293 |
|
| 294 |
#. type: Plain text |
| 295 |
#: archlinux debian-trixie debian-unstable |
| 296 |
msgid "" |
| 297 |
"Applications do not have to call B<BIO_do_handshake()> but may wish to do so " |
| 298 |
"to separate the handshake process from other I/O processing." |
| 299 |
msgstr "" |
| 300 |
|
| 301 |
#. type: Plain text |
| 302 |
#: archlinux debian-trixie debian-unstable |
| 303 |
msgid "" |
| 304 |
"\\&B<BIO_set_ssl()>, B<BIO_get_ssl()>, B<BIO_set_ssl_mode()>, " |
| 305 |
"\\&B<BIO_set_ssl_renegotiate_bytes()>, B<BIO_set_ssl_renegotiate_timeout()>, " |
| 306 |
"\\&B<BIO_get_num_renegotiates()>, and B<BIO_do_handshake()> are implemented " |
| 307 |
"as macros." |
| 308 |
msgstr "" |
| 309 |
|
| 310 |
#. type: Plain text |
| 311 |
#: archlinux debian-trixie debian-unstable |
| 312 |
msgid "" |
| 313 |
"\\&B<BIO_ssl_copy_session_id()> is not currently supported on QUIC SSL " |
| 314 |
"objects and fails if called on such an object." |
| 315 |
msgstr "" |
| 316 |
|
| 317 |
#. type: IX |
| 318 |
#: archlinux debian-trixie debian-unstable |
| 319 |
#, no-wrap |
| 320 |
msgid "RETURN VALUES" |
| 321 |
msgstr "" |
| 322 |
|
| 323 |
#. type: Plain text |
| 324 |
#: archlinux debian-trixie debian-unstable |
| 325 |
msgid "\\&B<BIO_f_ssl()> returns the SSL B<BIO_METHOD> structure." |
| 326 |
msgstr "" |
| 327 |
|
| 328 |
#. type: Plain text |
| 329 |
#: archlinux debian-trixie debian-unstable |
| 330 |
msgid "" |
| 331 |
"\\&B<BIO_set_ssl()>, B<BIO_get_ssl()>, B<BIO_set_ssl_mode()>, " |
| 332 |
"B<BIO_set_ssl_renegotiate_bytes()>, \\&B<BIO_set_ssl_renegotiate_timeout()> " |
| 333 |
"and B<BIO_get_num_renegotiates()> return 1 on success or a value which is " |
| 334 |
"less than or equal to 0 if an error occurred." |
| 335 |
msgstr "" |
| 336 |
|
| 337 |
#. type: Plain text |
| 338 |
#: archlinux debian-trixie debian-unstable |
| 339 |
msgid "" |
| 340 |
"\\&B<BIO_new_ssl()>, B<BIO_new_ssl_connect()> and " |
| 341 |
"B<BIO_new_buffer_ssl_connect()> return a valid B<BIO> structure on success " |
| 342 |
"or B<NULL> if an error occurred." |
| 343 |
msgstr "" |
| 344 |
|
| 345 |
#. type: Plain text |
| 346 |
#: archlinux debian-trixie debian-unstable |
| 347 |
msgid "" |
| 348 |
"\\&B<BIO_ssl_copy_session_id()> returns 1 on success or 0 on error, or if " |
| 349 |
"called on a QUIC SSL object." |
| 350 |
msgstr "" |
| 351 |
|
| 352 |
#. type: Plain text |
| 353 |
#: archlinux debian-trixie debian-unstable |
| 354 |
msgid "" |
| 355 |
"\\&B<BIO_do_handshake()> returns 1 if the connection was established " |
| 356 |
"successfully. A zero or negative value is returned if the connection could " |
| 357 |
"not be established." |
| 358 |
msgstr "" |
| 359 |
|
| 360 |
#. type: IX |
| 361 |
#: archlinux debian-trixie debian-unstable |
| 362 |
#, no-wrap |
| 363 |
msgid "EXAMPLES" |
| 364 |
msgstr "" |
| 365 |
|
| 366 |
#. type: Plain text |
| 367 |
#: archlinux debian-trixie debian-unstable |
| 368 |
msgid "" |
| 369 |
"This SSL/TLS client example attempts to retrieve a page from an SSL/TLS web " |
| 370 |
"server. The I/O routines are identical to those of the unencrypted example " |
| 371 |
"in B<BIO_s_connect>\\|(3)." |
| 372 |
msgstr "" |
| 373 |
|
| 374 |
#. type: Plain text |
| 375 |
#: archlinux debian-trixie debian-unstable |
| 376 |
#, no-wrap |
| 377 |
msgid "" |
| 378 |
"\\& BIO *sbio, *out;\n" |
| 379 |
"\\& int len;\n" |
| 380 |
"\\& char tmpbuf[1024];\n" |
| 381 |
"\\& SSL_CTX *ctx;\n" |
| 382 |
"\\& SSL *ssl;\n" |
| 383 |
"\\&\n" |
| 384 |
"\\& /* XXX Seed the PRNG if needed. */\n" |
| 385 |
"\\&\n" |
| 386 |
"\\& ctx = SSL_CTX_new(TLS_client_method());\n" |
| 387 |
"\\&\n" |
| 388 |
"\\& /* XXX Set verify paths and mode here. */\n" |
| 389 |
"\\&\n" |
| 390 |
"\\& sbio = BIO_new_ssl_connect(ctx);\n" |
| 391 |
"\\& BIO_get_ssl(sbio, &ssl);\n" |
| 392 |
"\\& if (ssl == NULL) {\n" |
| 393 |
"\\& fprintf(stderr, \"Can\\*(Aqt locate SSL pointer\\en\");\n" |
| 394 |
"\\& ERR_print_errors_fp(stderr);\n" |
| 395 |
"\\& exit(1);\n" |
| 396 |
"\\& }\n" |
| 397 |
"\\&\n" |
| 398 |
"\\& /* XXX We might want to do other things with ssl here */\n" |
| 399 |
"\\&\n" |
| 400 |
"\\& /* An empty host part means the loopback address */\n" |
| 401 |
"\\& BIO_set_conn_hostname(sbio, \":https\");\n" |
| 402 |
"\\&\n" |
| 403 |
"\\& out = BIO_new_fp(stdout, BIO_NOCLOSE);\n" |
| 404 |
"\\& if (BIO_do_connect(sbio) E<lt>= 0) {\n" |
| 405 |
"\\& fprintf(stderr, \"Error connecting to server\\en\");\n" |
| 406 |
"\\& ERR_print_errors_fp(stderr);\n" |
| 407 |
"\\& exit(1);\n" |
| 408 |
"\\& }\n" |
| 409 |
"\\&\n" |
| 410 |
"\\& /* XXX Could examine ssl here to get connection info */\n" |
| 411 |
"\\&\n" |
| 412 |
"\\& BIO_puts(sbio, \"GET / HTTP/1.0\\en\\en\");\n" |
| 413 |
"\\& for (;;) {\n" |
| 414 |
"\\& len = BIO_read(sbio, tmpbuf, 1024);\n" |
| 415 |
"\\& if (len E<lt>= 0)\n" |
| 416 |
"\\& break;\n" |
| 417 |
"\\& BIO_write(out, tmpbuf, len);\n" |
| 418 |
"\\& }\n" |
| 419 |
"\\& BIO_free_all(sbio);\n" |
| 420 |
"\\& BIO_free(out);\n" |
| 421 |
msgstr "" |
| 422 |
|
| 423 |
#. type: Plain text |
| 424 |
#: archlinux debian-trixie debian-unstable |
| 425 |
msgid "" |
| 426 |
"Here is a simple server example. It makes use of a buffering BIO to allow " |
| 427 |
"lines to be read from the SSL BIO using BIO_gets. It creates a pseudo web " |
| 428 |
"page containing the actual request from a client and also echoes the request " |
| 429 |
"to standard output." |
| 430 |
msgstr "" |
| 431 |
|
| 432 |
#. type: Plain text |
| 433 |
#: archlinux debian-trixie debian-unstable |
| 434 |
#, no-wrap |
| 435 |
msgid "" |
| 436 |
"\\& BIO *sbio, *bbio, *acpt, *out;\n" |
| 437 |
"\\& int len;\n" |
| 438 |
"\\& char tmpbuf[1024];\n" |
| 439 |
"\\& SSL_CTX *ctx;\n" |
| 440 |
"\\& SSL *ssl;\n" |
| 441 |
"\\&\n" |
| 442 |
"\\& /* XXX Seed the PRNG if needed. */\n" |
| 443 |
"\\&\n" |
| 444 |
"\\& ctx = SSL_CTX_new(TLS_server_method());\n" |
| 445 |
"\\& if (!SSL_CTX_use_certificate_file(ctx, \"server.pem\", SSL_FILETYPE_PEM)\n" |
| 446 |
"\\& || !SSL_CTX_use_PrivateKey_file(ctx, \"server.pem\", SSL_FILETYPE_PEM)\n" |
| 447 |
"\\& || !SSL_CTX_check_private_key(ctx)) {\n" |
| 448 |
"\\& fprintf(stderr, \"Error setting up SSL_CTX\\en\");\n" |
| 449 |
"\\& ERR_print_errors_fp(stderr);\n" |
| 450 |
"\\& exit(1);\n" |
| 451 |
"\\& }\n" |
| 452 |
"\\&\n" |
| 453 |
"\\& /* XXX Other things like set verify locations, EDH temp callbacks. */\n" |
| 454 |
"\\&\n" |
| 455 |
"\\& /* New SSL BIO setup as server */\n" |
| 456 |
"\\& sbio = BIO_new_ssl(ctx, 0);\n" |
| 457 |
"\\& BIO_get_ssl(sbio, &ssl);\n" |
| 458 |
"\\& if (ssl == NULL) {\n" |
| 459 |
"\\& fprintf(stderr, \"Can\\*(Aqt locate SSL pointer\\en\");\n" |
| 460 |
"\\& ERR_print_errors_fp(stderr);\n" |
| 461 |
"\\& exit(1);\n" |
| 462 |
"\\& }\n" |
| 463 |
"\\&\n" |
| 464 |
"\\& bbio = BIO_new(BIO_f_buffer());\n" |
| 465 |
"\\& sbio = BIO_push(bbio, sbio);\n" |
| 466 |
"\\& acpt = BIO_new_accept(\"4433\");\n" |
| 467 |
"\\&\n" |
| 468 |
"\\& /*\n" |
| 469 |
"\\& * By doing this when a new connection is established\n" |
| 470 |
"\\& * we automatically have sbio inserted into it. The\n" |
| 471 |
"\\& * BIO chain is now \\*(Aqswallowed\\*(Aq by the accept BIO and\n" |
| 472 |
"\\& * will be freed when the accept BIO is freed.\n" |
| 473 |
"\\& */\n" |
| 474 |
"\\& BIO_set_accept_bios(acpt, sbio);\n" |
| 475 |
"\\& out = BIO_new_fp(stdout, BIO_NOCLOSE);\n" |
| 476 |
"\\&\n" |
| 477 |
"\\& /* First call to BIO_do_accept() sets up accept BIO */\n" |
| 478 |
"\\& if (BIO_do_accept(acpt) E<lt>= 0) {\n" |
| 479 |
"\\& fprintf(stderr, \"Error setting up accept BIO\\en\");\n" |
| 480 |
"\\& ERR_print_errors_fp(stderr);\n" |
| 481 |
"\\& exit(1);\n" |
| 482 |
"\\& }\n" |
| 483 |
msgstr "" |
| 484 |
|
| 485 |
#. type: Plain text |
| 486 |
#: archlinux debian-trixie debian-unstable |
| 487 |
#, no-wrap |
| 488 |
msgid "" |
| 489 |
"/* Second call to B<BIO_do_accept()> waits for incoming connection */\n" |
| 490 |
" if (BIO_do_accept(acpt) E<lt>= 0) {\n" |
| 491 |
" fprintf(stderr, \"Error accepting connection\\en\");\n" |
| 492 |
" ERR_print_errors_fp(stderr);\n" |
| 493 |
" B<exit>\\|(1);\n" |
| 494 |
" }\n" |
| 495 |
msgstr "" |
| 496 |
|
| 497 |
#. type: Plain text |
| 498 |
#: archlinux debian-trixie debian-unstable |
| 499 |
#, no-wrap |
| 500 |
msgid "" |
| 501 |
"\\& /* We only want one connection so remove and free accept BIO */\n" |
| 502 |
"\\& sbio = BIO_pop(acpt);\n" |
| 503 |
"\\& BIO_free_all(acpt);\n" |
| 504 |
"\\&\n" |
| 505 |
"\\& if (BIO_do_handshake(sbio) E<lt>= 0) {\n" |
| 506 |
"\\& fprintf(stderr, \"Error in SSL handshake\\en\");\n" |
| 507 |
"\\& ERR_print_errors_fp(stderr);\n" |
| 508 |
"\\& exit(1);\n" |
| 509 |
"\\& }\n" |
| 510 |
"\\&\n" |
| 511 |
"\\& BIO_puts(sbio, \"HTTP/1.0 200 OK\\er\\enContent-type: text/plain\\er\\en\\er\\en\");\n" |
| 512 |
"\\& BIO_puts(sbio, \"\\er\\enConnection Established\\er\\enRequest headers:\\er\\en\");\n" |
| 513 |
"\\& BIO_puts(sbio, \"--------------------------------------------------\\er\\en\");\n" |
| 514 |
"\\&\n" |
| 515 |
"\\& for (;;) {\n" |
| 516 |
"\\& len = BIO_gets(sbio, tmpbuf, 1024);\n" |
| 517 |
"\\& if (len E<lt>= 0)\n" |
| 518 |
"\\& break;\n" |
| 519 |
"\\& BIO_write(sbio, tmpbuf, len);\n" |
| 520 |
"\\& BIO_write(out, tmpbuf, len);\n" |
| 521 |
"\\& /* Look for blank line signifying end of headers*/\n" |
| 522 |
"\\& if (tmpbuf[0] == \\*(Aq\\er\\*(Aq || tmpbuf[0] == \\*(Aq\\en\\*(Aq)\n" |
| 523 |
"\\& break;\n" |
| 524 |
"\\& }\n" |
| 525 |
"\\&\n" |
| 526 |
"\\& BIO_puts(sbio, \"--------------------------------------------------\\er\\en\");\n" |
| 527 |
"\\& BIO_puts(sbio, \"\\er\\en\");\n" |
| 528 |
"\\& BIO_flush(sbio);\n" |
| 529 |
"\\& BIO_free_all(sbio);\n" |
| 530 |
msgstr "" |
| 531 |
|
| 532 |
#. type: IX |
| 533 |
#: archlinux debian-trixie debian-unstable |
| 534 |
#, no-wrap |
| 535 |
msgid "HISTORY" |
| 536 |
msgstr "" |
| 537 |
|
| 538 |
#. type: Plain text |
| 539 |
#: archlinux debian-trixie debian-unstable |
| 540 |
msgid "" |
| 541 |
"In OpenSSL before 1.0.0 the B<BIO_pop()> call was handled incorrectly, the I/" |
| 542 |
"O BIO reference count was incorrectly incremented (instead of decremented) " |
| 543 |
"and dissociated with the SSL BIO even if the SSL BIO was not explicitly " |
| 544 |
"being popped (e.g. a pop higher up the chain). Applications which included " |
| 545 |
"workarounds for this bug (e.g. freeing BIOs more than once) should be " |
| 546 |
"modified to handle this fix or they may free up an already freed BIO." |
| 547 |
msgstr "" |
| 548 |
|
| 549 |
#. type: IX |
| 550 |
#: archlinux debian-trixie debian-unstable |
| 551 |
#, no-wrap |
| 552 |
msgid "COPYRIGHT" |
| 553 |
msgstr "" |
| 554 |
|
| 555 |
#. type: Plain text |
| 556 |
#: archlinux debian-trixie debian-unstable |
| 557 |
msgid "Copyright 2000-2023 The OpenSSL Project Authors. All Rights Reserved." |
| 558 |
msgstr "" |
| 559 |
|
| 560 |
#. type: Plain text |
| 561 |
#: archlinux debian-trixie debian-unstable |
| 562 |
msgid "" |
| 563 |
"Licensed under the Apache License 2.0 (the \"License\"). You may not use " |
| 564 |
"this file except in compliance with the License. You can obtain a copy in " |
| 565 |
"the file LICENSE in the source distribution or at E<lt>https://" |
| 566 |
"www.openssl.org/source/license.htmlE<gt>." |
| 567 |
msgstr "" |
| 568 |
|
| 569 |
#. ======================================================================== |
| 570 |
#. type: IX |
| 571 |
#: debian-trixie debian-unstable |
| 572 |
#, no-wrap |
| 573 |
msgid "BIO_F_SSL 3SSL" |
| 574 |
msgstr "" |
| 575 |
|
| 576 |
#. type: TH |
| 577 |
#: debian-trixie |
| 578 |
#, no-wrap |
| 579 |
msgid "3.5.6" |
| 580 |
msgstr "" |