소스 검색

WinTLS: Move some defines out of the header

Nils Maier 11 년 전
부모
커밋
51beb4bfa7
2개의 변경된 파일14개의 추가작업 그리고 13개의 파일을 삭제
  1. 14 0
      src/WinTLSContext.cc
  2. 0 13
      src/WinTLSContext.h

+ 14 - 0
src/WinTLSContext.cc

@@ -44,6 +44,20 @@
 #include "message.h"
 #include "util.h"
 
+#ifndef SP_PROT_TLS1_1_CLIENT
+#define SP_PROT_TLS1_1_CLIENT 0x00000200
+#endif
+#ifndef SP_PROT_TLS1_1_SERVER
+#define SP_PROT_TLS1_1_SERVER 0x00000100
+#endif
+#ifndef SP_PROT_TLS1_2_CLIENT
+#define SP_PROT_TLS1_2_CLIENT 0x00000800
+#endif
+#ifndef SP_PROT_TLS1_2_SERVER
+#define SP_PROT_TLS1_2_SERVER 0x00000400
+#endif
+
+
 #ifndef SCH_USE_STRONG_CRYPTO
 #define SCH_USE_STRONG_CRYPTO 0x00400000
 #endif

+ 0 - 13
src/WinTLSContext.h

@@ -48,19 +48,6 @@
 #include "TLSContext.h"
 #include "DlAbortEx.h"
 
-#ifndef SP_PROT_TLS1_1_CLIENT
-#define SP_PROT_TLS1_1_CLIENT 0x00000200
-#endif
-#ifndef SP_PROT_TLS1_1_SERVER
-#define SP_PROT_TLS1_1_SERVER 0x00000100
-#endif
-#ifndef SP_PROT_TLS1_2_CLIENT
-#define SP_PROT_TLS1_2_CLIENT 0x00000800
-#endif
-#ifndef SP_PROT_TLS1_2_SERVER
-#define SP_PROT_TLS1_2_SERVER 0x00000400
-#endif
-
 namespace aria2 {
 
 namespace wintls {