@@ -21,9 +21,17 @@
#if RTC_ENABLE_WEBSOCKET
#if USE_GNUTLS
+
#include <nettle/sha1.h>
-#else
+#else // USE_GNUTLS==0
+#ifndef OPENSSL_API_COMPAT
+#define OPENSSL_API_COMPAT 0x10100000L
+#endif
#include <openssl/sha.h>
#endif
namespace rtc::impl {
@@ -53,6 +53,10 @@ gnutls_datum_t make_datum(char *data, size_t size);
#include <winsock2.h>
#include <openssl/ssl.h>
#include <openssl/bio.h>