Go to the documentation of this file.
35 #define TlsIoHandle TlsSocketHandle
38 #define tlsSetIoCallbacks(context, handle, sendCallback, receiveCallback) \
39 tlsSetSocketCallbacks(context, sendCallback, receiveCallback, handle);
41 #ifdef TLS_RSA_SUPPORT
42 #if (TLS_RSA_SUPPORT == ENABLED)
43 #define TLS_RSA_KE_SUPPORT ENABLED
45 #define TLS_RSA_KE_SUPPORT DISABLED
47 #undef TLS_RSA_SUPPORT
50 #ifdef TLS_DHE_RSA_SUPPORT
51 #define TLS_DHE_RSA_KE_SUPPORT TLS_DHE_RSA_SUPPORT
54 #ifdef TLS_DHE_DSS_SUPPORT
55 #define TLS_DHE_DSS_KE_SUPPORT TLS_DHE_DSS_SUPPORT
58 #ifdef TLS_DH_ANON_SUPPORT
59 #define TLS_DH_ANON_KE_SUPPORT TLS_DH_ANON_SUPPORT
62 #ifdef TLS_ECDHE_RSA_SUPPORT
63 #define TLS_ECDHE_RSA_KE_SUPPORT TLS_ECDHE_RSA_SUPPORT
66 #ifdef TLS_ECDHE_ECDSA_SUPPORT
67 #define TLS_ECDHE_ECDSA_KE_SUPPORT TLS_ECDHE_ECDSA_SUPPORT
70 #ifdef TLS_ECDH_ANON_SUPPORT
71 #define TLS_ECDH_ANON_KE_SUPPORT TLS_ECDH_ANON_SUPPORT
74 #ifdef TLS_PSK_SUPPORT
75 #if (TLS_PSK_SUPPORT == ENABLED)
76 #define TLS_PSK_KE_SUPPORT ENABLED
78 #define TLS_PSK_KE_SUPPORT DISABLED
80 #undef TLS_PSK_SUPPORT
83 #ifdef TLS_RSA_PSK_SUPPORT
84 #define TLS_RSA_PSK_KE_SUPPORT TLS_RSA_PSK_SUPPORT
87 #ifdef TLS_DHE_PSK_SUPPORT
88 #define TLS_DHE_PSK_KE_SUPPORT TLS_DHE_PSK_SUPPORT
91 #ifdef TLS_ECDHE_PSK_SUPPORT
92 #define TLS_ECDHE_PSK_KE_SUPPORT TLS_ECDHE_PSK_SUPPORT
95 #ifdef TLS_CURVE25519_SUPPORT
96 #define TLS_X25519_SUPPORT TLS_CURVE25519_SUPPORT
99 #ifdef TLS_CURVE448_SUPPORT
100 #define TLS_X448_SUPPORT TLS_CURVE448_SUPPORT
103 #define TlsSession TlsSessionState
104 #define tlsSaveSession tlsSaveSessionState
105 #define tlsRestoreSession tlsRestoreSessionState
107 #ifdef TLS_AES_SUPPORT
108 #define TLS_AES_128_SUPPORT TLS_AES_SUPPORT
109 #define TLS_AES_256_SUPPORT TLS_AES_SUPPORT
112 #ifdef TLS_CAMELLIA_SUPPORT
113 #define TLS_CAMELLIA_128_SUPPORT TLS_CAMELLIA_SUPPORT
114 #define TLS_CAMELLIA_256_SUPPORT TLS_CAMELLIA_SUPPORT
117 #ifdef TLS_ARIA_SUPPORT
118 #define TLS_ARIA_128_SUPPORT TLS_ARIA_SUPPORT
119 #define TLS_ARIA_256_SUPPORT TLS_ARIA_SUPPORT
122 #if defined(TLS_EDDSA_SIGN_SUPPORT) && defined(TLS_ED25519_SUPPORT)
123 #if (TLS_EDDSA_SIGN_SUPPORT == ENABLED && TLS_ED25519_SUPPORT == ENABLED)
124 #define TLS_ED25519_SIGN_SUPPORT ENABLED
126 #define TLS_ED25519_SIGN SUPPORT DISABLED
130 #if defined(TLS_EDDSA_SIGN_SUPPORT) && defined(TLS_ED448_SUPPORT)
131 #if (TLS_EDDSA_SIGN_SUPPORT == ENABLED && TLS_ED448_SUPPORT == ENABLED)
132 #define TLS_ED448_SIGN_SUPPORT ENABLED
134 #define TLS_ED448_SIGN SUPPORT DISABLED
138 #define TLS_GROUP_ECDH_X25519 TLS_GROUP_X25519
139 #define TLS_GROUP_ECDH_X448 TLS_GROUP_X448