diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-04-17 22:06:12 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-04-17 22:06:12 +0200 |
commit | 3f35a946ca00996b354a73831ef51aa269e8e623 (patch) | |
tree | a569ebdf52183b9629221278740bf8f552912846 /src/ParserConfigfile.cpp | |
parent | 80f7b54c85386d171b6b8924e925026d25e4ad47 (diff) | |
download | dabmux-3f35a946ca00996b354a73831ef51aa269e8e623.tar.gz dabmux-3f35a946ca00996b354a73831ef51aa269e8e623.tar.bz2 dabmux-3f35a946ca00996b354a73831ef51aa269e8e623.zip |
Add CURVE authentification support for dabInputZMQ
Diffstat (limited to 'src/ParserConfigfile.cpp')
-rw-r--r-- | src/ParserConfigfile.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ParserConfigfile.cpp b/src/ParserConfigfile.cpp index c59f5e5..b477f1d 100644 --- a/src/ParserConfigfile.cpp +++ b/src/ParserConfigfile.cpp @@ -676,6 +676,7 @@ void setup_subchannel_from_ptree(dabSubchannel* subchan, " has no zmq-buffer defined!"; throw runtime_error(ss.str()); } + try { zmqconfig.prebuffering = pt.get<int>("zmq-prebuffering"); } @@ -686,7 +687,11 @@ void setup_subchannel_from_ptree(dabSubchannel* subchan, throw runtime_error(ss.str()); } - zmqconfig.enable_encryption = false; + zmqconfig.curve_encoder_keyfile = pt.get<string>("encoder-key",""); + zmqconfig.curve_secret_keyfile = pt.get<string>("secret-key",""); + zmqconfig.curve_public_keyfile = pt.get<string>("public-key",""); + + zmqconfig.enable_encryption = pt.get<int>("encryption", 0); DabInputZmqAAC* inzmq = new DabInputZmqAAC(subchanuid, zmqconfig); |