API参考
载入中...
搜索中...
未找到
app_client.h
1
/*
2
* This file is part of the openHiTLS project.
3
*
4
* openHiTLS is licensed under the Mulan PSL v2.
5
* You can use this software according to the terms and conditions of the Mulan PSL v2.
6
* You may obtain a copy of Mulan PSL v2 at:
7
*
8
* http://license.coscl.org.cn/MulanPSL2
9
*
10
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
11
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
12
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
13
* See the Mulan PSL v2 for more details.
14
*/
15
16
#ifndef HITLS_APP_CLIENT_H
17
#define HITLS_APP_CLIENT_H
18
#include "app_provider.h"
19
#include "app_sm.h"
20
#include "bsl_types.h"
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
/* Client parameters structure */
27
typedef
struct
{
28
/* Connection parameters */
29
char
*host;
30
int
port;
31
int
connectTimeout;
32
33
/* Protocol parameters */
34
char
*protocol;
35
char
*cipherSuites;
36
37
/* Certificate parameters */
38
char
*caFile;
39
char
*caChain;
40
int
verifyDepth;
41
bool
verifyNone;
42
43
/* TLCP parameters */
44
char
*tlcpEncCert;
45
char
*tlcpEncKey;
46
char
*tlcpSignCert;
47
char
*tlcpSignKey;
48
49
/* Output parameters */
50
bool
quiet;
51
bool
state;
52
bool
prexit;
53
54
/* Format parameters */
55
BSL_ParseFormat certFormat;
56
BSL_ParseFormat keyFormat;
57
AppProvider
*provider;
58
#ifdef HITLS_APP_SM_MODE
59
HITLS_APP_SM_Param *smParam;
60
#endif
61
}
HITLS_ClientParams
;
62
69
int
HITLS_ClientMain(
int
argc,
char
*argv[]);
70
71
#ifdef __cplusplus
72
}
73
#endif
74
75
#endif
/* HITLS_APP_CLIENT_H */
AppProvider
定义
app_provider.h:25
HITLS_ClientParams
定义
app_client.h:27
apps
include
app_client.h
制作者
1.15.0