RSA BSAFE Cert-C

Certificate Components for C

Crypto-C 6.2.1 Developer's Guide
Search

basetype.h

Go to the documentation of this file.
00001 /* $Id: basetype.h,v 1.13 2005/03/07 22:47:43 alockwoo Exp $ */
00002 /*
00003 * Copyright (c) RSA Security Inc., 1999-2002.  All rights reserved.
00004 * This work contains proprietary, confidential, and trade secret
00005 * information of RSA Security Inc.  Use, disclosure or reproduction
00006 * without the express written authorization of RSA Security Inc. is
00007 * prohibited.
00008 */
00009 
00020 #ifndef _BASETYPE_H_
00021 #define _BASETYPE_H_ 1
00022 
00023 #include "aglobal.h"
00024 
00025 #ifdef __cplusplus
00026 extern "C" {
00027 #endif
00028 
00051 typedef struct BIT_STRING {
00056   unsigned char *data;
00061   unsigned int len;
00068   unsigned int unusedBits;
00069 } BIT_STRING;
00070 
00071 #ifndef _GENERALIZED_TIME_
00072 #define _GENERALIZED_TIME_ 1
00073 
00099 typedef struct GENERALIZED_TIME {
00103   unsigned short year;
00108   unsigned short month;
00113   unsigned short day;
00118   unsigned short hour;
00123   unsigned short minute;
00128   unsigned short second;
00133   UINT4 microSecond;
00140   short int timeZone;
00141 } GENERALIZED_TIME;
00142 #endif
00143 
00162 typedef POINTER CERTC_CTX;
00163 
00203 typedef POINTER LIST_OBJ;
00204 
00229 typedef POINTER NAME_OBJ;
00230 
00254 typedef POINTER ATTRIBUTES_OBJ;
00255 
00319 typedef POINTER EXTENSIONS_OBJ;
00320 
00343 typedef POINTER CERT_OBJ;
00344 
00376 typedef POINTER CRL_ENTRIES_OBJ;
00377 
00397 typedef POINTER CRL_OBJ;
00398 
00415 typedef POINTER SERVICE;
00416 
00432 typedef POINTER DB_ITERATOR;
00433 
00434 #define NULL_C_CTX       ((CERTC_CTX)       0)
00435 #define NULL_LIST        ((LIST_OBJ)        0)
00436 #define NULL_NAME        ((NAME_OBJ)        0)
00437 #define NULL_ATTRIBUTES  ((ATTRIBUTES_OBJ)  0)
00438 #define NULL_EXTENSIONS  ((EXTENSIONS_OBJ)  0)
00439 #define NULL_CERT        ((CERT_OBJ)        0)
00440 #define NULL_CRL_ENTRIES ((CRL_ENTRIES_OBJ) 0)
00441 #define NULL_CRL         ((CRL_OBJ)         0)
00442 #define NULL_SERVICE     ((SERVICE)         0)
00443 #define NULL_DB_ITERATOR ((DB_ITERATOR)     0)
00444 
00445 #define NULL_SURR_CTX    ((A_SURRENDER_CTX *)0)
00446 #define NULL_PATH_CTX    ((CERT_PATH_CTX   *)0)
00447 #define NULL_ITEM        ((ITEM            *)0)
00448 #define NULL_DB          ((SERVICE)          0)
00449 #define NULL_STREAM      ((STREAM)           0)
00450 #define NULL_SCEP_DATA   ((P_SCEP_DATA)      0)
00451 
00452 #define NULL_ALG         ((B_ALGORITHM_OBJ)  0)
00453 #define NULL_KEY         ((B_KEY_OBJ)        0)
00454 
00455 #ifdef __cplusplus
00456 }
00457 #endif
00458 
00459 #endif /* _BASETYPE_H_ */

Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 067-001001-2720-001-000 - 2.7.2