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>
#include "../internal.h"
Include dependency graph for pem_lib.c:

Go to the source code of this file.

Macros

#define MIN_LENGTH   4
 

Functions

static int check_pem (const char *nm, const char *name)
 
static const EVP_CIPHERcipher_by_name (const char *name)
 
static int load_iv (char **fromp, unsigned char *to, int num)
 
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_def_callback (char *buf, int size, int rwflag, void *userdata)
 
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)
 
void PEM_proc_type (char *buf, int type)
 
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, 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)
 

Macro Definition Documentation

◆ MIN_LENGTH

#define MIN_LENGTH   4

Definition at line 77 of file pem_lib.c.

Function Documentation

◆ check_pem()

static int check_pem ( const char *  nm,
const char *  name 
)
static

Definition at line 133 of file pem_lib.c.

◆ cipher_by_name()

static const EVP_CIPHER* cipher_by_name ( const char *  name)
static

Definition at line 186 of file pem_lib.c.

◆ load_iv()

static int load_iv ( char **  fromp,
unsigned char *  to,
int  num 
)
static

Definition at line 478 of file pem_lib.c.

◆ PEM_ASN1_read()

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

Definition at line 120 of file pem_lib.c.

◆ 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 
)

Definition at line 253 of file pem_lib.c.

◆ 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 
)

Definition at line 267 of file pem_lib.c.

◆ 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 
)

Definition at line 206 of file pem_lib.c.

◆ PEM_def_callback()

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

Definition at line 758 of file pem_lib.c.

◆ PEM_dek_info()

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

Definition at line 100 of file pem_lib.c.

◆ PEM_do_header()

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

Definition at line 365 of file pem_lib.c.

◆ PEM_get_EVP_CIPHER_INFO()

int PEM_get_EVP_CIPHER_INFO ( char *  header,
EVP_CIPHER_INFO cipher 
)

Definition at line 411 of file pem_lib.c.

◆ PEM_proc_type()

void PEM_proc_type ( char *  buf,
int  type 
)

Definition at line 82 of file pem_lib.c.

◆ PEM_read()

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

Definition at line 575 of file pem_lib.c.

◆ PEM_read_bio()

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

Definition at line 588 of file pem_lib.c.

◆ PEM_write()

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

Definition at line 506 of file pem_lib.c.

◆ PEM_write_bio()

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

Definition at line 519 of file pem_lib.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:25