From 51beb4bfa7014c3107f9f3326128f1f6e20770d7 Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Sun, 13 Apr 2014 17:04:13 +0200 Subject: [PATCH] WinTLS: Move some defines out of the header --- src/WinTLSContext.cc | 14 ++++++++++++++ src/WinTLSContext.h | 13 ------------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/WinTLSContext.cc b/src/WinTLSContext.cc index 925afbb8..3ed88e45 100644 --- a/src/WinTLSContext.cc +++ b/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 diff --git a/src/WinTLSContext.h b/src/WinTLSContext.h index a10d7f00..cd63bda7 100644 --- a/src/WinTLSContext.h +++ b/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 {