---
name: "libressl-SMIME_text"
section: "3"
platform: "linux"
package: "libressl"
version: "4.4.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libressl-SMIME_text"
---

# libressl-SMIME\_text(3)

remove text/plain MIME headers

## NAME

**SMIME\_text** – remove text/plain MIME headers

## SYNOPSIS

Crypto Library (libcrypto, -lcrypto)

**#include \<openssl/asn1.h\>**

*int*\

**SMIME\_text**(*BIO \*in\_bio*, *BIO \*out\_bio*);

## DESCRIPTION

**SMIME\_text**() 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*.

## 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”.

## SEE ALSO

SMIME\_crlf\_copy(3), SMIME\_read\_CMS(3), SMIME\_read\_PKCS7(3), SMIME\_write\_CMS(3), SMIME\_write\_PKCS7(3)

## HISTORY

**SMIME\_text**() first appeared in OpenSSL 1.0.0 and has been available since OpenBSD 4.9.

## CAVEATS

**SMIME\_text**() does not support non-blocking BIOs.
