|
|
@@ -16,6 +16,42 @@
|
|
|
|
|
|
#define TLS_SOCKET_BUFFER_SIZE 17000
|
|
|
|
|
|
+#ifndef SP_PROT_SSL2_CLIENT
|
|
|
+#define SP_PROT_SSL2_CLIENT 0x00000008
|
|
|
+#endif
|
|
|
+
|
|
|
+#ifndef SP_PROT_SSL3_CLIENT
|
|
|
+#define SP_PROT_SSL3_CLIENT 0x00000008
|
|
|
+#endif
|
|
|
+
|
|
|
+#ifndef SP_PROT_TLS1_CLIENT
|
|
|
+#define SP_PROT_TLS1_CLIENT 0x00000080
|
|
|
+#endif
|
|
|
+
|
|
|
+#ifndef SP_PROT_TLS1_0_CLIENT
|
|
|
+#define SP_PROT_TLS1_0_CLIENT SP_PROT_TLS1_CLIENT
|
|
|
+#endif
|
|
|
+
|
|
|
+#ifndef SP_PROT_TLS1_1_CLIENT
|
|
|
+#define SP_PROT_TLS1_1_CLIENT 0x00000200
|
|
|
+#endif
|
|
|
+
|
|
|
+#ifndef SP_PROT_TLS1_2_CLIENT
|
|
|
+#define SP_PROT_TLS1_2_CLIENT 0x00000800
|
|
|
+#endif
|
|
|
+
|
|
|
+#ifndef SP_PROT_TLS1_3_CLIENT
|
|
|
+#define SP_PROT_TLS1_3_CLIENT 0x00002000
|
|
|
+#endif
|
|
|
+
|
|
|
+#ifndef SCH_USE_STRONG_CRYPTO
|
|
|
+#define SCH_USE_STRONG_CRYPTO 0x00400000
|
|
|
+#endif
|
|
|
+
|
|
|
+#ifndef SECBUFFER_ALERT
|
|
|
+#define SECBUFFER_ALERT 17
|
|
|
+#endif
|
|
|
+
|
|
|
const char* hssl_backend()
|
|
|
{
|
|
|
return "schannel";
|
|
|
@@ -486,14 +522,14 @@ static void dumpconninfo(SecHandle* sechandle)
|
|
|
printd("Protocol: SSL3\n");
|
|
|
break;
|
|
|
|
|
|
- case SP_PROT_PCT1_CLIENT:
|
|
|
- printd("Protocol: PCT\n");
|
|
|
- break;
|
|
|
-
|
|
|
case SP_PROT_SSL2_CLIENT:
|
|
|
printd("Protocol: SSL2\n");
|
|
|
break;
|
|
|
|
|
|
+ case SP_PROT_PCT1_CLIENT:
|
|
|
+ printd("Protocol: PCT\n");
|
|
|
+ break;
|
|
|
+
|
|
|
default:
|
|
|
printd("Protocol: 0x%x\n", ConnectionInfo.dwProtocol);
|
|
|
}
|