2015-12-07 08:03:44 -06:00
|
|
|
diff -u include/openssl.orig/dtls1.h include/openssl/dtls1.h
|
|
|
|
--- include/openssl.orig/dtls1.h Mon Dec 7 07:58:32 2015
|
|
|
|
+++ include/openssl/dtls1.h Mon Dec 7 07:56:14 2015
|
2015-09-21 22:08:12 -05:00
|
|
|
@@ -60,7 +60,11 @@
|
|
|
|
#ifndef HEADER_DTLS1_H
|
|
|
|
#define HEADER_DTLS1_H
|
2017-07-17 06:13:21 -05:00
|
|
|
|
2015-09-21 22:08:12 -05:00
|
|
|
+#if defined(_WIN32)
|
|
|
|
+#include <winsock2.h>
|
|
|
|
+#else
|
|
|
|
#include <sys/time.h>
|
|
|
|
+#endif
|
2017-07-17 06:13:21 -05:00
|
|
|
|
2015-09-21 22:08:12 -05:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2022-02-27 05:37:43 -06:00
|
|
|
--- include/openssl/ossl_typ.h.orig Fri Feb 18 16:30:39 2022
|
|
|
|
+++ include/openssl/ossl_typ.h Mon Feb 21 05:39:35 2022
|
|
|
|
@@ -82,6 +82,22 @@
|
2015-09-21 22:08:12 -05:00
|
|
|
typedef struct ASN1_ITEM_st ASN1_ITEM;
|
|
|
|
typedef struct asn1_pctx_st ASN1_PCTX;
|
2022-02-27 05:37:43 -06:00
|
|
|
|
2015-09-21 22:08:12 -05:00
|
|
|
+#if defined(_WIN32) && defined(__WINCRYPT_H__)
|
|
|
|
+#ifndef LIBRESSL_INTERNAL
|
|
|
|
+#ifdef _MSC_VER
|
|
|
|
+#pragma message("Warning, overriding WinCrypt defines")
|
|
|
|
+#else
|
|
|
|
+#warning overriding WinCrypt defines
|
|
|
|
+#endif
|
|
|
|
+#endif
|
|
|
|
+#undef X509_NAME
|
|
|
|
+#undef X509_CERT_PAIR
|
|
|
|
+#undef X509_EXTENSIONS
|
|
|
|
+#undef OCSP_REQUEST
|
|
|
|
+#undef OCSP_RESPONSE
|
|
|
|
+#undef PKCS7_ISSUER_AND_SERIAL
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#ifdef BIGNUM
|
|
|
|
#undef BIGNUM
|
|
|
|
#endif
|
2015-12-07 08:03:44 -06:00
|
|
|
diff -u include/openssl.orig/pkcs7.h include/openssl/pkcs7.h
|
|
|
|
--- include/openssl.orig/pkcs7.h Mon Dec 7 07:58:32 2015
|
|
|
|
+++ include/openssl/pkcs7.h Mon Dec 7 07:56:14 2015
|
2015-09-21 22:08:12 -05:00
|
|
|
@@ -69,6 +69,18 @@
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2017-07-17 06:13:21 -05:00
|
|
|
|
2015-09-21 22:08:12 -05:00
|
|
|
+#if defined(_WIN32) && defined(__WINCRYPT_H__)
|
|
|
|
+#ifndef LIBRESSL_INTERNAL
|
|
|
|
+#ifdef _MSC_VER
|
|
|
|
+#pragma message("Warning, overriding WinCrypt defines")
|
|
|
|
+#else
|
|
|
|
+#warning overriding WinCrypt defines
|
|
|
|
+#endif
|
|
|
|
+#endif
|
|
|
|
+#undef PKCS7_ISSUER_AND_SERIAL
|
|
|
|
+#undef PKCS7_SIGNER_INFO
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
/*
|
|
|
|
Encryption_ID DES-CBC
|
|
|
|
Digest_ID MD5
|
2023-08-03 13:38:41 -06:00
|
|
|
--- include/openssl/x509.h.orig Thu Aug 3 13:35:00 2023
|
|
|
|
+++ include/openssl/x509.h Thu Aug 3 13:35:18 2023
|
|
|
|
@@ -100,6 +100,19 @@
|
2015-09-21 22:08:12 -05:00
|
|
|
extern "C" {
|
|
|
|
#endif
|
2023-04-18 03:33:46 -06:00
|
|
|
|
2018-07-29 16:17:44 +09:00
|
|
|
+#if defined(_WIN32) && defined(__WINCRYPT_H__)
|
2015-09-21 22:08:12 -05:00
|
|
|
+#ifndef LIBRESSL_INTERNAL
|
|
|
|
+#ifdef _MSC_VER
|
|
|
|
+#pragma message("Warning, overriding WinCrypt defines")
|
|
|
|
+#else
|
|
|
|
+#warning overriding WinCrypt defines
|
|
|
|
+#endif
|
|
|
|
+#endif
|
|
|
|
+#undef X509_NAME
|
|
|
|
+#undef X509_CERT_PAIR
|
|
|
|
+#undef X509_EXTENSIONS
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#define X509_FILETYPE_PEM 1
|
|
|
|
#define X509_FILETYPE_ASN1 2
|
|
|
|
#define X509_FILETYPE_DEFAULT 3
|