SMIME_TEXT(3)
β¨ 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
- opensuse-leap 16.0: libressl-devel-doc 4.1.0-bp160.1.1 Β· OpenSSL
- Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms