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
9 +BIO_METHOD *BIO_s_file(void)
14 +BIO *BIO_new_file(const char *filename, const char *mode)
19 +BIO *BIO_new_fp(FILE *stream, int close_flag)
24 #endif /* OPENSSL_NO_STDIO */
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
30 * RAND_egd() is a wrapper for RAND_egd_bytes() with numbytes=255.
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)
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
41 #include <openssl/rand.h>
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))
47 #include <sys/types.h>
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)) */
53 -#if defined(OPENSSL_SYS_VXWORKS)
54 +#if defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_UEFI)
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
62 static int check_chain_extensions(X509_STORE_CTX *ctx)
64 -#ifdef OPENSSL_NO_CHAIN_VERIFY
65 +//#ifdef OPENSSL_NO_CHAIN_VERIFY
66 +#if defined(OPENSSL_NO_CHAIN_VERIFY) || defined(OPENSSL_SYS_UEFI)
68 + NOTE: Bypass KU Flags Checking for UEFI version. There are incorrect KU flag setting
69 + in Authenticode Signing Certificates.
73 int i, ok=0, must_be_ca, plen = 0;
76 static int check_cert_time(X509_STORE_CTX *ctx, X509 *x)
78 +#if defined(OPENSSL_SYS_UEFI)
79 + /* Bypass Certificate Time Checking for UEFI version. */
92 static int internal_verify(X509_STORE_CTX *ctx)