BIO_F_BASE64(3ssl) OpenSSL BIO_F_BASE64(3ssl) BIO_f_base64 - BIO 64 #include #include const BIO_METHOD *BIO_f_base64(void); BIO_f_base64() BIO 64. BIO . BIOs 64 BIO_gets() BIO_puts(). 64 . BIO_FLAGS_BASE64_NO_NL. 64 1024 BIO_FLAGS_BASE64_NO_NL. ( ) . BIO_FLAGS_BASE64_NO_NL 64 ( ) 1024 . 1024 ( ) ( ) 64 . 64 (- EVP_DecodeUpdate(3)) 4 64 ( 64 ). BIO_read(3) 0 ( ). BIO BIO_should_read(3) BIO_set_mem_eof_return(3). BIO_flush() BIO 64 : BIO. BIO_FLAGS_BASE64_NO_NL BIO_set_flags(). . . 64 . BIO_f_base64() BIO 64. "Hello World\n" 64 : BIO *bio, *b64; char message[] = "Hello World \n"; b64 = BIO_new(BIO_f_base64()); bio = BIO_new_fp(stdout, BIO_NOCLOSE); BIO_push(b64, bio); BIO_write(b64, message, strlen(message)); BIO_flush(b64); BIO_free_all(b64); 64 : BIO *bio, *b64, *bio_out; char inbuf[512]; int inlen; b64 = BIO_new(BIO_f_base64()); bio = BIO_new_fp(stdin, BIO_NOCLOSE); bio_out = BIO_new_fp(stdout, BIO_NOCLOSE); BIO_push(b64, bio); while ((inlen = BIO_read(b64, inbuf, 512)) > 0) BIO_write(bio_out, inbuf, inlen); BIO_flush(bio_out); BIO_free_all(b64); (-) base64 4 . base64 PEM MIME . . BIO (EOF) ( MIME). BIO_read(3) -1 . BIO_read(3), BIO_should_read(3), BIO_set_mem_eof_return(3), EVP_DecodeUpdate(3). 2000-2024 OpenSSL. . Apache 2.0 ( ""). . LICENSE . 3 . . : . 3.6.2 7 2026 BIO_F_BASE64(3ssl)