-
Notifications
You must be signed in to change notification settings - Fork 0
/
CertChain.pas
100 lines (65 loc) · 4 KB
/
CertChain.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
unit CertChain;
interface
type
HCkCert = Pointer;
HCkCertChain = Pointer;
HCkJsonObject = Pointer;
HCkTrustedRoots = Pointer;
HCkString = Pointer;
function CkCertChain_Create: HCkCertChain; stdcall;
procedure CkCertChain_Dispose(handle: HCkCertChain); stdcall;
procedure CkCertChain_getDebugLogFilePath(objHandle: HCkCertChain; outPropVal: HCkString); stdcall;
procedure CkCertChain_putDebugLogFilePath(objHandle: HCkCertChain; newPropVal: PWideChar); stdcall;
function CkCertChain__debugLogFilePath(objHandle: HCkCertChain): PWideChar; stdcall;
procedure CkCertChain_getLastErrorHtml(objHandle: HCkCertChain; outPropVal: HCkString); stdcall;
function CkCertChain__lastErrorHtml(objHandle: HCkCertChain): PWideChar; stdcall;
procedure CkCertChain_getLastErrorText(objHandle: HCkCertChain; outPropVal: HCkString); stdcall;
function CkCertChain__lastErrorText(objHandle: HCkCertChain): PWideChar; stdcall;
procedure CkCertChain_getLastErrorXml(objHandle: HCkCertChain; outPropVal: HCkString); stdcall;
function CkCertChain__lastErrorXml(objHandle: HCkCertChain): PWideChar; stdcall;
function CkCertChain_getLastMethodSuccess(objHandle: HCkCertChain): wordbool; stdcall;
procedure CkCertChain_putLastMethodSuccess(objHandle: HCkCertChain; newPropVal: wordbool); stdcall;
function CkCertChain_getNumCerts(objHandle: HCkCertChain): Integer; stdcall;
function CkCertChain_getNumExpiredCerts(objHandle: HCkCertChain): Integer; stdcall;
function CkCertChain_getReachesRoot(objHandle: HCkCertChain): wordbool; stdcall;
function CkCertChain_getVerboseLogging(objHandle: HCkCertChain): wordbool; stdcall;
procedure CkCertChain_putVerboseLogging(objHandle: HCkCertChain; newPropVal: wordbool); stdcall;
procedure CkCertChain_getVersion(objHandle: HCkCertChain; outPropVal: HCkString); stdcall;
function CkCertChain__version(objHandle: HCkCertChain): PWideChar; stdcall;
function CkCertChain_GetCert(objHandle: HCkCertChain; index: Integer): HCkCert; stdcall;
function CkCertChain_IsRootTrusted(objHandle: HCkCertChain; trustedRoots: HCkTrustedRoots): wordbool; stdcall;
function CkCertChain_LoadX5C(objHandle: HCkCertChain; jwk: HCkJsonObject): wordbool; stdcall;
function CkCertChain_SaveLastError(objHandle: HCkCertChain; path: PWideChar): wordbool; stdcall;
function CkCertChain_VerifyCertSignatures(objHandle: HCkCertChain): wordbool; stdcall;
function CkCertChain_X509PKIPathv1(objHandle: HCkCertChain; outStr: HCkString): wordbool; stdcall;
function CkCertChain__x509PKIPathv1(objHandle: HCkCertChain): PWideChar; stdcall;
implementation
{$Include chilkatDllPath.inc}
function CkCertChain_Create; external DLLName;
procedure CkCertChain_Dispose; external DLLName;
procedure CkCertChain_getDebugLogFilePath; external DLLName;
procedure CkCertChain_putDebugLogFilePath; external DLLName;
function CkCertChain__debugLogFilePath; external DLLName;
procedure CkCertChain_getLastErrorHtml; external DLLName;
function CkCertChain__lastErrorHtml; external DLLName;
procedure CkCertChain_getLastErrorText; external DLLName;
function CkCertChain__lastErrorText; external DLLName;
procedure CkCertChain_getLastErrorXml; external DLLName;
function CkCertChain__lastErrorXml; external DLLName;
function CkCertChain_getLastMethodSuccess; external DLLName;
procedure CkCertChain_putLastMethodSuccess; external DLLName;
function CkCertChain_getNumCerts; external DLLName;
function CkCertChain_getNumExpiredCerts; external DLLName;
function CkCertChain_getReachesRoot; external DLLName;
function CkCertChain_getVerboseLogging; external DLLName;
procedure CkCertChain_putVerboseLogging; external DLLName;
procedure CkCertChain_getVersion; external DLLName;
function CkCertChain__version; external DLLName;
function CkCertChain_GetCert; external DLLName;
function CkCertChain_IsRootTrusted; external DLLName;
function CkCertChain_LoadX5C; external DLLName;
function CkCertChain_SaveLastError; external DLLName;
function CkCertChain_VerifyCertSignatures; external DLLName;
function CkCertChain_X509PKIPathv1; external DLLName;
function CkCertChain__x509PKIPathv1; external DLLName;
end.