]>
Commit | Line | Data |
---|---|---|
d8f41ccd A |
1 | /* Copyright (c) 2002-2003,2006 Apple Computer, Inc. |
2 | * | |
3 | * dbAttrs.h - Apple DL/DB/Keychain attributes and name/value pairs | |
4 | */ | |
5 | ||
6 | #ifndef _DB_ATTRS_H_ | |
7 | #define _DB_ATTRS_H_ | |
8 | ||
9 | #include <Security/cssmtype.h> | |
10 | ||
11 | #ifdef __cplusplus | |
12 | extern "C" { | |
13 | #endif | |
14 | ||
15 | /* entry in a table to map a uint32 to a string */ | |
16 | typedef struct { | |
17 | uint32 value; | |
18 | const char *name; | |
19 | } NameValuePair; | |
20 | ||
21 | /* all the info we need about one Relation (schema) */ | |
22 | typedef struct { | |
23 | CSSM_DB_RECORDTYPE DataRecordType; | |
24 | const char *relationName; | |
25 | uint32 NumberOfAttributes; | |
26 | const CSSM_DB_ATTRIBUTE_INFO *AttributeInfo; | |
27 | const NameValuePair **nameValues; | |
28 | } RelationInfo; | |
29 | ||
30 | extern const NameValuePair recordTypeNames[]; | |
31 | ||
32 | extern const RelationInfo schemaInfoRelation; | |
33 | extern const RelationInfo allKeysRelation; | |
34 | extern const RelationInfo anyRecordRelation; | |
35 | extern const RelationInfo genericKcRelation; | |
36 | extern const RelationInfo certRecordRelation; | |
37 | extern const RelationInfo x509CertRecordRelation; | |
38 | extern const RelationInfo x509CrlRecordRelation; | |
39 | extern const RelationInfo userTrustRelation; | |
40 | extern const RelationInfo referralRecordRelation; | |
41 | extern const RelationInfo extendedAttrRelation; | |
42 | ||
43 | /* | |
44 | * DBBlob record type, private to CSPDL. | |
45 | */ | |
46 | #define DBBlobRelationID (CSSM_DB_RECORDTYPE_APP_DEFINED_START + 0x8000) | |
47 | ||
48 | #ifdef __cplusplus | |
49 | } | |
50 | #endif | |
51 | ||
52 | #endif /* _DB_ATTRS_H_ */ |