Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
03d4816b
Commit
03d4816b
authored
Jun 17, 2005
by
Juan Lang
Committed by
Alexandre Julliard
Jun 17, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more missing defs.
parent
190f845c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
+60
-0
wincrypt.h
include/wincrypt.h
+60
-0
No files found.
include/wincrypt.h
View file @
03d4816b
...
...
@@ -199,6 +199,19 @@ typedef struct _CERT_KEY_ATTRIBUTES_INFO {
PCERT_PRIVATE_KEY_VALIDITY
pPrivateKeyUsagePeriod
;
}
CERT_KEY_ATTRIBUTES_INFO
,
*
PCERT_KEY_ATTRIBUTES_INFO
;
/* byte 0 */
#define CERT_DIGITAL_SIGNATURE_KEY_USAGE 0x80
#define CERT_NON_REPUDIATION_KEY_USAGE 0x40
#define CERT_KEY_ENCIPHERMENT_KEY_USAGE 0x20
#define CERT_DATA_ENCIPHERMENT_KEY_USAGE 0x10
#define CERT_KEY_AGREEMENT_KEY_USAGE 0x80
#define CERT_KEY_CERT_SIGN_KEY_USAGE 0x40
#define CERT_OFFLINE_CRL_SIGN_KEY_USAGE 0x20
#define CERT_CRL_SIGN_KEY_USAGE 0x10
#define CERT_ENCIPHER_ONLY_KEY_USAGE 0x01
/* byte 1 */
#define CERT_DECIPHER_ONLY_KEY_USAGE 0x80
typedef
struct
_CERT_POLICY_ID
{
DWORD
cCertPolicyElementId
;
LPSTR
*
rgbszCertPolicyElementId
;
...
...
@@ -228,11 +241,48 @@ typedef struct _CERT_ALT_NAME_ENTRY {
}
DUMMYUNIONNAME
;
}
CERT_ALT_NAME_ENTRY
,
*
PCERT_ALT_NAME_ENTRY
;
#define CERT_ALT_NAME_OTHER_NAME 1
#define CERT_ALT_NAME_RFC822_NAME 2
#define CERT_ALT_NAME_DNS_NAME 3
#define CERT_ALT_NAME_X400_ADDRESS 4
#define CERT_ALT_NAME_DIRECTORY_NAME 5
#define CERT_ALT_NAME_EDI_PARTY_NAME 6
#define CERT_ALT_NAME_URL 7
#define CERT_ALT_NAME_IP_ADDRESS 8
#define CERT_ALT_NAME_REGISTERED_ID 9
typedef
struct
_CERT_ALT_NAME_INFO
{
DWORD
cAltEntry
;
PCERT_ALT_NAME_ENTRY
rgAltEntry
;
}
CERT_ALT_NAME_INFO
,
*
PCERT_ALT_NAME_INFO
;
#define CERT_ALT_NAME_ENTRY_ERR_INDEX_MASK 0xff
#define CERT_ALT_NAME_ENTRY_ERR_INDEX_SHIFT 16
#define CERT_ALT_NAME_VALUE_ERR_INDEX_MASK 0x0000ffff
#define CERT_ALT_NAME_VALUE_ERR_INDEX_SHIFT 0
#define GET_CERT_ALT_NAME_ENTRY_ERR_INDEX(x) \
(((x) >> CERT_ALT_NAME_ENTRY_ERR_INDEX_SHIFT) & \
CERT_ALT_NAME_ENTRY_ERR_INDEX_MASK)
#define GET_CERT_ALT_NAME_VALUE_ERR_INDEX(x) \
((x) & CERT_ALT_NAME_VALUE_ERR_INDEX_MASK)
typedef
struct
_CERT_BASIC_CONSTRAINTS_INFO
{
CRYPT_BIT_BLOB
SubjectType
;
BOOL
fPathLenConstraint
;
DWORD
dwPathLenConstraint
;
DWORD
cSubtreesConstraint
;
CERT_NAME_BLOB
*
rgSubtreesConstraint
;
}
CERT_BASIC_CONSTRAINTS_INFO
,
*
PCERT_BASIC_CONSTRAINTS_INFO
;
#define CERT_CA_SUBJECT_FLAG 0x80
#define CERT_END_ENTITY_SUBJECT_FLAG 0x40
typedef
struct
_CERT_BASIC_CONSTRAINTS2_INFO
{
BOOL
fCA
;
BOOL
fPathLenConstraint
;
DWORD
dwPathLenConstraint
;
}
CERT_BASIC_CONSTRAINTS2_INFO
,
*
PCERT_BASIC_CONSTRAINTS2_INFO
;
typedef
struct
_CERT_CONTEXT
{
DWORD
dwCertEncodingType
;
BYTE
*
pbCertEncoded
;
...
...
@@ -1129,6 +1179,16 @@ static const WCHAR CERT_PHYSICAL_STORE_AUTH_ROOT_NAME[] =
#define IS_CERT_RDN_CHAR_STRING(x) \
(((x) & CERT_RDN_TYPE_MASK) >= CERT_RDN_NUMERIC_STRING)
/* CRL reason codes */
#define CRL_REASON_UNSPECIFIED 0
#define CRL_REASON_KEY_COMPROMISE 1
#define CRL_REASON_CA_COMPROMISE 2
#define CRL_REASON_AFFILIATION_CHANGED 3
#define CRL_REASON_SUPERSEDED 4
#define CRL_REASON_CESSATION_OF_OPERATION 5
#define CRL_REASON_CERTIFICATE_HOLD 6
#define CRL_REASON_REMOVE_FROM_CRL 8
/* OIDs */
#define szOID_RSA "1.2.840.113549"
#define szOID_PKCS "1.2.840.113549.1"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment