admin
base
com
developer
drivers
ds
adsi
dns
ds
edb500
ese98
inc
nameres
netapi
nlrepl
nw
published
safealloca
security
asn1
authz
azroles
base
common
cryptoapi
csps
dsrole
gina
inc
lib
ntmarta
passport
protocols
services
ca
capesnpn
celib
certadm
certcli
certclib
certdb
certenc
certif
certlib
certmmc
certprxy
certreq
certsrv
certview
certweb
certwrap
docs
exit
genreq
hdrs
idl
include
initlib
nsrevchk
ocmsetup
policy
default
expolicy
atl.cpp
cemmchlp.h
expolicy.cpp
expolicy.def
expolicy.dll
expolicy.idl
expolicy.rc
exver.h
iisver.h
kmsattr.h
listvw.cpp
listvw.h
makefile
makefile.inc
module.cpp
module.h
pch.cpp
policy.cpp
policy.h
resource.h
sources
policyvb
sample
dirs
sample.mk
requests
tools
dirs
makefile.sdk
mkallstr.bat
msaudite.mc
scerpc
smartcrd
w32time
dirs
tools
winsafer
dirs
roadmap.txt
win32
xpress
dirs
project.mk
enduser
inetcore
inetsrv
loc
mergedcomponents
multimedia
net
printscan
public
published
sdktools
shell
termsrv
tools
windows
dirs
makefil0
55 lines
1.9 KiB
C
55 lines
1.9 KiB
C
/*
|
|
* kmsattr.h
|
|
*
|
|
* constants shared between KMServer.exe and ExPolicy.dll
|
|
*
|
|
* Owner : Greg Kramer (gregkr)
|
|
*
|
|
* Copyright 1986-1997 Microsoft Corporation. All Rights Reserved.
|
|
*
|
|
*/
|
|
|
|
#ifndef _KMSATTR_H_
|
|
#define _KMSATTR_H_
|
|
|
|
// syntax of Submit::Attributes is
|
|
// name:value\n
|
|
// '-' and ' ' are stripped from name.
|
|
// leading and trailing whitespace stripped from name and from value.
|
|
|
|
const WCHAR k_wszSubjAltNameRFC822 [] = L"SubjAltNameRFC822";
|
|
const WCHAR k_wszSubjAltNameDisplay [] = L"SubjAltNameDisplay";
|
|
const WCHAR k_wszKeyUsage [] = L"KeyUsage";
|
|
const WCHAR k_wszKMServerName [] = L"KMServerName";
|
|
|
|
// count of attributes sent from KMServer to ExPolicy :
|
|
// SubjAltNameRFC822, SubjAltNameDisplay, KeyUsage, and KMServerName
|
|
const ULONG k_cAttrNames = 4;
|
|
|
|
const WCHAR k_wchTerminateName = L':';
|
|
const WCHAR k_wchTerminateValue = L'\n';
|
|
|
|
const WCHAR k_wszUsageSealing [] = L"1";
|
|
const WCHAR k_wszUsageSigning [] = L"2";
|
|
const ULONG k_cchmaxUsage = 1; // cch of longest value
|
|
|
|
const ULONG k_cchNamesAndTerminaters =
|
|
(sizeof(k_wszSubjAltNameRFC822) / sizeof(WCHAR) ) - 1 +
|
|
(sizeof(k_wszSubjAltNameDisplay) / sizeof(WCHAR) ) - 1 +
|
|
(sizeof(k_wszKeyUsage) / sizeof(WCHAR) ) - 1 +
|
|
(sizeof(k_wszKMServerName) / sizeof(WCHAR) ) - 1 +
|
|
k_cAttrNames + // name terminaters
|
|
k_cAttrNames; // value terminaters
|
|
// don't include string terminaters
|
|
|
|
const WCHAR k_wszSubjectAltName [] = L"SubjectAltName";
|
|
const WCHAR k_wszSubjectAltName2 [] = L"SubjectAltName2";
|
|
const WCHAR k_wszIssuerAltName [] = L"IssuerAltName";
|
|
|
|
const WCHAR k_wszSpecialAttribute [] = L"Special";
|
|
|
|
const ULONG k_cchSpecialAttribute =
|
|
(sizeof(k_wszSpecialAttribute) / sizeof(WCHAR) ) - 1;
|
|
|
|
#endif // ! _KMSATTR_H_
|