Skip to content

Commit

Permalink
quiche
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlstrom-g committed Apr 23, 2024
1 parent d7aed9e commit 28be044
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
// Select the right macro based on the number of arguments.
#define MY_CR_EXPAND_ARG(arg) arg
#define GET_6TH_ARG(arg1, arg2, arg3, arg4, arg5, arg6, ...) arg6
#define QUIC_PROTOCOL_FLAG_MACRO_CHOOSER(...) \
GET_6TH_ARG(__VA_ARGS__, DEFINE_QUIC_PROTOCOL_FLAG_TWO_VALUES, \
DEFINE_QUIC_PROTOCOL_FLAG_SINGLE_VALUE)
#define QUIC_PROTOCOL_FLAG(...) \
MY_CR_EXPAND_ARG(GET_6TH_ARG(__VA_ARGS__, DEFINE_QUIC_PROTOCOL_FLAG_TWO_VALUES, \
DEFINE_QUIC_PROTOCOL_FLAG_SINGLE_VALUE)(__VA_ARGS__))
// #define QUIC_PROTOCOL_FLAG(...) \
// QUIC_PROTOCOL_FLAG_MACRO_CHOOSER(__VA_ARGS__)(__VA_ARGS__)

#include "quiche/quic/core/quic_protocol_flags_list.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define QUICHE_COMMON_QUICHE_IP_ADDRESS_H_

#include <cstdint>
#if defined(_WIN32) && defined(COBALT_PENDING_CLEAN_UP)
#if defined(_WIN32)
#include <winsock2.h>
#include <ws2tcpip.h>
#include "starboard/shared/win32/posix_emu/include/remove_problematic_windows_macros.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ bool CryptoUtils::GetSSLCapabilities(const SSL* ssl,
bssl::ScopedCBB cbb;

if (!CBB_init(cbb.get(), 128) ||
// !SSL_serialize_capabilities(ssl, cbb.get()) ||
!SSL_serialize_capabilities(ssl, cbb.get()) ||
!CBB_finish(cbb.get(), &buffer, capabilities_len)) {
return false;
}
Expand Down

0 comments on commit 28be044

Please sign in to comment.