|
|
|
@ -38,6 +38,7 @@ |
|
|
|
|
#include <grpc/support/log.h> |
|
|
|
|
#include <grpc/support/sync.h> |
|
|
|
|
#include "src/core/lib/debug/trace.h" |
|
|
|
|
#include "src/core/lib/iomgr/sockaddr.h" |
|
|
|
|
#include "src/core/lib/profiling/timers.h" |
|
|
|
|
#include "src/core/lib/security/transport/tsi_error.h" |
|
|
|
|
#include "src/core/lib/slice/slice_string_helpers.h" |
|
|
|
@ -366,6 +367,8 @@ static char *endpoint_get_peer(grpc_endpoint *secure_ep) { |
|
|
|
|
return grpc_endpoint_get_peer(ep->wrapped_ep); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static int endpoint_get_fd(grpc_endpoint *secure_ep) { return -1; } |
|
|
|
|
|
|
|
|
|
static grpc_workqueue *endpoint_get_workqueue(grpc_endpoint *secure_ep) { |
|
|
|
|
secure_endpoint *ep = (secure_endpoint *)secure_ep; |
|
|
|
|
return grpc_endpoint_get_workqueue(ep->wrapped_ep); |
|
|
|
@ -385,7 +388,8 @@ static const grpc_endpoint_vtable vtable = {endpoint_read, |
|
|
|
|
endpoint_shutdown, |
|
|
|
|
endpoint_destroy, |
|
|
|
|
endpoint_get_resource_user, |
|
|
|
|
endpoint_get_peer}; |
|
|
|
|
endpoint_get_peer, |
|
|
|
|
endpoint_get_fd}; |
|
|
|
|
|
|
|
|
|
grpc_endpoint *grpc_secure_endpoint_create( |
|
|
|
|
struct tsi_frame_protector *protector, grpc_endpoint *transport, |
|
|
|
|