OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
ca.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <openssl/conf.h>
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/bn.h>
#include <openssl/txt_db.h>
#include <openssl/evp.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include <openssl/objects.h>
#include <openssl/ocsp.h>
#include <openssl/pem.h>
#include <sys/file.h>
#include "apps.h"

Go to the source code of this file.

Macros

#define F_OK   0
 
#define X_OK   1
 
#define W_OK   2
 
#define R_OK   4
 
#define PROG   ca_main
 
#define BASE_SECTION   "ca"
 
#define CONFIG_FILE   "openssl.cnf"
 
#define ENV_DEFAULT_CA   "default_ca"
 
#define STRING_MASK   "string_mask"
 
#define UTF8_IN   "utf8"
 
#define ENV_DIR   "dir"
 
#define ENV_CERTS   "certs"
 
#define ENV_CRL_DIR   "crl_dir"
 
#define ENV_CA_DB   "CA_DB"
 
#define ENV_NEW_CERTS_DIR   "new_certs_dir"
 
#define ENV_CERTIFICATE   "certificate"
 
#define ENV_SERIAL   "serial"
 
#define ENV_CRLNUMBER   "crlnumber"
 
#define ENV_CRL   "crl"
 
#define ENV_PRIVATE_KEY   "private_key"
 
#define ENV_RANDFILE   "RANDFILE"
 
#define ENV_DEFAULT_DAYS   "default_days"
 
#define ENV_DEFAULT_STARTDATE   "default_startdate"
 
#define ENV_DEFAULT_ENDDATE   "default_enddate"
 
#define ENV_DEFAULT_CRL_DAYS   "default_crl_days"
 
#define ENV_DEFAULT_CRL_HOURS   "default_crl_hours"
 
#define ENV_DEFAULT_MD   "default_md"
 
#define ENV_DEFAULT_EMAIL_DN   "email_in_dn"
 
#define ENV_PRESERVE   "preserve"
 
#define ENV_POLICY   "policy"
 
#define ENV_EXTENSIONS   "x509_extensions"
 
#define ENV_CRLEXT   "crl_extensions"
 
#define ENV_MSIE_HACK   "msie_hack"
 
#define ENV_NAMEOPT   "name_opt"
 
#define ENV_CERTOPT   "cert_opt"
 
#define ENV_EXTCOPY   "copy_extensions"
 
#define ENV_UNIQUE_SUBJECT   "unique_subject"
 
#define ENV_DATABASE   "database"
 
#define REV_NONE   0 /* No addditional information */
 
#define REV_CRL_REASON   1 /* Value is CRL reason code */
 
#define REV_HOLD   2 /* Value is hold instruction */
 
#define REV_KEY_COMPROMISE   3 /* Value is cert key compromise time */
 
#define REV_CA_COMPROMISE   4 /* Value is CA key compromise time */
 
#define BSIZE   256
 
#define NUM_REASONS   (sizeof(crl_reasons) / sizeof(char *))
 

Functions

char * make_revocation_str (int rev_type, char *rev_arg)
 
int make_revoked (X509_REVOKED *rev, const char *str)
 
int old_entry_print (BIO *bp, ASN1_OBJECT *obj, ASN1_STRING *str)
 
int MAIN (int, char **)
 
int unpack_revinfo (ASN1_TIME **prevtm, int *preason, ASN1_OBJECT **phold, ASN1_GENERALIZEDTIME **pinvtm, const char *str)
 

Macro Definition Documentation

#define BASE_SECTION   "ca"

Definition at line 102 of file ca.c.

#define BSIZE   256
#define CONFIG_FILE   "openssl.cnf"

Definition at line 103 of file ca.c.

#define ENV_CA_DB   "CA_DB"

Definition at line 113 of file ca.c.

#define ENV_CERTIFICATE   "certificate"

Definition at line 115 of file ca.c.

#define ENV_CERTOPT   "cert_opt"

Definition at line 134 of file ca.c.

#define ENV_CERTS   "certs"

Definition at line 111 of file ca.c.

#define ENV_CRL   "crl"

Definition at line 118 of file ca.c.

#define ENV_CRL_DIR   "crl_dir"

Definition at line 112 of file ca.c.

