OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
pem_lib.c File Reference
#include <stdio.h>
#include <ctype.h>
#include "cryptlib.h"
#include <openssl/buffer.h>
#include <openssl/objects.h>
#include <openssl/evp.h>
#include <openssl/rand.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
#include <openssl/pkcs12.h>
#include "asn1_locl.h"
#include <openssl/des.h>
#include <openssl/engine.h>

Go to the source code of this file.

Macros

#define MIN_LENGTH   4
 

Functions

int pem_check_suffix (const char *pem_str, const char *suffix)
 
int PEM_def_callback (char *buf, int num, int w, void *key)
 
void PEM_proc_type (char *buf, int type)
 
void PEM_dek_info (char *buf, const char *type, int len, char *str)
 
voidPEM_ASN1_read (d2i_of_void *d2i, const char *name, FILE *fp, void **x, pem_password_cb *cb, void *u)
 
int PEM_bytes_read_bio (unsigned char **pdata, long *plen, char **pnm, const char *name, BIO *bp, pem_password_cb *cb, void *u)
 
int PEM_ASN1_write (i2d_of_void *i2d, const char *name, FILE *fp, void *x, const EVP_CIPHER *enc, unsigned char *kstr, int klen, pem_password_cb *callback, void *u)
 
int PEM_ASN1_write_bio (i2d_of_void *i2d, const char *name, BIO *bp, void *x, const EVP_CIPHER *enc, unsigned char *kstr, int klen, pem_password_cb *callback, void *u)
 
int PEM_do_header (EVP_CIPHER_INFO *cipher, unsigned char *data, long *plen, pem_password_cb *callback, void *u)
 
int PEM_get_EVP_CIPHER_INFO (char *header, EVP_CIPHER_INFO *cipher)
 
int PEM_write (FILE *fp, char *name, char *header, unsigned char *data, long len)
 
int PEM_write_bio (BIO *bp, const char *name, char *header, unsigned char *data, long len)
 
int PEM_read (FILE *fp, char **name, char **header, unsigned char **data, long *len)
 
int PEM_read_bio (BIO *bp, char **name, char **header, unsigned char **data, long *len)
 

Variables

const char PEM_version [] ="PEM" OPENSSL_VERSION_PTEXT
 

Macro Definition Documentation

#define MIN_LENGTH   4

Definition at line 79 of file pem_lib.c.

Function Documentation

void* PEM_ASN1_read ( d2i_of_void *  d2i,
const char *  name,
FILE *  fp,
void **  x,
pem_password_cb cb,
void u 
)

Definition at line 167 of file pem_lib.c.

int PEM_ASN1_write ( i2d_of_void *  i2d,
const char *  name,
FILE *  fp,
void x,
const EVP_CIPHER enc,
unsigned char *  kstr,
int  klen,
pem_password_cb callback,
void u 
)

Definition at line 314 of file pem_lib.c.

int PEM_ASN1_write_bio ( i2d_of_void *  i2d,
const char *  name,
BIO bp,
void x,
const EVP_CIPHER enc,
unsigned char *  kstr,
int  klen,
pem_password_cb callback,
void u 
)

Definition at line 333 of file pem_lib.c.

int PEM_bytes_read_bio ( unsigned char **  pdata,
long *  plen,
char **  pnm,
const char *  name,
BIO bp,
pem_password_cb cb,
void u 
)

Definition at line 273 of file pem_lib.c.

int pem_check_suffix ( const char *  pem_str,
const char *  suffix 
)

Definition at line 837 of file pem_lib.c.

int PEM_def_callback ( char *  buf,
int  num,
int  w,
void key 
)

Definition at line 85 of file pem_lib.c.

void PEM_dek_info ( char *  buf,
const char *  type,
int  len,
char *  str 
)

Definition at line 145 of file pem_lib.c.

int PEM_do_header ( EVP_CIPHER_INFO cipher,
unsigned char *  data,
long *  plen,
pem_password_cb callback,
void u 
)

Definition at line 436 of file pem_lib.c.

int PEM_get_EVP_CIPHER_INFO ( char *  header,
EVP_CIPHER_INFO cipher 
)

Definition at line 483 of file pem_lib.c.

void PEM_proc_type ( char *  buf,
int  type 
)

Definition at line 127 of file pem_lib.c.

int PEM_read ( FILE *  fp,
char **  name,
char **  header,
unsigned char **  data,
long *  len 
)

Definition at line 649 of file pem_lib.c.

int PEM_read_bio ( BIO bp,
char **  name,
char **  header,
unsigned char **  data,
long *  len 
)

Definition at line 667 of file pem_lib.c.

int PEM_write ( FILE *  fp,
char *  name,
char *  header,
unsigned char *  data,
long  len 
)

Definition at line 569 of file pem_lib.c.

int PEM_write_bio ( BIO bp,
const char *  name,
char *  header,
unsigned char *  data,
long  len 
)

Definition at line 587 of file pem_lib.c.

Variable Documentation

const char PEM_version[] ="PEM" OPENSSL_VERSION_PTEXT

Definition at line 77 of file pem_lib.c.