webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Macros | Functions
pem_lib.c File Reference
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <openssl/base64.h>
#include <openssl/buf.h>
#include <openssl/des.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/mem.h>
#include <openssl/obj.h>
#include <openssl/pem.h>
#include <openssl/rand.h>
#include <openssl/x509.h>

Macros

#define MIN_LENGTH   4
 

Functions

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, const char *name, const char *header, const unsigned char *data, long len)
 
int PEM_write_bio (BIO *bp, const char *name, const char *header, const 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)
 
int PEM_def_callback (char *buf, int size, int rwflag, void *userdata)
 

Macro Definition Documentation

◆ MIN_LENGTH

#define MIN_LENGTH   4

Function Documentation

◆ PEM_ASN1_read()

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

◆ PEM_ASN1_write()

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 
)

◆ PEM_ASN1_write_bio()

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 
)

◆ PEM_bytes_read_bio()

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

◆ PEM_def_callback()

int PEM_def_callback ( char *  buf,
int  size,
int  rwflag,
void userdata 
)

◆ PEM_dek_info()

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

◆ PEM_do_header()

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

◆ PEM_get_EVP_CIPHER_INFO()

int PEM_get_EVP_CIPHER_INFO ( char *  header,
EVP_CIPHER_INFO cipher 
)

◆ PEM_proc_type()

void PEM_proc_type ( char *  buf,
int  type 
)

◆ PEM_read()

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

◆ PEM_read_bio()

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

◆ PEM_write()

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

◆ PEM_write_bio()

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