It seems that you cannot have both libssl-1.1 and libssl-1.0 installed on Rasbian strech (see also https://github.com/Azure/azure-iot-sdk-c/issues/265#issuecomment-339794097). maybe this was cuasing an issue for you?
I wonder what would happen if the library is compiled with libssl-1.1.0. Would it still work on a Rasbian Jessie with libssl-1.0?