crossbario / autobahn-cpp

WAMP for C++ in Boost/Asio
https://crossbar.io/autobahn
Boost Software License 1.0
251 stars 104 forks source link

Add preprocessor rules for OpenSSL < 1.1 compatibility #158

Closed j-mullen closed 7 years ago

j-mullen commented 7 years ago

Added rules to conditionally use the compatible HMAC authentication code based on detected OpenSSL version.

While not strictly anything earth-shattering, a project I'm working on doesn't have anything newer than a (LTS support team) patched version of OpenSSL 1.0.1e. Therefore, updating to the latest Autobahn caused our build to break (ref: #148). Therefore, I added the rules so that others that have the same issue with older versions of OpenSSL being the only ones available can still use the latest Autobahn out of the box.

I didn't test this on a machine that has OpenSSL >= 1.1 as I don't readily have access to one, so someone may want to do that to make sure these changes mesh. If not, I'll see what I can do to grab a few cycles and spin up a VM to test it.

oberstet commented 7 years ago

LGTM .. should work.