[openssl-dev] MSVC 2015 internal compiler error

Viktor Dukhovni openssl-users at dukhovni.org
Tue Feb 23 02:13:57 UTC 2016


On Mon, Feb 22, 2016 at 03:55:12PM -1000, Bill Bierman wrote:

> The Microsoft compiler team has suggested removing the include of ssl.h
> from srtp.h as it creates a circular reference which is likely confusing
> the compiler.

Could you test the patch below.  It tries to avoid incompatible
loss of the implicit inclusion, by making it conditional:

-- 
	Viktor.

diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h
index 9709103..ee61451 100644
--- a/include/openssl/ssl.h
+++ b/include/openssl/ssl.h
@@ -901,7 +901,9 @@ __owur int SSL_extension_supported(unsigned int ext_type);
 # include <openssl/ssl3.h>
 # include <openssl/tls1.h>      /* This is mostly sslv3 with a few tweaks */
 # include <openssl/dtls1.h>     /* Datagram TLS */
-# include <openssl/srtp.h>      /* Support for the use_srtp extension */
+# ifndef HEADER_D1_SRTP_H
+#  include <openssl/srtp.h>     /* Support for the use_srtp extension */
+# endif
 
 #ifdef  __cplusplus
 extern "C" {


More information about the openssl-dev mailing list