Skip to content

Commit

Permalink
ENG-3453: Add TLS support to RPC layer
Browse files Browse the repository at this point in the history
Summary:
Added TLS support to RPC layer.
Also separated Connection class into transport and logic layers.

Test Plan: ybd --cxx-test rpc_stub-test --gtest_filter *.TLS

Reviewers: mikhail, amitanand, pritam.damania

Reviewed By: pritam.damania

Subscribers: bogdan, bharat, karthik, ybase

Differential Revision: https://phabricator.dev.yugabyte.com/D4953
  • Loading branch information
spolitov committed Jun 20, 2018
1 parent 8d1f129 commit 1c90408
Show file tree
Hide file tree
Showing 30 changed files with 914 additions and 511 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,12 @@ function(ADD_YB_TEST REL_TEST_NAME)
endif()
endfunction()

function(ADD_YB_TESTS TESTS)
foreach(TEST ${TESTS})
ADD_YB_TEST(${TEST})
endforeach(TEST)
endfunction()

# A wrapper for add_dependencies() that is compatible with NO_TESTS.
function(ADD_YB_TEST_DEPENDENCIES REL_TEST_NAME)
if(NO_TESTS)
Expand Down
10 changes: 8 additions & 2 deletions src/yb/rpc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
# under the License.
#

YB_INCLUDE_EXTENSIONS()

#### Global header protobufs
PROTOBUF_GENERATE_CPP(
RPC_HEADER_PROTO_SRCS RPC_HEADER_PROTO_HDRS RPC_HEADER_PROTO_TGTS
Expand Down Expand Up @@ -80,16 +82,19 @@ set(YRPC_SRCS
serialization.cc
service_if.cc
service_pool.cc
tcp_stream.cc
thread_pool.cc
yb_rpc.cc)
yb_rpc.cc
${RPC_SRCS_EXTENSIONS})

set(YRPC_LIBS
redis_protocol_proto
rpc_header_proto
rpc_introspection_proto
yb_util
gutil
libev)
libev
${RPC_LIBS_EXTENSIONS})

ADD_YB_LIBRARY(yrpc
SRCS ${YRPC_SRCS}
Expand Down Expand Up @@ -136,3 +141,4 @@ ADD_YB_TEST(rpc-test)
ADD_YB_TEST(rpc_stub-test RUN_SERIAL true)
ADD_YB_TEST(scheduler-test)
ADD_YB_TEST(thread_pool-test)
ADD_YB_TESTS(${RPC_ADDITIONAL_TESTS})
Loading

0 comments on commit 1c90408

Please sign in to comment.