Fix for WIN32 builds with KRB5
authorDr. Stephen Henson <steve@openssl.org>
Wed, 26 Feb 2014 15:28:20 +0000 (15:28 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 26 Feb 2014 15:33:10 +0000 (15:33 +0000)
ssl/kssl.h

index 8242fd5eeb650c0ac775e14a1cf7fe7a0ac32836..e4df84307313b9de402e4fde08be9a3f8e99763d 100644 (file)
 #include <stdio.h>
 #include <ctype.h>
 #include <krb5.h>
 #include <stdio.h>
 #include <ctype.h>
 #include <krb5.h>
+#ifdef OPENSSL_SYS_WIN32
+/* These can sometimes get redefined indirectly by krb5 header files
+ * after they get undefed in ossl_typ.h
+ */
+#undef X509_NAME
+#undef X509_EXTENSIONS
+#undef OCSP_REQUEST
+#undef OCSP_RESPONSE
+#endif
 
 #ifdef  __cplusplus
 extern "C" {
 
 #ifdef  __cplusplus
 extern "C" {