8 #ifndef _KEYSET_DEFINED
10 #define _KEYSET_DEFINED
15 #ifndef _STREAM_DEFINED
16 #if defined( INC_ALL )
47 #if defined( __WIN32__ ) && !defined( WIN32 )
53 #if defined( __BORLANDC__ )
54 #include <mfc/sqltypes.h>
65 #define ALLREADY_HAVE_WINDOWS_TYPE
67 typedef signed short RETCODE;
68 typedef short int SWORD;
69 typedef long int SDWORD;
70 typedef signed char SQLSCHAR;
85 #error Need to add database backend-specific includes
109 #define MAX_CERT_SIZE 4096
110 #define MAX_ENCODED_CERT_SIZE ( ( MAX_CERT_SIZE * 4 ) / 3 )
114 #define KEYSET_OPEN 0x01
115 #define KEYSET_EMPTY 0x02
116 #define KEYSET_DIRTY 0x04
117 #define KEYSET_STREAM_OPEN 0x08
169 #define NO_CACHED_QUERIES 5
201 SQLSMALLINT blobType;
205 SQLINTEGER dateTimeNameColSize;
208 int dateTimeNameLength;
213 #error Need to add database backend-specific state variables
301 int ( *openDatabaseFunction )(
INOUT struct DI *dbmsInfo,
308 void ( *closeDatabaseFunction )(
INOUT struct
DI *dbmsInfo );
310 int ( *performUpdateFunction )(
INOUT struct
DI *dbmsInfo,
316 int ( *performStaticUpdateFunction )(
INOUT struct
DI *dbmsInfo,
319 int ( *performQueryFunction )(
INOUT struct
DI *dbmsInfo,
331 int ( *performStaticQueryFunction )(
INOUT struct
DI *dbmsInfo,
340 int ( *certMgmtFunction )(
INOUT struct
KI *keysetInfo,
386 #define keysetFile keysetInfo.fileInfo
387 #define keysetDBMS keysetInfo.dbmsInfo
388 #define keysetHTTP keysetInfo.httpInfo
389 #define keysetLDAP keysetInfo.ldapInfo
445 int ( *getSpecialItemFunction )(
INOUT struct
KI *keysetInfoPtr,
461 int ( *setSpecialItemFunction )(
INOUT struct
KI *deviceInfo,
486 INOUT int *stateInfo,
552 #define dbxInitODBC() CRYPT_OK
561 #define setAccessMethodDBMS( x, y ) CRYPT_ARGERROR_NUM1
567 #define setAccessMethodHTTP( x ) CRYPT_ARGERROR_NUM1
575 #define dbxInitLDAP() CRYPT_OK
577 #define setAccessMethodLDAP( x ) CRYPT_ARGERROR_NUM1
585 #define setAccessMethodPGPPublic( x ) CRYPT_ARGERROR_NUM1
586 #define setAccessMethodPGPPrivate( x ) CRYPT_ARGERROR_NUM1
592 #define setAccessMethodPKCS12( x ) CRYPT_ARGERROR_NUM1
598 #define setAccessMethodPKCS15( x ) CRYPT_ARGERROR_NUM1
601 #define isWriteableFileKeyset( type ) \
602 ( ( type ) == KEYSET_SUBTYPE_PKCS12 || \
603 ( type ) == KEYSET_SUBTYPE_PKCS15 )
605 #define isWriteableFileKeyset( type ) \
606 ( ( type ) == KEYSET_SUBTYPE_PKCS15 )