]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/OpensslLib/EDKII_openssl-0.9.8l.patch
1. enable /GL optimization building on OpensslLib.
[mirror_edk2.git] / CryptoPkg / Library / OpensslLib / EDKII_openssl-0.9.8l.patch
1 --- crypto/bio/bss_file.c Thu Jan 15 17:14:12 1970
2 +++ crypto/bio/bss_file.c Thu Jan 15 17:14:12 1970
3 @@ -421,6 +421,23 @@
4 return(ret);
5 }
6
7 +#else
8 +
9 +BIO_METHOD *BIO_s_file(void)
10 + {
11 + return NULL;
12 + }
13 +
14 +BIO *BIO_new_file(const char *filename, const char *mode)
15 + {
16 + return NULL;
17 + }
18 +
19 +BIO *BIO_new_fp(FILE *stream, int close_flag)
20 + {
21 + return NULL;
22 + }
23 +
24 #endif /* OPENSSL_NO_STDIO */
25
26 #endif /* HEADER_BSS_FILE_C */
27 --- crypto/rand/rand_egd.c Thu Jan 15 17:14:12 1970
28 +++ crypto/rand/rand_egd.c Thu Jan 15 17:14:12 1970
29 @@ -95,7 +95,7 @@
30 * RAND_egd() is a wrapper for RAND_egd_bytes() with numbytes=255.
31 */
32
33 -#if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_NETWARE) || defined(OPENSSL_SYS_VOS)
34 +#if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_NETWARE) || defined(OPENSSL_SYS_VOS) || defined(OPENSSL_SYS_UEFI)
35 int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes)
36 {
37 return(-1);
38 --- crypto/rand/rand_unix.c Thu Jan 15 17:14:12 1970
39 +++ crypto/rand/rand_unix.c Thu Jan 15 17:14:12 1970
40 @@ -116,7 +116,7 @@
41 #include <openssl/rand.h>
42 #include "rand_lcl.h"
43
44 -#if !(defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_OS2) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_NETWARE))
45 +#if !(defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_OS2) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_NETWARE) || defined(OPENSSL_SYS_UEFI))
46
47 #include <sys/types.h>
48 #include <sys/time.h>
49 @@ -322,7 +322,7 @@
50 #endif /* !(defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_OS2) || defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_NETWARE)) */
51
52
53 -#if defined(OPENSSL_SYS_VXWORKS)
54 +#if defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_UEFI)
55 int RAND_poll(void)
56 {
57 return 0;
58 --- crypto/x509/x509_vfy.c Thu Jan 15 17:14:12 1970
59 +++ crypto/x509/x509_vfy.c Thu Jan 15 17:14:12 1970
60 @@ -391,7 +391,12 @@
61
62 static int check_chain_extensions(X509_STORE_CTX *ctx)
63 {
64 -#ifdef OPENSSL_NO_CHAIN_VERIFY
65 +//#ifdef OPENSSL_NO_CHAIN_VERIFY
66 +#if defined(OPENSSL_NO_CHAIN_VERIFY) || defined(OPENSSL_SYS_UEFI)
67 + /*
68 + NOTE: Bypass KU Flags Checking for UEFI version. There are incorrect KU flag setting
69 + in Authenticode Signing Certificates.
70 + */
71 return 1;
72 #else
73 int i, ok=0, must_be_ca, plen = 0;
74 @@ -904,6 +909,10 @@
75
76 static int check_cert_time(X509_STORE_CTX *ctx, X509 *x)
77 {
78 +#if defined(OPENSSL_SYS_UEFI)
79 + /* Bypass Certificate Time Checking for UEFI version. */
80 + return 1;
81 +#else
82 time_t *ptime;
83 int i;
84
85 @@ -947,6 +956,7 @@
86 }
87
88 return 1;
89 +#endif
90 }
91
92 static int internal_verify(X509_STORE_CTX *ctx)