OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions
obj_dat.c File Reference
#include <stdio.h>
#include <ctype.h>
#include <limits.h>
#include "cryptlib.h"
#include <openssl/lhash.h>
#include <openssl/asn1.h>
#include <openssl/objects.h>
#include <openssl/bn.h>
#include "obj_dat.h"

Go to the source code of this file.

Classes

struct  added_obj_st
 

Macros

#define ADDED_DATA   0
 
#define ADDED_SNAME   1
 
#define ADDED_LNAME   2
 
#define ADDED_NID   3
 

Typedefs

typedef struct added_obj_st ADDED_OBJ
 

Functions

 DECLARE_OBJ_BSEARCH_CMP_FN (const ASN1_OBJECT *, unsigned int, sn)
 
 DECLARE_OBJ_BSEARCH_CMP_FN (const ASN1_OBJECT *, unsigned int, ln)
 
 DECLARE_OBJ_BSEARCH_CMP_FN (const ASN1_OBJECT *, unsigned int, obj)
 
 DECLARE_LHASH_OF (ADDED_OBJ)
 
 IMPLEMENT_OBJ_BSEARCH_CMP_FN (const ASN1_OBJECT *, unsigned int, sn)
 
 IMPLEMENT_OBJ_BSEARCH_CMP_FN (const ASN1_OBJECT *, unsigned int, ln)
 
void OBJ_cleanup (void)
 
int OBJ_new_nid (int num)
 
int OBJ_add_object (const ASN1_OBJECT *obj)
 
ASN1_OBJECTOBJ_nid2obj (int n)
 
const char * OBJ_nid2sn (int n)
 
const char * OBJ_nid2ln (int n)
 
 IMPLEMENT_OBJ_BSEARCH_CMP_FN (const ASN1_OBJECT *, unsigned int, obj)
 
int OBJ_obj2nid (const ASN1_OBJECT *a)
 
ASN1_OBJECTOBJ_txt2obj (const char *s, int no_name)
 
int OBJ_obj2txt (char *buf, int buf_len, const ASN1_OBJECT *a, int no_name)
 
int OBJ_txt2nid (const char *s)
 
int OBJ_ln2nid (const char *s)
 
int OBJ_sn2nid (const char *s)
 
const voidOBJ_bsearch_ (const void *key, const void *base, int num, int size, int(*cmp)(const void *, const void *))
 
const voidOBJ_bsearch_ex_ (const void *key, const void *base_, int num, int size, int(*cmp)(const void *, const void *), int flags)
 
int OBJ_create_objects (BIO *in)
 
int OBJ_create (const char *oid, const char *sn, const char *ln)
 

Macro Definition Documentation

#define ADDED_DATA   0

Definition at line 88 of file obj_dat.c.

#define ADDED_LNAME   2

Definition at line 90 of file obj_dat.c.

#define ADDED_NID   3

Definition at line 91 of file obj_dat.c.

#define ADDED_SNAME   1

Definition at line 89 of file obj_dat.c.

Typedef Documentation

typedef struct added_obj_st ADDED_OBJ

Function Documentation

DECLARE_LHASH_OF ( ADDED_OBJ  )
DECLARE_OBJ_BSEARCH_CMP_FN ( const ASN1_OBJECT ,
unsigned  int,
sn   
)
DECLARE_OBJ_BSEARCH_CMP_FN ( const ASN1_OBJECT ,
unsigned  int,
ln   
)
DECLARE_OBJ_BSEARCH_CMP_FN ( const ASN1_OBJECT ,
unsigned  int,
obj   
)
IMPLEMENT_OBJ_BSEARCH_CMP_FN ( const ASN1_OBJECT ,
unsigned  int,
sn   
)
IMPLEMENT_OBJ_BSEARCH_CMP_FN ( const ASN1_OBJECT ,
unsigned  int,
ln   
)
IMPLEMENT_OBJ_BSEARCH_CMP_FN ( const ASN1_OBJECT ,
unsigned  int,
obj   
)
int OBJ_add_object ( const ASN1_OBJECT obj)

Definition at line 247 of file obj_dat.c.

const void* OBJ_bsearch_ ( const void key,
const void base,
int  num,
int  size,
int(*)(const void *, const void *)  cmp 
)

Definition at line 678 of file obj_dat.c.

const void* OBJ_bsearch_ex_ ( const void key,
const void base_,
int  num,
int  size,
int(*)(const void *, const void *)  cmp,
int  flags 
)

Definition at line 684 of file obj_dat.c.

void OBJ_cleanup ( void  )

Definition at line 222 of file obj_dat.c.

int OBJ_create ( const char *  oid,
const char *  sn,
const char *  ln 
)

Definition at line 783 of file obj_dat.c.

int OBJ_create_objects ( BIO in)

Definition at line 735 of file obj_dat.c.

int OBJ_ln2nid ( const char *  s)

Definition at line 638 of file obj_dat.c.

int OBJ_new_nid ( int  num)

Definition at line 238 of file obj_dat.c.

const char* OBJ_nid2ln ( int  n)

Definition at line 353 of file obj_dat.c.

ASN1_OBJECT* OBJ_nid2obj ( int  n)

Definition at line 289 of file obj_dat.c.

const char* OBJ_nid2sn ( int  n)

Definition at line 321 of file obj_dat.c.

int OBJ_obj2nid ( const ASN1_OBJECT a)

Definition at line 398 of file obj_dat.c.

int OBJ_obj2txt ( char *  buf,
int  buf_len,
const ASN1_OBJECT a,
int  no_name 
)

Definition at line 466 of file obj_dat.c.

int OBJ_sn2nid ( const char *  s)

Definition at line 658 of file obj_dat.c.

int OBJ_txt2nid ( const char *  s)

Definition at line 628 of file obj_dat.c.

ASN1_OBJECT* OBJ_txt2obj ( const char *  s,
int  no_name 
)

Definition at line 427 of file obj_dat.c.