OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Functions
asn_mime.c File Reference
#include <stdio.h>
#include <ctype.h>
#include "cryptlib.h"
#include <openssl/rand.h>
#include <openssl/x509.h>
#include <openssl/asn1.h>
#include <openssl/asn1t.h>
#include "asn1_locl.h"

Go to the source code of this file.

Classes

struct  MIME_PARAM
 
struct  MIME_HEADER
 

Macros

#define MAX_SMLEN   1024
 
#define mime_debug(x)   /* x */
 
#define MIME_INVALID   0
 
#define MIME_START   1
 
#define MIME_TYPE   2
 
#define MIME_NAME   3
 
#define MIME_VALUE   4
 
#define MIME_QUOTE   5
 
#define MIME_COMMENT   6
 

Functions

int PEM_write_bio_ASN1_stream (BIO *out, ASN1_VALUE *val, BIO *in, int flags, const char *hdr, const ASN1_ITEM *it)
 
int SMIME_write_ASN1 (BIO *bio, ASN1_VALUE *val, BIO *data, int flags, int ctype_nid, int econt_nid, STACK_OF(X509_ALGOR)*mdalgs, const ASN1_ITEM *it)
 
ASN1_VALUESMIME_read_ASN1 (BIO *bio, BIO **bcont, const ASN1_ITEM *it)
 
int SMIME_crlf_copy (BIO *in, BIO *out, int flags)
 
int SMIME_text (BIO *in, BIO *out)
 

Macro Definition Documentation

#define MAX_SMLEN   1024
#define MIME_COMMENT   6

Definition at line 657 of file asn_mime.c.

#define mime_debug (   x)    /* x */
#define MIME_INVALID   0

Definition at line 651 of file asn_mime.c.

#define MIME_NAME   3

Definition at line 654 of file asn_mime.c.

#define MIME_QUOTE   5

Definition at line 656 of file asn_mime.c.

#define MIME_START   1

Definition at line 652 of file asn_mime.c.

#define MIME_TYPE   2

Definition at line 653 of file asn_mime.c.

#define MIME_VALUE   4

Definition at line 655 of file asn_mime.c.

Function Documentation

int PEM_write_bio_ASN1_stream ( BIO out,
ASN1_VALUE val,
BIO in,
int  flags,
const char *  hdr,
const ASN1_ITEM it 
)

Definition at line 171 of file asn_mime.c.

int SMIME_crlf_copy ( BIO in,
BIO out,
int  flags 
)

Definition at line 536 of file asn_mime.c.

ASN1_VALUE* SMIME_read_ASN1 ( BIO bio,
BIO **  bcont,
const ASN1_ITEM it 
)

Definition at line 432 of file asn_mime.c.

int SMIME_text ( BIO in,
BIO out 
)

Definition at line 574 of file asn_mime.c.

int SMIME_write_ASN1 ( BIO bio,
ASN1_VALUE val,
BIO data,
int  flags,
int  ctype_nid,
int  econt_nid,
STACK_OF(X509_ALGOR)*  mdalgs,
const ASN1_ITEM it 
)

Definition at line 278 of file asn_mime.c.