Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
f7aab8c9
Unverified
Commit
f7aab8c9
authored
Jan 31, 2019
by
old-bear
Committed by
GitHub
Jan 31, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #629 from mesalock-linux/mesalink-tls-backend
tls: MesaLink TLS backend for RPC over TLS
parents
4409f452
d0589fbb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
178 additions
and
57 deletions
+178
-57
.travis.yml
.travis.yml
+3
-0
build_in_travis_ci.sh
build_in_travis_ci.sh
+6
-1
config_brpc.sh
config_brpc.sh
+17
-1
controller.h
src/brpc/controller.h
+5
-0
mesalink_ssl_helper.cpp
src/brpc/details/mesalink_ssl_helper.cpp
+0
-0
ssl_helper.cpp
src/brpc/details/ssl_helper.cpp
+5
-0
ssl_helper.h
src/brpc/details/ssl_helper.h
+6
-0
global.cpp
src/brpc/global.cpp
+5
-0
socket.cpp
src/brpc/socket.cpp
+6
-1
iobuf.cpp
src/butil/iobuf.cpp
+13
-0
iobuf.h
src/butil/iobuf.h
+4
-0
brpc_ssl_unittest.cpp
test/brpc_ssl_unittest.cpp
+6
-0
cert1.crt
test/cert1.crt
+23
-12
cert1.key
test/cert1.key
+28
-15
cert2.crt
test/cert2.crt
+23
-12
cert2.key
test/cert2.key
+28
-15
No files found.
.travis.yml
View file @
f7aab8c9
...
...
@@ -10,6 +10,8 @@ env:
-
PURPOSE=compile
-
PURPOSE=unittest
-
PURPOSE=compile-with-bazel
-
PURPOSE=compile USE_MESALINK=yes
-
PURPOSE=unittest USE_MESALINK=yes
before_script
:
-
ulimit -c unlimited -S
# enable core dumps
...
...
@@ -23,6 +25,7 @@ install:
-
sudo apt-get install -qq realpath libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev libgoogle-perftools-dev libboost-dev libssl-dev libevent-dev libboost-test-dev
-
sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo env "PATH=$PATH" cmake . && sudo make && sudo mv libgtest* /usr/lib/ && cd -
-
sudo apt-get install -y gdb
# install gdb
-
if [[ "$USE_MESALINK" == "yes" ]]; then curl https://sh.rustup.rs -sSf | sh -s -- -y && source $HOME/.cargo/env && wget https://github.com/mesalock-linux/mesalink/archive/v0.8.0.tar.gz && tar -xf v0.8.0.tar.gz && cd mesalink-0.8.0 && ./autogen.sh --prefix=/usr/ && make && sudo make install && cd - ; fi
script
:
-
if [[ "$PURPOSE" == "compile-with-bazel" ]]; then bazel build -j 12 -c opt --copt -DHAVE_ZLIB=1 //... ; fi
...
...
build_in_travis_ci.sh
View file @
f7aab8c9
...
...
@@ -21,8 +21,13 @@ runcmd(){
echo
"build combination: PURPOSE=
$PURPOSE
CXX=
$CXX
CC=
$CC
"
EXTRA_BUILD_OPTS
=
""
if
[
"
$USE_MESALINK
"
=
"yes"
]
;
then
EXTRA_BUILD_OPTS
=
"
$EXTRA_BUILD_OPTS
--with-mesalink"
fi
# The default env in travis-ci is Ubuntu.
if
!
sh config_brpc.sh
--headers
=
/usr/include
--libs
=
/usr/lib
--nodebugsymbols
--cxx
=
$CXX
--cc
=
$CC
;
then
if
!
sh config_brpc.sh
--headers
=
/usr/include
--libs
=
/usr/lib
--nodebugsymbols
--cxx
=
$CXX
--cc
=
$CC
$EXTRA_BUILD_OPTS
;
then
echo
"Fail to configure brpc"
exit
1
fi
...
...
config_brpc.sh
View file @
f7aab8c9
...
...
@@ -21,9 +21,10 @@ else
LDD
=
ldd
fi
TEMP
=
`
getopt
-o
v:
--long
headers:,libs:,cc:,cxx:,with-glog,with-thrift,nodebugsymbols
-n
'config_brpc'
--
"
$@
"
`
TEMP
=
`
getopt
-o
v:
--long
headers:,libs:,cc:,cxx:,with-glog,with-thrift,
with-mesalink,
nodebugsymbols
-n
'config_brpc'
--
"
$@
"
`
WITH_GLOG
=
0
WITH_THRIFT
=
0
WITH_MESALINK
=
0
DEBUGSYMBOLS
=
-g
if
[
$?
!=
0
]
;
then
>
&2
$ECHO
"Terminating..."
;
exit
1
;
fi
...
...
@@ -46,6 +47,7 @@ while true; do
--cxx
)
CXX
=
$2
;
shift
2
;;
--with-glog
)
WITH_GLOG
=
1
;
shift
1
;;
--with-thrift
)
WITH_THRIFT
=
1
;
shift
1
;;
--with-mesalink
)
WITH_MESALINK
=
1
;
shift
1
;;
--nodebugsymbols
)
DEBUGSYMBOLS
=
;
shift
1
;;
--
)
shift
;
break
;;
*
)
break
;;
...
...
@@ -137,8 +139,18 @@ find_dir_of_header_or_die() {
#PTHREAD_HDR=$(find_dir_of_header_or_die pthread.h)
OPENSSL_HDR
=
$(
find_dir_of_header_or_die openssl/ssl.h
)
if
[
$WITH_MESALINK
!=
0
]
;
then
MESALINK_HDR
=
$(
find_dir_of_header_or_die mesalink/openssl/ssl.h
)
OPENSSL_HDR
=
"
$OPENSSL_HDR
\n
$MESALINK_HDR
"
fi
STATIC_LINKINGS
=
DYNAMIC_LINKINGS
=
"-lpthread -lssl -lcrypto -ldl -lz"
if
[
$WITH_MESALINK
!=
0
]
;
then
DYNAMIC_LINKINGS
=
"
$DYNAMIC_LINKINGS
-lmesalink"
fi
if
[
"
$SYSTEM
"
=
"Linux"
]
;
then
DYNAMIC_LINKINGS
=
"
$DYNAMIC_LINKINGS
-lrt"
fi
...
...
@@ -304,6 +316,10 @@ if [ $WITH_THRIFT != 0 ]; then
fi
fi
if
[
$WITH_MESALINK
!=
0
]
;
then
CPPFLAGS
=
"
${
CPPFLAGS
}
-DUSE_MESALINK"
fi
append_to_output
"CPPFLAGS=
${
CPPFLAGS
}
"
append_to_output
"ifeq (
\$
(NEED_LIBPROTOC), 1)"
...
...
src/brpc/controller.h
View file @
f7aab8c9
...
...
@@ -48,7 +48,12 @@
#endif
extern
"C"
{
#ifndef USE_MESALINK
struct
x509_st
;
#else
#include <mesalink/openssl/x509.h>
#define x509_st X509
#endif
}
namespace
brpc
{
...
...
src/brpc/details/mesalink_ssl_helper.cpp
0 → 100644
View file @
f7aab8c9
This diff is collapsed.
Click to expand it.
src/brpc/details/ssl_helper.cpp
View file @
f7aab8c9
...
...
@@ -14,6 +14,9 @@
// Authors: Rujie Jiang (jiangrujie@baidu.com)
#ifndef USE_MESALINK
#include <sys/socket.h> // recv
#include <openssl/ssl.h>
#include <openssl/err.h>
...
...
@@ -829,3 +832,5 @@ void Print(std::ostream& os, X509* cert, const char* sep) {
}
}
// namespace brpc
#endif // USE_MESALINK
src/brpc/details/ssl_helper.h
View file @
f7aab8c9
...
...
@@ -18,9 +18,15 @@
#define BRPC_SSL_HELPER_H
#include <string.h>
#ifndef USE_MESALINK
#include <openssl/ssl.h>
// For some versions of openssl, SSL_* are defined inside this header
#include <openssl/ossl_typ.h>
#else
#include <mesalink/openssl/ssl.h>
#include <mesalink/openssl/err.h>
#include <mesalink/openssl/x509.h>
#endif
#include "brpc/socket_id.h" // SocketId
#include "brpc/ssl_options.h" // ServerSSLOptions
...
...
src/brpc/global.cpp
View file @
f7aab8c9
...
...
@@ -14,8 +14,13 @@
// Authors: Ge,Jun (gejun@baidu.com)
#ifndef USE_MESALINK
#include <openssl/ssl.h>
#include <openssl/conf.h>
#else
#include <mesalink/openssl/ssl.h>
#endif
#include <gflags/gflags.h>
#include <fcntl.h> // O_RDONLY
#include <signal.h>
...
...
src/brpc/socket.cpp
View file @
f7aab8c9
...
...
@@ -19,6 +19,11 @@
#include "butil/compat.h" // OS_MACOSX
#include <openssl/ssl.h>
#include <openssl/err.h>
#ifdef USE_MESALINK
#include <mesalink/openssl/ssl.h>
#include <mesalink/openssl/err.h>
#include <mesalink/openssl/x509.h>
#endif
#include <netinet/tcp.h> // getsockopt
#include <gflags/gflags.h>
#include "bthread/unstable.h" // bthread_timer_del
...
...
@@ -1834,7 +1839,7 @@ int Socket::SSLHandshake(int fd, bool server_mode) {
LOG
(
ERROR
)
<<
"Fail to CreateSSLSession"
;
return
-
1
;
}
#if
def SSL_CTRL_SET_TLSEXT_HOSTNAME
#if
defined(SSL_CTRL_SET_TLSEXT_HOSTNAME) || defined(USE_MESALINK)
if
(
!
_ssl_ctx
->
sni_name
.
empty
())
{
SSL_set_tlsext_host_name
(
_ssl_session
,
_ssl_ctx
->
sni_name
.
c_str
());
}
...
...
src/butil/iobuf.cpp
View file @
f7aab8c9
...
...
@@ -17,6 +17,10 @@
// Date: Thu Nov 22 13:57:56 CST 2012
#include <openssl/ssl.h> // SSL_*
#ifdef USE_MESALINK
#include <mesalink/openssl/ssl.h>
#include <mesalink/openssl/err.h>
#endif
#include <sys/syscall.h> // syscall
#include <fcntl.h> // O_RDONLY
#include <errno.h> // errno
...
...
@@ -1033,6 +1037,7 @@ ssize_t IOBuf::cut_multiple_into_SSL_channel(SSL* ssl, IOBuf* const* pieces,
}
}
#ifndef USE_MESALINK
// Flush remaining data inside the BIO buffer layer
BIO
*
wbio
=
SSL_get_wbio
(
ssl
);
if
(
BIO_wpending
(
wbio
)
>
0
)
{
...
...
@@ -1043,6 +1048,14 @@ ssize_t IOBuf::cut_multiple_into_SSL_channel(SSL* ssl, IOBuf* const* pieces,
return
rc
;
}
}
#else
int
rc
=
SSL_flush
(
ssl
);
if
(
rc
<=
0
)
{
*
ssl_error
=
SSL_ERROR_SYSCALL
;
return
rc
;
}
#endif
return
nw
;
}
...
...
src/butil/iobuf.h
View file @
f7aab8c9
...
...
@@ -39,7 +39,11 @@ struct const_iovec {
const
void
*
iov_base
;
size_t
iov_len
;
};
#ifndef USE_MESALINK
struct
ssl_st
;
#else
#define ssl_st MESALINK_SSL
#endif
}
namespace
butil
{
...
...
test/brpc_ssl_unittest.cpp
View file @
f7aab8c9
...
...
@@ -109,6 +109,7 @@ TEST_F(SSLTest, sanity) {
brpc
::
Channel
channel
;
brpc
::
ChannelOptions
coptions
;
coptions
.
mutable_ssl_options
();
coptions
.
mutable_ssl_options
()
->
sni_name
=
"localhost"
;
ASSERT_EQ
(
0
,
channel
.
Init
(
"localhost"
,
port
,
&
coptions
));
brpc
::
Controller
cntl
;
...
...
@@ -125,6 +126,7 @@ TEST_F(SSLTest, sanity) {
brpc
::
Channel
channel
;
brpc
::
ChannelOptions
coptions
;
coptions
.
mutable_ssl_options
();
coptions
.
mutable_ssl_options
()
->
sni_name
=
"localhost"
;
ASSERT_EQ
(
0
,
channel
.
Init
(
"127.0.0.1"
,
port
,
&
coptions
));
for
(
int
i
=
0
;
i
<
NUM
;
++
i
)
{
google
::
protobuf
::
Closure
*
thrd_func
=
...
...
@@ -141,6 +143,7 @@ TEST_F(SSLTest, sanity) {
brpc
::
ChannelOptions
coptions
;
coptions
.
protocol
=
"http"
;
coptions
.
mutable_ssl_options
();
coptions
.
mutable_ssl_options
()
->
sni_name
=
"localhost"
;
ASSERT_EQ
(
0
,
channel
.
Init
(
"127.0.0.1"
,
port
,
&
coptions
));
for
(
int
i
=
0
;
i
<
NUM
;
++
i
)
{
google
::
protobuf
::
Closure
*
thrd_func
=
...
...
@@ -322,6 +325,9 @@ TEST_F(SSLTest, ssl_perf) {
brpc
::
CreateServerSSLContext
(
"cert1.crt"
,
"cert1.key"
,
brpc
::
SSLOptions
(),
NULL
);
SSL
*
cli_ssl
=
brpc
::
CreateSSLSession
(
cli_ctx
,
0
,
clifd
,
false
);
#if defined(SSL_CTRL_SET_TLSEXT_HOSTNAME) || defined(USE_MESALINK)
SSL_set_tlsext_host_name
(
cli_ssl
,
"localhost"
);
#endif
SSL
*
serv_ssl
=
brpc
::
CreateSSLSession
(
serv_ctx
,
0
,
servfd
,
true
);
pthread_t
cpid
;
pthread_t
spid
;
...
...
test/cert1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xDN3Pwo+55Kxwx42Ir7GHmevvNa+RitQYePZVsdLGxY+azh11/5bOZ14
ZkVDf9Glu7bDIwn1wz4HpFw=
-----END PRIVATE KEY-----
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment