OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Functions
ocsp_ht.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "e_os.h"
#include <openssl/asn1.h>
#include <openssl/ocsp.h>
#include <openssl/err.h>
#include <openssl/buffer.h>

Go to the source code of this file.

Classes

struct  ocsp_req_ctx_st
 

Macros

#define OCSP_MAX_REQUEST_LENGTH   (100 * 1024)
 
#define OCSP_MAX_LINE_LEN   4096;
 
#define OHS_NOREAD   0x1000
 
#define OHS_ERROR   (0 | OHS_NOREAD)
 
#define OHS_FIRSTLINE   1
 
#define OHS_HEADERS   2
 
#define OHS_ASN1_HEADER   3
 
#define OHS_ASN1_CONTENT   4
 
#define OHS_ASN1_WRITE   (6 | OHS_NOREAD)
 
#define OHS_ASN1_FLUSH   (7 | OHS_NOREAD)
 
#define OHS_DONE   (8 | OHS_NOREAD)
 

Functions

void OCSP_REQ_CTX_free (OCSP_REQ_CTX *rctx)
 
int OCSP_REQ_CTX_set1_req (OCSP_REQ_CTX *rctx, OCSP_REQUEST *req)
 
int OCSP_REQ_CTX_add1_header (OCSP_REQ_CTX *rctx, const char *name, const char *value)
 
OCSP_REQ_CTXOCSP_sendreq_new (BIO *io, char *path, OCSP_REQUEST *req, int maxline)
 
int OCSP_sendreq_nbio (OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx)
 
OCSP_RESPONSEOCSP_sendreq_bio (BIO *b, char *path, OCSP_REQUEST *req)
 

Macro Definition Documentation

#define OCSP_MAX_LINE_LEN   4096;

Definition at line 86 of file ocsp_ht.c.

#define OCSP_MAX_REQUEST_LENGTH   (100 * 1024)

Definition at line 85 of file ocsp_ht.c.

#define OHS_ASN1_CONTENT   4

Definition at line 101 of file ocsp_ht.c.

#define OHS_ASN1_FLUSH   (7 | OHS_NOREAD)

Definition at line 105 of file ocsp_ht.c.

#define OHS_ASN1_HEADER   3

Definition at line 99 of file ocsp_ht.c.

#define OHS_ASN1_WRITE   (6 | OHS_NOREAD)

Definition at line 103 of file ocsp_ht.c.

#define OHS_DONE   (8 | OHS_NOREAD)

Definition at line 107 of file ocsp_ht.c.

#define OHS_ERROR   (0 | OHS_NOREAD)

Definition at line 93 of file ocsp_ht.c.

#define OHS_FIRSTLINE   1

Definition at line 95 of file ocsp_ht.c.

#define OHS_HEADERS   2

Definition at line 97 of file ocsp_ht.c.

#define OHS_NOREAD   0x1000

Definition at line 91 of file ocsp_ht.c.

Function Documentation

int OCSP_REQ_CTX_add1_header ( OCSP_REQ_CTX rctx,
const char *  name,
const char *  value 
)

Definition at line 135 of file ocsp_ht.c.

void OCSP_REQ_CTX_free ( OCSP_REQ_CTX rctx)

Definition at line 112 of file ocsp_ht.c.

int OCSP_REQ_CTX_set1_req ( OCSP_REQ_CTX rctx,
OCSP_REQUEST req 
)

Definition at line 121 of file ocsp_ht.c.

OCSP_RESPONSE* OCSP_sendreq_bio ( BIO b,
char *  path,
OCSP_REQUEST req 
)

Definition at line 485 of file ocsp_ht.c.

int OCSP_sendreq_nbio ( OCSP_RESPONSE **  presp,
OCSP_REQ_CTX rctx 
)

Definition at line 263 of file ocsp_ht.c.

OCSP_REQ_CTX* OCSP_sendreq_new ( BIO io,
char *  path,
OCSP_REQUEST req,
int  maxline 
)

Definition at line 154 of file ocsp_ht.c.