Skip to content

Commit 1e3c03e

Browse files
committed
fix build error on low-version mingw compiler
1 parent b968776 commit 1e3c03e

1 file changed

Lines changed: 29 additions & 1 deletion

File tree

ssl/wintls.c

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,58 @@
1616

1717
#define TLS_SOCKET_BUFFER_SIZE 17000
1818

19+
#ifndef SP_PROT_SSL2_SERVER
20+
#define SP_PROT_SSL2_SERVER 0x00000004
21+
#endif
22+
1923
#ifndef SP_PROT_SSL2_CLIENT
2024
#define SP_PROT_SSL2_CLIENT 0x00000008
2125
#endif
2226

27+
#ifndef SP_PROT_SSL3_SERVER
28+
#define SP_PROT_SSL3_SERVER 0x00000010
29+
#endif
30+
2331
#ifndef SP_PROT_SSL3_CLIENT
24-
#define SP_PROT_SSL3_CLIENT 0x00000008
32+
#define SP_PROT_SSL3_CLIENT 0x00000020
33+
#endif
34+
35+
#ifndef SP_PROT_TLS1_SERVER
36+
#define SP_PROT_TLS1_SERVER 0x00000040
2537
#endif
2638

2739
#ifndef SP_PROT_TLS1_CLIENT
2840
#define SP_PROT_TLS1_CLIENT 0x00000080
2941
#endif
3042

43+
#ifndef SP_PROT_TLS1_0_SERVER
44+
#define SP_PROT_TLS1_0_SERVER SP_PROT_TLS1_SERVER
45+
#endif
46+
3147
#ifndef SP_PROT_TLS1_0_CLIENT
3248
#define SP_PROT_TLS1_0_CLIENT SP_PROT_TLS1_CLIENT
3349
#endif
3450

51+
#ifndef SP_PROT_TLS1_1_SERVER
52+
#define SP_PROT_TLS1_1_SERVER 0x00000100
53+
#endif
54+
3555
#ifndef SP_PROT_TLS1_1_CLIENT
3656
#define SP_PROT_TLS1_1_CLIENT 0x00000200
3757
#endif
3858

59+
#ifndef SP_PROT_TLS1_2_SERVER
60+
#define SP_PROT_TLS1_2_SERVER 0x00000400
61+
#endif
62+
3963
#ifndef SP_PROT_TLS1_2_CLIENT
4064
#define SP_PROT_TLS1_2_CLIENT 0x00000800
4165
#endif
4266

67+
#ifndef SP_PROT_TLS1_3_SERVER
68+
#define SP_PROT_TLS1_3_SERVER 0x00001000
69+
#endif
70+
4371
#ifndef SP_PROT_TLS1_3_CLIENT
4472
#define SP_PROT_TLS1_3_CLIENT 0x00002000
4573
#endif

0 commit comments

Comments
 (0)