Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
moreoids.c File Reference
#include "secoid.h"
#include "secmodt.h"

Go to the source code of this file.

Defines

#define OI(x)   { siDEROID, (unsigned char *)x, sizeof x }
#define OD(oid, tag, desc, mech, ext)   { OI(oid), tag, desc, mech, ext }
#define ODN(oid, desc)   { OI(oid), 0, desc, CKM_INVALID_MECHANISM, INVALID_CERT_EXTENSION }
#define OIDT   static const unsigned char
#define OIWSSIG   0x2B, 13, 3, 2
#define MICROSOFT   0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37
#define AOL   0x2B, 0x06, 0x01, 0x04, 0x01, 0x88, 0x2A
#define ID_PKIX   0x2B, 6, 1, 5, 5, 7
#define ID_AD   ID_PKIX, 48
#define X500   0x55
#define X520_ATTRIBUTE_TYPE   X500, 0x04
#define X500_ALG   X500, 0x08
#define X500_ALG_ENCRYPTION   X500_ALG, 0x01
#define ID_CE   X500, 29
#define USCOM   0x60, 0x86, 0x48, 0x01
#define USGOV   USCOM, 0x65
#define USDOD   USGOV, 2
#define ID_INFOSEC   USDOD, 1
#define VERISIGN_PKI   USCOM, 0x86, 0xf8, 0x45, 1
#define VERISIGN_XTN   VERISIGN_PKI, 6
#define VERISIGN_POL   VERISIGN_PKI, 7 /* Cert policies */
#define VERISIGN_TNET   VERISIGN_POL, 23 /* Verisign Trust Network */

Functions

SECStatus SECU_RegisterDynamicOids (void)

Variables

OIDT oiwMD5RSA [] = { OIWSSIG, 3 }
OIDT oiwDESCBC [] = { OIWSSIG, 7 }
OIDT oiwRSAsig [] = { OIWSSIG, 11 }
OIDT oiwDSA [] = { OIWSSIG, 12 }
OIDT oiwMD5RSAsig [] = { OIWSSIG, 25 }
OIDT oiwSHA1 [] = { OIWSSIG, 26 }
OIDT oiwDSASHA1 [] = { OIWSSIG, 27 }
OIDT oiwDSASHA1param [] = { OIWSSIG, 28 }
OIDT oiwSHA1RSA [] = { OIWSSIG, 29 }
OIDT mCTL [] = { MICROSOFT, 10, 3, 1 }
OIDT mTSS [] = { MICROSOFT, 10, 3, 2 }
OIDT mSGC [] = { MICROSOFT, 10, 3, 3 }
OIDT mEFS [] = { MICROSOFT, 10, 3, 4 }
OIDT mSMIME [] = { MICROSOFT, 16, 4 }
OIDT mECRTT [] = { MICROSOFT, 20, 2 }
OIDT mEAGNT [] = { MICROSOFT, 20, 2, 1 }
OIDT mKPSCL [] = { MICROSOFT, 20, 2, 2 }
OIDT mNTPN [] = { MICROSOFT, 20, 2, 3 }
OIDT mCASRV [] = { MICROSOFT, 21, 1 }
OIDT padOCSP [] = { ID_AD, 1 }
OIDT padCAissuer [] = { ID_AD, 2 }
OIDT padTimeStamp [] = { ID_AD, 3 }
OIDT cePlcyObs [] = { ID_CE, 3 }
OIDT cePlcyCns [] = { ID_CE, 36 }
OIDT vcx7 [] = { VERISIGN_XTN, 7 }
OIDT vcp1 [] = { VERISIGN_TNET, 1 }
OIDT vcp2 [] = { VERISIGN_TNET, 2 }
OIDT vcp3 [] = { VERISIGN_TNET, 3 }
OIDT vcp4 [] = { VERISIGN_TNET, 4 }
static const SECOidData oids []
static const unsigned int numOids = (sizeof oids) / (sizeof oids[0])

Define Documentation

#define AOL   0x2B, 0x06, 0x01, 0x04, 0x01, 0x88, 0x2A

Definition at line 77 of file moreoids.c.

#define ID_AD   ID_PKIX, 48

Definition at line 82 of file moreoids.c.

#define ID_CE   X500, 29

Definition at line 93 of file moreoids.c.

Definition at line 102 of file moreoids.c.

#define ID_PKIX   0x2B, 6, 1, 5, 5, 7

Definition at line 80 of file moreoids.c.

#define MICROSOFT   0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37

Definition at line 62 of file moreoids.c.

#define OD (   oid,
  tag,
  desc,
  mech,
  ext 
)    { OI(oid), tag, desc, mech, ext }

Definition at line 41 of file moreoids.c.

#define ODN (   oid,
  desc 
)    { OI(oid), 0, desc, CKM_INVALID_MECHANISM, INVALID_CERT_EXTENSION }

Definition at line 42 of file moreoids.c.

#define OI (   x)    { siDEROID, (unsigned char *)x, sizeof x }

Definition at line 40 of file moreoids.c.

#define OIDT   static const unsigned char

Definition at line 45 of file moreoids.c.

#define OIWSSIG   0x2B, 13, 3, 2

Definition at line 48 of file moreoids.c.

