glusterfsd: explicitly turn on encryption for volfile fetch
Change-Id: I58e1fe7f5edf0abb5732432291ff677e81429b79 BUG: 1333317 Signed-off-by: Kaushal M <kaushal@redhat.com> Reviewed-on: http://review.gluster.org/14253 Smoke: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
This commit is contained in:
parent
8299ad374b
commit
60d235515e
@ -2134,6 +2134,19 @@ glusterfs_mgmt_init (glusterfs_ctx_t *ctx)
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
/* Explicitly turn on encrypted transport. */
|
||||
if (ctx->secure_mgmt) {
|
||||
ret = dict_set_dynstr_with_alloc
|
||||
(options, "transport.socket.ssl-enabled", "yes");
|
||||
if (ret) {
|
||||
gf_log (THIS->name, GF_LOG_ERROR,
|
||||
"failed to set 'transport.socket.ssl-enabled' "
|
||||
"in options dict");
|
||||
goto out;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
rpc = rpc_clnt_new (options, THIS, THIS->name, 8);
|
||||
if (!rpc) {
|
||||
ret = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user