#define ENV_CRLEXT   "crl_extensions"

Definition at line 131 of file ca.c.

#define ENV_CRLNUMBER   "crlnumber"

Definition at line 117 of file ca.c.

#define ENV_DATABASE   "database"

Definition at line 138 of file ca.c.

#define ENV_DEFAULT_CA   "default_ca"

Definition at line 105 of file ca.c.

#define ENV_DEFAULT_CRL_DAYS   "default_crl_days"

Definition at line 124 of file ca.c.

#define ENV_DEFAULT_CRL_HOURS   "default_crl_hours"

Definition at line 125 of file ca.c.

#define ENV_DEFAULT_DAYS   "default_days"

Definition at line 121 of file ca.c.

#define ENV_DEFAULT_EMAIL_DN   "email_in_dn"

Definition at line 127 of file ca.c.

#define ENV_DEFAULT_ENDDATE   "default_enddate"

Definition at line 123 of file ca.c.

#define ENV_DEFAULT_MD   "default_md"

Definition at line 126 of file ca.c.

#define ENV_DEFAULT_STARTDATE   "default_startdate"

Definition at line 122 of file ca.c.

#define ENV_DIR   "dir"

Definition at line 110 of file ca.c.

#define ENV_EXTCOPY   "copy_extensions"

Definition at line 135 of file ca.c.

#define ENV_EXTENSIONS   "x509_extensions"

Definition at line 130 of file ca.c.

#define ENV_MSIE_HACK   "msie_hack"

Definition at line 132 of file ca.c.

#define ENV_NAMEOPT   "name_opt"

Definition at line 133 of file ca.c.

#define ENV_NEW_CERTS_DIR   "new_certs_dir"

Definition at line 114 of file ca.c.

#define ENV_POLICY   "policy"

Definition at line 129 of file ca.c.

#define ENV_PRESERVE   "preserve"

Definition at line 128 of file ca.c.

#define ENV_PRIVATE_KEY   "private_key"

Definition at line 119 of file ca.c.

#define ENV_RANDFILE   "RANDFILE"

Definition at line 120 of file ca.c.

#define ENV_SERIAL   "serial"

Definition at line 116 of file ca.c.

#define ENV_UNIQUE_SUBJECT   "unique_subject"

Definition at line 136 of file ca.c.

#define F_OK   0

Definition at line 93 of file ca.c.

#define NUM_REASONS   (sizeof(crl_reasons) / sizeof(char *))

Definition at line 2704 of file ca.c.

#define PROG   ca_main

Definition at line 100 of file ca.c.

#define R_OK   4

Definition at line 96 of file ca.c.

#define REV_CA_COMPROMISE   4 /* Value is CA key compromise time */

Definition at line 146 of file ca.c.

#define REV_CRL_REASON   1 /* Value is CRL reason code */

Definition at line 143 of file ca.c.

#define REV_HOLD   2 /* Value is hold instruction */

Definition at line 144 of file ca.c.

#define REV_KEY_COMPROMISE   3 /* Value is cert key compromise time */

Definition at line 145 of file ca.c.

#define REV_NONE   0 /* No addditional information */

Definition at line 142 of file ca.c.

#define STRING_MASK   "string_mask"

Definition at line 107 of file ca.c.

#define UTF8_IN   "utf8"

Definition at line 108 of file ca.c.

#define W_OK   2

Definition at line 95 of file ca.c.

#define X_OK   1

Definition at line 94 of file ca.c.

Function Documentation

int MAIN ( int  argc,
char **  argv 
)

Definition at line 87 of file asn1pars.c.

char * make_revocation_str ( int  rev_type,
char *  rev_arg 
)

Definition at line 2714 of file ca.c.

int make_revoked ( X509_REVOKED rev,
const char *  str 
)

Definition at line 2811 of file ca.c.

int old_entry_print ( BIO bp,
ASN1_OBJECT obj,
ASN1_STRING str 
)

Definition at line 2865 of file ca.c.

int unpack_revinfo ( ASN1_TIME **  prevtm,
int *  preason,
ASN1_OBJECT **  phold,
ASN1_GENERALIZEDTIME **  pinvtm,
const char *  str 
)

Definition at line 2904 of file ca.c.