-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterface.txt
More file actions
95 lines (69 loc) · 2.57 KB
/
interface.txt
File metadata and controls
95 lines (69 loc) · 2.57 KB
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
Tp_ctx_set_pri(ctx):
####################################
Used to set private data to ctx.
####################################
Tp_ctx_get_pri(ctx):
####################################
Used to get private data from ctx.
####################################
Tp_get_cert_dir(ctx):
####################################
0 for server's Certificate and 1 for client's certificate
####################################
Tp_get_cert_level(ctx):
####################################
Starting from 0, determining the order of current certificate.
####################################
Tp_set_clnt_sni_cb(ctx, ...):
####################################
Server Name in packet ClientHello
####################################
Tp_set_clnt_ver_cb(ctx, ...):
####################################
TLS version(inner) in packet ClientHello
####################################
Tp_set_clnt_ciph_cb(ctx, ...):
####################################
All cipher suits in ClientHello
####################################
Tp_set_clnt_id_cb(ctx, ...):
####################################
SessionID in ClientHello
####################################
Tp_set_srv_ver_cb(ctx, ...):
####################################
TLS version(inner) in ServerHello
tips: For TLS 1.3, the function you set may be called twice, first
the inner Version(TLS1.2) will be as the parameter and the second the
version in extension will be as the parameter.
####################################
Tp_set_srv_id_cb(ctx, ...):
####################################
SessionID in ServerHello
####################################
Tp_set_srv_ciph_cb(ctx, ...):
####################################
Chooesed cipher suit in ServerHello
####################################
Tp_set_cert_raw_cb(ctx, ...):
####################################
Each certificate in Certificate chain(order)
Tips: The parameter is the binary certificate, you can use it to do your
own work.Using Tp_get_cert_level and Tp_get_cert_dir to get the level of
current certificate in the chain and the direction of current certif-
icate(client or server).
####################################
####################################
The following interface is used to get the detail information about the
certificate.
Tp_set_cert_cn_cb(ctx, ...)
Tp_set_cert_country_cb(ctx, ...)
Tp_set_cert_local_cb(ctx, ...)
Tp_set_cert_prov_cb(ctx, ...)
Tp_set_cert_org_cb(ctx, ...)
Tp_set_cert_orgunit_cb(ctx, ...)
Tp_set_cert_email_cb(ctx, ...)
Tp_set_cert_serial_cb(ctx, ...)
Tp_set_cert_sigalg_cb(ctx, ...)
Tp_set_cert_pkeyalg_cb(ctx, ...)
####################################