#define USCOM   0x60, 0x86, 0x48, 0x01

Definition at line 99 of file moreoids.c.

#define USDOD   USGOV, 2

Definition at line 101 of file moreoids.c.

#define USGOV   USCOM, 0x65

Definition at line 100 of file moreoids.c.

#define VERISIGN_PKI   USCOM, 0x86, 0xf8, 0x45, 1

Definition at line 105 of file moreoids.c.

#define VERISIGN_POL   VERISIGN_PKI, 7 /* Cert policies */

Definition at line 107 of file moreoids.c.

#define VERISIGN_TNET   VERISIGN_POL, 23 /* Verisign Trust Network */

Definition at line 108 of file moreoids.c.

Definition at line 106 of file moreoids.c.

#define X500   0x55

Definition at line 89 of file moreoids.c.

#define X500_ALG   X500, 0x08

Definition at line 91 of file moreoids.c.

Definition at line 92 of file moreoids.c.

Definition at line 90 of file moreoids.c.


Function Documentation

Definition at line 163 of file moreoids.c.

{
    unsigned int i;
    SECStatus rv = SECSuccess;

    for (i = 0; i < numOids; ++i) {
       SECOidTag tag = SECOID_AddEntry(&oids[i]);
       if (tag == SEC_OID_UNKNOWN) {
           rv = SECFailure;
#ifdef DEBUG_DYN_OIDS
           fprintf(stderr, "Add OID[%d] failed\n", i);
       } else {
           fprintf(stderr, "Add OID[%d] returned tag %d\n", i, tag);
#endif
       }
    }
    return rv;
}

Here is the caller graph for this function:


Variable Documentation

OIDT cePlcyCns[] = { ID_CE, 36 }

Definition at line 96 of file moreoids.c.

OIDT cePlcyObs[] = { ID_CE, 3 }

Definition at line 95 of file moreoids.c.

OIDT mCASRV[] = { MICROSOFT, 21, 1 }

Definition at line 74 of file moreoids.c.

OIDT mCTL[] = { MICROSOFT, 10, 3, 1 }

Definition at line 64 of file moreoids.c.

OIDT mEAGNT[] = { MICROSOFT, 20, 2, 1 }

Definition at line 71 of file moreoids.c.

OIDT mECRTT[] = { MICROSOFT, 20, 2 }

Definition at line 70 of file moreoids.c.

OIDT mEFS[] = { MICROSOFT, 10, 3, 4 }

Definition at line 67 of file moreoids.c.

OIDT mKPSCL[] = { MICROSOFT, 20, 2, 2 }

Definition at line 72 of file moreoids.c.

OIDT mNTPN[] = { MICROSOFT, 20, 2, 3 }

Definition at line 73 of file moreoids.c.

OIDT mSGC[] = { MICROSOFT, 10, 3, 3 }

Definition at line 66 of file moreoids.c.

OIDT mSMIME[] = { MICROSOFT, 16, 4 }

Definition at line 68 of file moreoids.c.

OIDT mTSS[] = { MICROSOFT, 10, 3, 2 }

Definition at line 65 of file moreoids.c.

const unsigned int numOids = (sizeof oids) / (sizeof oids[0]) [static]

Definition at line 160 of file moreoids.c.

const SECOidData oids[] [static]

Definition at line 118 of file moreoids.c.

OIDT oiwDESCBC[] = { OIWSSIG, 7 }

Definition at line 51 of file moreoids.c.

OIDT oiwDSA[] = { OIWSSIG, 12 }

Definition at line 53 of file moreoids.c.

OIDT oiwDSASHA1[] = { OIWSSIG, 27 }

Definition at line 56 of file moreoids.c.

Definition at line 57 of file moreoids.c.

OIDT oiwMD5RSA[] = { OIWSSIG, 3 }

Definition at line 50 of file moreoids.c.

OIDT oiwMD5RSAsig[] = { OIWSSIG, 25 }

Definition at line 54 of file moreoids.c.

OIDT oiwRSAsig[] = { OIWSSIG, 11 }

Definition at line 52 of file moreoids.c.

OIDT oiwSHA1[] = { OIWSSIG, 26 }

Definition at line 55 of file moreoids.c.

OIDT oiwSHA1RSA[] = { OIWSSIG, 29 }

Definition at line 58 of file moreoids.c.

OIDT padCAissuer[] = { ID_AD, 2 }

Definition at line 85 of file moreoids.c.

OIDT padOCSP[] = { ID_AD, 1 }

Definition at line 84 of file moreoids.c.

OIDT padTimeStamp[] = { ID_AD, 3 }

Definition at line 86 of file moreoids.c.

OIDT vcp1[] = { VERISIGN_TNET, 1 }

Definition at line 111 of file moreoids.c.

OIDT vcp2[] = { VERISIGN_TNET, 2 }

Definition at line 112 of file moreoids.c.

OIDT vcp3[] = { VERISIGN_TNET, 3 }

Definition at line 113 of file moreoids.c.

OIDT vcp4[] = { VERISIGN_TNET, 4 }

Definition at line 114 of file moreoids.c.

OIDT vcx7[] = { VERISIGN_XTN, 7 }

Definition at line 110 of file moreoids.c.