OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions
txt_db.h File Reference
#include <openssl/opensslconf.h>
#include <openssl/bio.h>
#include <openssl/stack.h>
#include <openssl/lhash.h>

Go to the source code of this file.

Classes

struct  txt_db_st
 

Macros

#define DB_ERROR_OK   0
 
#define DB_ERROR_MALLOC   1
 
#define DB_ERROR_INDEX_CLASH   2
 
#define DB_ERROR_INDEX_OUT_OF_RANGE   3
 
#define DB_ERROR_NO_INDEX   4
 
#define DB_ERROR_INSERT_INDEX_CLASH   5
 

Typedefs

typedef OPENSSL_STRINGOPENSSL_PSTRING
 
typedef struct txt_db_st TXT_DB
 

Functions

TXT_DBTXT_DB_read (BIO *in, int num)
 
long TXT_DB_write (BIO *out, TXT_DB *db)
 
int TXT_DB_create_index (TXT_DB *db, int field, int(*qual)(OPENSSL_STRING *), LHASH_HASH_FN_TYPE hash, LHASH_COMP_FN_TYPE cmp)
 
void TXT_DB_free (TXT_DB *db)
 
OPENSSL_STRINGTXT_DB_get_by_index (TXT_DB *db, int idx, OPENSSL_STRING *value)
 
int TXT_DB_insert (TXT_DB *db, OPENSSL_STRING *value)
 

Macro Definition Documentation

#define DB_ERROR_INDEX_CLASH   2

Definition at line 71 of file txt_db.h.

#define DB_ERROR_INDEX_OUT_OF_RANGE   3

Definition at line 72 of file txt_db.h.

#define DB_ERROR_INSERT_INDEX_CLASH   5

Definition at line 74 of file txt_db.h.

#define DB_ERROR_MALLOC   1

Definition at line 70 of file txt_db.h.

#define DB_ERROR_NO_INDEX   4

Definition at line 73 of file txt_db.h.

#define DB_ERROR_OK   0

Definition at line 69 of file txt_db.h.

Typedef Documentation

Definition at line 80 of file txt_db.h.

typedef struct txt_db_st TXT_DB

Function Documentation

int TXT_DB_create_index ( TXT_DB db,
int  field,
int(*)(OPENSSL_STRING *)  qual,
LHASH_HASH_FN_TYPE  hash,
LHASH_COMP_FN_TYPE  cmp 
)

Definition at line 217 of file txt_db.c.

void TXT_DB_free ( TXT_DB db)

Definition at line 345 of file txt_db.c.

OPENSSL_STRING* TXT_DB_get_by_index ( TXT_DB db,
int  idx,
OPENSSL_STRING value 
)

Definition at line 196 of file txt_db.c.

int TXT_DB_insert ( TXT_DB db,
OPENSSL_STRING value 
)

Definition at line 303 of file txt_db.c.

TXT_DB* TXT_DB_read ( BIO in,
int  num 
)

Definition at line 71 of file txt_db.c.

long TXT_DB_write ( BIO out,
TXT_DB db 
)

Definition at line 255 of file txt_db.c.