RSA Security logo

RSA BSAFE Cert-C
API Reference

basetype.h

Go to the documentation of this file.
00001 /*
00002 * Copyright (c) RSA Security Inc., 1999-2002.  All rights reserved.
00003 * This work contains proprietary, confidential, and trade secret
00004 * information of RSA Security Inc.  Use, disclosure or reproduction
00005 * without the express written authorization of RSA Security Inc. is
00006 * prohibited.
00007 */
00008 
00009 #ifndef _BASETYPE_H_
00010 #define _BASETYPE_H_ 1
00011 
00022 #include "aglobal.h"
00023 
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027 
00053 typedef struct BIT_STRING {
00059   unsigned char *data;                           /* data is right justified */
00064   unsigned int len;
00073   unsigned int unusedBits;                   /* number of unused bits in the
00074                                                 last byte in the data field */
00075 } BIT_STRING;
00076 
00077 #ifndef _GENERALIZED_TIME_
00078 #define _GENERALIZED_TIME_ 1
00079 
00109 typedef struct GENERALIZED_TIME {
00114   unsigned short year;                                     /* 4 digit number */
00120   unsigned short month;                            /* 2 digits from 01 to 12 */
00126   unsigned short day;                              /* 2 digits from 01 to 31 */
00132   unsigned short hour;                              /* 2 digits from 0 to 23 */
00138   unsigned short minute;                            /* 2 digits from 0 to 59 */
00144   unsigned short second;                            /* 2 digits from 0 to 59 */
00150   UINT4 microSecond;                                        /* micro seconds */
00159   short int timeZone;                         /* different in minutes, moving
00160                                         westward, between UTC and local time */
00161 } GENERALIZED_TIME;
00162 #endif
00163 
00182 typedef POINTER CERTC_CTX;
00183 
00263 typedef POINTER LIST_OBJ;
00264 
00418 typedef POINTER NAME_OBJ;
00419 
00521 typedef POINTER ATTRIBUTES_OBJ;
00522 
00660 typedef POINTER EXTENSIONS_OBJ;
00661 
00730 typedef POINTER CERT_OBJ;
00731 
00798 typedef POINTER CRL_ENTRIES_OBJ;
00799 
00866 typedef POINTER CRL_OBJ;
00867 
00884 typedef POINTER SERVICE;
00885 
00901 typedef POINTER DB_ITERATOR;
00902 
00903 #define NULL_C_CTX       ((CERTC_CTX)       0)
00904 #define NULL_LIST        ((LIST_OBJ)        0)
00905 #define NULL_NAME        ((NAME_OBJ)        0)
00906 #define NULL_ATTRIBUTES  ((ATTRIBUTES_OBJ)  0)
00907 #define NULL_EXTENSIONS  ((EXTENSIONS_OBJ)  0)
00908 #define NULL_CERT        ((CERT_OBJ)        0)
00909 #define NULL_CRL_ENTRIES ((CRL_ENTRIES_OBJ) 0)
00910 #define NULL_CRL         ((CRL_OBJ)         0)
00911 #define NULL_SERVICE     ((SERVICE)         0)
00912 #define NULL_DB_ITERATOR ((DB_ITERATOR)     0)
00913 
00914 #define NULL_SURR_CTX    ((A_SURRENDER_CTX *)0)
00915 #define NULL_PATH_CTX    ((CERT_PATH_CTX   *)0)
00916 #define NULL_ITEM        ((ITEM            *)0)
00917 #define NULL_DB          ((SERVICE)          0)
00918 #define NULL_STREAM      ((STREAM)           0)
00919 #define NULL_SCEP_DATA   ((P_SCEP_DATA)      0)
00920 
00921 #define NULL_ALG         ((B_ALGORITHM_OBJ)  0)
00922 #define NULL_KEY         ((B_KEY_OBJ)        0)
00923 
00924 #ifdef __cplusplus
00925 }
00926 #endif
00927 
00928 #endif /* _BASETYPE_H_ */



RSA BSAFE® Cert-C 2.7 API Reference