SMIME_TEXT(3)

πŸ“¦ version 4.1.0, in opensuse-leap 16.0

✨ NAME ✨

okay bestie, welcome to SMIME_TEXT(3) from the Library Functions Manual β€” this is all about SMIME_text β€” remove text/plain MIME headers. that's the whole assignment, and it ate. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

#include <openssl/asn1.h>

int
SMIME_text(BIO *in_bio, BIO *out_bio);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the way that SMIME_text() works is genuinely iconic: it reads MIME headers from in_bio, checks that the content type is "text/plain", discards the MIME headers, and copies the text that follows the headers from in_bio to out_bio. no cap, that's the whole flow. ✨

🌸 RETURN VALUES 🌸

SMIME_text() returns 1 on success, or 0 if memory allocation, reading the input, or parsing the MIME headers fails, if there is no "content-type" header, or if the content type is not "text/plain". so yeah, zero is the β€œnope, something did not slay” answer. 😭

🫢 SEE ALSO 🫢

πŸ’œ HISTORY πŸ’œ

SMIME_text() first appeared in OpenSSL 1.0.0 and has been available since OpenBSD 4.9. look at her, little historic main character. πŸ‘‘

πŸ’€ CAVEATS πŸ’€

bestie, important: SMIME_text() does not support non-blocking BIOs. periodt. πŸ’€

πŸ’– okay bye bestie β€” this page is from Debian, dated December 14, 2021, and the manual is SMIME_TEXT(3). mwah! πŸ’–

πŸ“¦ where this page comes from