ThingWorx C SDK
twConnectionInfo.h
Go to the documentation of this file.
1 /***************************************
2  * Copyright 2017, PTC, Inc.
3  ***************************************/
4 
10 #ifndef TW_CONNECTION_INFO_H
11 #define TW_CONNECTION_INFO_H
12 
13 #include "twOSPort.h"
14 #include "twPasswds.h"
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
23 typedef struct twConnectionInfo {
24  /* Host Info */
25  char * ws_host;
26  uint16_t ws_port;
27  twPasswdCallbackFunction appkeyFunction;
37  /* Proxy info */
38  char * proxy_host;
39  uint16_t proxy_port;
40  char * proxy_user;
41  twPasswdCallbackFunction proxy_pwd;
42  /* Cert info */
43  char * subject_cn;
44  char * subject_o;
45  char * subject_ou;
46  char * issuer_cn;
47  char * issuer_o;
48  char * issuer_ou;
49  char * ca_cert_file;
51  char * client_key_file;
52  twPasswdCallbackFunction client_key_passphrase;
53  char selfsignedOk;
57 
72 
82 void twConnectionInfo_Delete(void * info);
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 #endif
char * subject_ou
Definition: twConnectionInfo.h:45
char * issuer_cn
Definition: twConnectionInfo.h:46
twConnectionInfo * twConnectionInfo_Create(twConnectionInfo *copy)
Creates a new twConnectionInfo structure, optionally copying settings of an existing twConnectionInfo...
Definition: twConnectionInfo.c:11
twPasswdCallbackFunction proxy_pwd
Definition: twConnectionInfo.h:41
char * issuer_ou
Definition: twConnectionInfo.h:48
Wrappers for OS-specific functionality.
twPasswdCallbackFunction client_key_passphrase
Definition: twConnectionInfo.h:52
char * client_cert_file
Definition: twConnectionInfo.h:50
void twConnectionInfo_Delete(void *info)
Frees all memory associated with a twConnectionInfo structure and all of its owned substructures...
Definition: twConnectionInfo.c:38
char * client_key_file
Definition: twConnectionInfo.h:51
uint16_t ws_port
Definition: twConnectionInfo.h:26
char * proxy_host
Definition: twConnectionInfo.h:38
char doNotValidateCert
Definition: twConnectionInfo.h:54
struct twConnectionInfo twConnectionInfo
Tunnel Connection Details Structure Definition.
char disableEncryption
Definition: twConnectionInfo.h:55
char selfsignedOk
Definition: twConnectionInfo.h:53
char * subject_o
Definition: twConnectionInfo.h:44
Tunnel Connection Details Structure Definition.
Definition: twConnectionInfo.h:23
char * proxy_user
Definition: twConnectionInfo.h:40
char * ws_host
Definition: twConnectionInfo.h:25
char * subject_cn
Definition: twConnectionInfo.h:43
uint16_t proxy_port
Definition: twConnectionInfo.h:39
char * ca_cert_file
Definition: twConnectionInfo.h:49
char * issuer_o
Definition: twConnectionInfo.h:47