#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) |
void * | PEM_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 |
void* PEM_ASN1_read | ( | d2i_of_void * | d2i, |
const char * | name, | ||
FILE * | fp, | ||
void ** | x, | ||
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_bytes_read_bio | ( | unsigned char ** | pdata, |
long * | plen, | ||
char ** | pnm, | ||
const char * | name, | ||
BIO * | bp, | ||
pem_password_cb * | cb, | ||
void * | u | ||
) |
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_dek_info | ( | char * | buf, |
const char * | type, | ||
int | len, | ||
char * | str | ||
) |
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_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_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 | ||
) |