GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SMIME_READ_ASN1(3) FreeBSD Library Functions Manual SMIME_READ_ASN1(3)

SMIME_read_ASN1
generic S/MIME message parser

#include <openssl/asn1.h>

ASN1_VALUE *
SMIME_read_ASN1(BIO *in_bio, BIO **out_bio, const ASN1_ITEM *it);

SMIME_read_ASN1() reads a message in S/MIME format from in_bio.

If the message uses cleartext signing, the content is saved in a memory BIO which is written to *out_bio. Otherwise, *out_bio is set to NULL.

To support future functionality, if out_bio is not NULL, *out_bio should be initialized to NULL before calling SMIME_read_ASN1().

SMIME_read_ASN1() returns a newly allocated object of type it or NULL if an error occurred. The error can be obtained from ERR_get_error(3).

ASN1_item_d2i_bio(3), BIO_f_base64(3), BIO_new(3), SMIME_read_CMS(3), SMIME_read_PKCS7(3), SMIME_text(3)

SMIME_read_ASN1() first appeared in OpenSSL 0.9.8h and has been available since OpenBSD 4.5.

The MIME parser used by SMIME_read_ASN1() is somewhat primitive. While it will handle most S/MIME messages, more complex compound formats may not work.

The parser assumes that the structure is always base64 encoded, and it will not handle the case where it is in binary format or uses quoted printable format.

The use of a memory to hold the signed content limits the size of the message which can be processed due to memory restraints: a streaming single pass option should be available.

December 14, 2021 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.