|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +diff --git a/source/windows/secure_channel_tls_handler.c b/source/windows/secure_channel_tls_handler.c |
| 19 | +index 50caf02..29fe850 100644 |
| 20 | +--- a/source/windows/secure_channel_tls_handler.c |
| 21 | ++++ b/source/windows/secure_channel_tls_handler.c |
| 22 | +@@ -35,6 +36,25 @@ |
| 23 | + # pragma warning(disable : 4306) /* Identifier is type cast to a larger pointer. */ |
| 24 | + #endif |
| 25 | + |
| 26 | ++#ifndef SP_PROT_TLS1_0_SERVER |
| 27 | ++#define SP_PROT_TLS1_0_SERVER SP_PROT_TLS1_SERVER |
| 28 | ++#endif |
| 29 | ++#ifndef SP_PROT_TLS1_0_CLIENT |
| 30 | ++#define SP_PROT_TLS1_0_CLIENT SP_PROT_TLS1_CLIENT |
| 31 | ++#endif |
| 32 | ++#ifndef SP_PROT_TLS1_1_SERVER |
| 33 | ++#define SP_PROT_TLS1_1_SERVER 0x00000100 |
| 34 | ++#endif |
| 35 | ++#ifndef SP_PROT_TLS1_1_CLIENT |
| 36 | ++#define SP_PROT_TLS1_1_CLIENT 0x00000200 |
| 37 | ++#endif |
| 38 | ++#ifndef SCH_USE_STRONG_CRYPTO |
| 39 | ++#define SCH_USE_STRONG_CRYPTO 0x00400000 |
| 40 | ++#endif |
| 41 | ++#ifndef SECBUFFER_ALERT |
| 42 | ++#define SECBUFFER_ALERT 0x11 |
| 43 | ++#endif |
| 44 | ++ |
| 45 | + #define KB_1 1024 |
| 46 | + #define READ_OUT_SIZE (16 * KB_1) |
| 47 | + #define READ_IN_SIZE READ_OUT_SIZE |
| 48 | +@@ -456,7 +476,7 @@ static int s_fillin_alpn_data( |
| 49 | + |
| 50 | + *extension_length += sizeof(uint32_t) + sizeof(uint16_t); |
| 51 | + |
| 52 | +- *extension_name = SecApplicationProtocolNegotiationExt_ALPN; |
| 53 | ++ *extension_name = 2; |
| 54 | + /*now add the protocols*/ |
| 55 | + for (size_t i = 0; i < protocols_count; ++i) { |
| 56 | + struct aws_byte_cursor *protocol_ptr = NULL; |
0 commit comments