6 #ifndef TW_C_SDK_TWTEMPLATESSL_H
7 #define TW_C_SDK_TWTEMPLATESSL_H
16 #include "path/to/my/ssl/header.h"
21 #define TW_SSL my_ssl_struct
27 #define TW_SSL_FREE(a) my_ssl_struct_delete(a)
33 #define TW_SSL_SESSION_ID(a) my_ssl_struct->session_id
38 #define TW_SSL_CTX my_ssl_struct_ctx
42 #define TW_NEW_SSL_CTX my_ssl_struct_ctx_create()
48 #define TW_SSL_CTX_FREE(a) my_ssl_struct_ctx_delete()
57 #define TW_USE_CERT_FILE(a, b, c) my_ssl_struct_ctx_load_object(a,b,c)
66 #define TW_USE_KEY_FILE(a, b, c, d) my_ssl_struct_ctx_load_object(a,b,c)
80 #define TW_USE_CERT_CHAIN_FILE(a, b, c) my_ssl_struct_ctx_load_object(a,b,c)
93 #define TW_SET_CLIENT_CA_LIST(a, b) my_ssl_struct_ctx_load_object(a,b,NULL)
102 #define TW_IS_FIPS_COMPATIBLE() returnValue(TW_FIPS_MODE_NOT_SUPPORTED)
110 #define TW_ENABLE_FIPS_MODE() returnValue(TW_FIPS_MODE_NOT_SUPPORTED)
118 #define TW_DISABLE_FIPS_MODE() returnValue(TW_FIPS_MODE_NOT_SUPPORTED)
126 #define TW_IS_FIPS_MODE_ENABLED() returnValue(FALSE)
133 #define TW_SSL_VERSION() returnValue(NULL)
139 #define TW_SHA1_CTX hash_state
145 #define TW_SHA1_INIT(a) sha1_init(a)
156 #define TW_SHA1_UPDATE(a, b, c) sha1_process(a,b,c)
163 #define TW_SHA1_FINAL(a, b) sha1_done(b,a)
168 #define TW_MD5_CTX hash_state
174 #define TW_MD5_INIT(a) sha1_init(a)
185 #define TW_MD5_UPDATE(a, b, c) sha1_process(a,b,c)
192 #define TW_MD5_FINAL(a, b) sha1_done(b,a)
194 #endif //TW_C_SDK_TWTEMPLATESSL_H
String utility function prototypes.
Wrappers for OS-specific functionality.
Structure definitions and function prototypes for the ThingWorx logging facility. ...