[Pkg-voip-commits] [janus] 154/282: fix libressl call in dtls.c
Jonas Smedegaard
dr at jones.dk
Wed Dec 20 21:53:37 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/0.2.6-1
in repository janus.
commit 25ece9a30ca99ad62f918713f01de5d55a8da4c7
Author: Adam Duskett <aduskett at gmail.com>
Date: Tue Oct 24 16:31:56 2017 -0400
fix libressl call in dtls.c
openssl is reported even if compiled against libressl.
Fix this with a check to see if libressl is defined.
---
dtls.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dtls.c b/dtls.c
index 49f676b..c2c28d3 100644
--- a/dtls.c
+++ b/dtls.c
@@ -308,9 +308,9 @@ error:
/* DTLS-SRTP initialization */
gint janus_dtls_srtp_init(const char* server_pem, const char* server_key) {
const char *crypto_lib = NULL;
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
#if defined(LIBRESSL_VERSION_NUMBER)
- crypt_lib = "LibreSSL"
+ crypto_lib = "LibreSSL";
#else
crypto_lib = "OpenSSL pre-1.1.0";
#endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/janus.git
More information about the Pkg-voip-commits
mailing list