1
#pragma once
2

            
3
// Some gRPC headers contains old style cast and unused parameter which doesn't
4
// compile with -Werror, ignoring those compiler warning since we don't have
5
// control on those source codes. This works with GCC and Clang.
6

            
7
#if defined(__GNUC__)
8
#pragma GCC diagnostic push
9
#pragma GCC diagnostic ignored "-Wunused-parameter"
10
#pragma GCC diagnostic ignored "-Wold-style-cast"
11
#endif
12

            
13
#include "grpc/grpc_security.h"
14
#include "src/core/lib/transport/transport.h"
15
#include "src/core/tsi/alts/handshaker/alts_shared_resource.h"
16
#include "src/core/tsi/alts/handshaker/alts_tsi_handshaker.h"
17
#include "src/core/tsi/alts/handshaker/transport_security_common_api.h"
18
#include "src/core/tsi/transport_security_grpc.h"
19
#include "src/core/tsi/transport_security_interface.h"
20

            
21
#if defined(__GNUC__)
22
#pragma GCC diagnostic pop
23
#endif
24

            
25
#include "source/common/common/c_smart_ptr.h"
26

            
27
namespace Envoy {
28
namespace Extensions {
29
namespace TransportSockets {
30
namespace Alts {
31

            
32
using CFrameProtectorPtr =
33
    CSmartPtr<tsi_zero_copy_grpc_protector, tsi_zero_copy_grpc_protector_destroy>;
34

            
35
using CHandshakerResultPtr = CSmartPtr<tsi_handshaker_result, tsi_handshaker_result_destroy>;
36
using CHandshakerPtr = CSmartPtr<tsi_handshaker, tsi_handshaker_destroy>;
37

            
38
} // namespace Alts
39
} // namespace TransportSockets
40
} // namespace Extensions
41
} // namespace Envoy