Expand description
BIO wrappers — MemBio, MemBioBuf<'a>, Bio.
BIOs are OpenSSL’s generic I/O abstraction. This module exposes three types:
-
MemBio— a writable, growable in-memory BIO (BIO_s_mem()). Used for encoding output (PEM, DER). Calldata()after writing to read the result as a&[u8]slice without copying. -
MemBioBuf<'a>— a read-only view of a caller-supplied slice (BIO_new_mem_buf()). Zero-copy input path for PEM parsing. -
Bio— shared ownership wrapper around a rawBIO*. Used when OpenSSL needs aBIOthat outlives the immediate call (e.g. TLSSSL_set_bio).