aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/security/transport/security_handshaker.h
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-12-07 07:56:48 -0800
committerGravatar Mark D. Roth <roth@google.com>2016-12-07 07:59:29 -0800
commitd0953408971fcc8260de83f2afce9980081f0af5 (patch)
tree2cee9cb2637d15fae68b458b29550b02c189368c /src/core/lib/security/transport/security_handshaker.h
parent5335cd62b68925f478248c7ff2b01a3bb31f78a9 (diff)
Allow creating security handshaker without adding it to handshake manager.
Diffstat (limited to 'src/core/lib/security/transport/security_handshaker.h')
-rw-r--r--src/core/lib/security/transport/security_handshaker.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/core/lib/security/transport/security_handshaker.h b/src/core/lib/security/transport/security_handshaker.h
index 745cf942b3..5ddbf4b451 100644
--- a/src/core/lib/security/transport/security_handshaker.h
+++ b/src/core/lib/security/transport/security_handshaker.h
@@ -34,14 +34,13 @@
#ifndef GRPC_CORE_LIB_SECURITY_TRANSPORT_SECURITY_HANDSHAKER_H
#define GRPC_CORE_LIB_SECURITY_TRANSPORT_SECURITY_HANDSHAKER_H
-#include "src/core/lib/iomgr/endpoint.h"
+#include "src/core/lib/channel/handshaker.h"
+#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/security/transport/security_connector.h"
-/// Creates any necessary security handshakers and adds them to
-/// \a handshake_mgr.
-void grpc_security_add_handshakers(grpc_exec_ctx *exec_ctx,
- tsi_handshaker *handshaker,
- grpc_security_connector *connector,
- grpc_handshake_manager *handshake_mgr);
+/// Creates a security handshaker using \a handshaker.
+grpc_handshaker *grpc_security_handshaker_create(
+ grpc_exec_ctx *exec_ctx, tsi_handshaker *handshaker,
+ grpc_security_connector *connector);
#endif /* GRPC_CORE_LIB_SECURITY_TRANSPORT_SECURITY_HANDSHAKER_H */