Land #924, Allow disabling warning about WINCRYPT overrides
This commit is contained in:
commit
2652fb2f1e
@ -1,6 +1,5 @@
|
|||||||
diff -u include/openssl.orig/dtls1.h include/openssl/dtls1.h
|
--- include/openssl/dtls1.h.orig Wed Nov 1 13:15:36 2023
|
||||||
--- include/openssl.orig/dtls1.h Mon Dec 7 07:58:32 2015
|
+++ include/openssl/dtls1.h Wed Nov 1 13:15:54 2023
|
||||||
+++ include/openssl/dtls1.h Mon Dec 7 07:56:14 2015
|
|
||||||
@@ -60,7 +60,11 @@
|
@@ -60,7 +60,11 @@
|
||||||
#ifndef HEADER_DTLS1_H
|
#ifndef HEADER_DTLS1_H
|
||||||
#define HEADER_DTLS1_H
|
#define HEADER_DTLS1_H
|
||||||
@ -13,14 +12,14 @@ diff -u include/openssl.orig/dtls1.h include/openssl/dtls1.h
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
--- include/openssl/ossl_typ.h.orig Fri Feb 18 16:30:39 2022
|
--- include/openssl/ossl_typ.h.orig Wed Nov 1 13:15:36 2023
|
||||||
+++ include/openssl/ossl_typ.h Mon Feb 21 05:39:35 2022
|
+++ include/openssl/ossl_typ.h Wed Nov 1 13:18:23 2023
|
||||||
@@ -82,6 +82,22 @@
|
@@ -82,6 +82,22 @@ typedef struct asn1_object_st ASN1_OBJECT;
|
||||||
typedef struct ASN1_ITEM_st ASN1_ITEM;
|
typedef struct ASN1_ITEM_st ASN1_ITEM;
|
||||||
typedef struct asn1_pctx_st ASN1_PCTX;
|
typedef struct asn1_pctx_st ASN1_PCTX;
|
||||||
|
|
||||||
+#if defined(_WIN32) && defined(__WINCRYPT_H__)
|
+#if defined(_WIN32) && defined(__WINCRYPT_H__)
|
||||||
+#ifndef LIBRESSL_INTERNAL
|
+#if !defined(LIBRESSL_INTERNAL) && !defined(LIBRESSL_DISABLE_OVERRIDE_WINCRYPT_DEFINES_WARNING)
|
||||||
+#ifdef _MSC_VER
|
+#ifdef _MSC_VER
|
||||||
+#pragma message("Warning, overriding WinCrypt defines")
|
+#pragma message("Warning, overriding WinCrypt defines")
|
||||||
+#else
|
+#else
|
||||||
@ -38,15 +37,14 @@ diff -u include/openssl.orig/dtls1.h include/openssl/dtls1.h
|
|||||||
#ifdef BIGNUM
|
#ifdef BIGNUM
|
||||||
#undef BIGNUM
|
#undef BIGNUM
|
||||||
#endif
|
#endif
|
||||||
diff -u include/openssl.orig/pkcs7.h include/openssl/pkcs7.h
|
--- include/openssl/pkcs7.h.orig Wed Nov 1 13:15:36 2023
|
||||||
--- include/openssl.orig/pkcs7.h Mon Dec 7 07:58:32 2015
|
+++ include/openssl/pkcs7.h Wed Nov 1 13:17:58 2023
|
||||||
+++ include/openssl/pkcs7.h Mon Dec 7 07:56:14 2015
|
|
||||||
@@ -69,6 +69,18 @@
|
@@ -69,6 +69,18 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
+#if defined(_WIN32) && defined(__WINCRYPT_H__)
|
+#if defined(_WIN32) && defined(__WINCRYPT_H__)
|
||||||
+#ifndef LIBRESSL_INTERNAL
|
+#if !defined(LIBRESSL_INTERNAL) && !defined(LIBRESSL_DISABLE_OVERRIDE_WINCRYPT_DEFINES_WARNING)
|
||||||
+#ifdef _MSC_VER
|
+#ifdef _MSC_VER
|
||||||
+#pragma message("Warning, overriding WinCrypt defines")
|
+#pragma message("Warning, overriding WinCrypt defines")
|
||||||
+#else
|
+#else
|
||||||
@ -60,14 +58,14 @@ diff -u include/openssl.orig/pkcs7.h include/openssl/pkcs7.h
|
|||||||
/*
|
/*
|
||||||
Encryption_ID DES-CBC
|
Encryption_ID DES-CBC
|
||||||
Digest_ID MD5
|
Digest_ID MD5
|
||||||
--- include/openssl/x509.h.orig Thu Aug 3 13:35:00 2023
|
--- include/openssl/x509.h.orig Wed Nov 1 13:15:36 2023
|
||||||
+++ include/openssl/x509.h Thu Aug 3 13:35:18 2023
|
+++ include/openssl/x509.h Wed Nov 1 13:18:44 2023
|
||||||
@@ -100,6 +100,19 @@
|
@@ -100,6 +100,19 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
+#if defined(_WIN32) && defined(__WINCRYPT_H__)
|
+#if defined(_WIN32) && defined(__WINCRYPT_H__)
|
||||||
+#ifndef LIBRESSL_INTERNAL
|
+#if !defined(LIBRESSL_INTERNAL) && !defined(LIBRESSL_DISABLE_OVERRIDE_WINCRYPT_DEFINES_WARNING)
|
||||||
+#ifdef _MSC_VER
|
+#ifdef _MSC_VER
|
||||||
+#pragma message("Warning, overriding WinCrypt defines")
|
+#pragma message("Warning, overriding WinCrypt defines")
|
||||||
+#else
|
+#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user