1 diff U3 crypto/bio/bio.h crypto/bio/bio.h
2 --- crypto/bio/bio.h Thu Jan 28 21:56:08 2016
3 +++ crypto/bio/bio.h Wed Feb 17 16:43:40 2016
5 int BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix,
6 asn1_ps_func **psuffix_free);
8 -# ifndef OPENSSL_NO_FP_API
9 BIO_METHOD *BIO_s_file(void);
10 BIO *BIO_new_file(const char *filename, const char *mode);
11 BIO *BIO_new_fp(FILE *stream, int close_flag);
12 +# ifndef OPENSSL_NO_FP_API
13 # define BIO_s_file_internal BIO_s_file
15 BIO *BIO_new(BIO_METHOD *type);
16 diff U3 crypto/bio/bss_file.c crypto/bio/bss_file.c
17 --- crypto/bio/bss_file.c Thu Jan 28 21:38:30 2016
18 +++ crypto/bio/bss_file.c Wed Feb 17 16:01:02 2016
25 +BIO_METHOD *BIO_s_file(void)
30 +BIO *BIO_new_file(const char *filename, const char *mode)
35 +BIO *BIO_new_fp(FILE *stream, int close_flag)
40 # endif /* OPENSSL_NO_STDIO */
42 #endif /* HEADER_BSS_FILE_C */
43 diff U3 crypto/dh/dh_pmeth.c crypto/dh/dh_pmeth.c
44 --- crypto/dh/dh_pmeth.c Thu Jan 28 21:56:08 2016
45 +++ crypto/dh/dh_pmeth.c Wed Feb 17 16:15:58 2016
49 } else if (dctx->kdf_type == EVP_PKEY_DH_KDF_X9_42) {
50 +#ifdef OPENSSL_NO_CMS
53 unsigned char *Z = NULL;
55 if (!dctx->kdf_outlen || !dctx->kdf_oid)
64 diff U3 crypto/pem/pem.h crypto/pem/pem.h
65 --- crypto/pem/pem.h Thu Jan 28 21:56:08 2016
66 +++ crypto/pem/pem.h Wed Feb 17 15:56:26 2016
69 # define DECLARE_PEM_read_fp(name, type) /**/
70 # define DECLARE_PEM_write_fp(name, type) /**/
71 +# define DECLARE_PEM_write_fp_const(name, type) /**/
72 # define DECLARE_PEM_write_cb_fp(name, type) /**/
75 diff U3 crypto/pkcs7/pk7_smime.c crypto/pkcs7/pk7_smime.c
76 --- crypto/pkcs7/pk7_smime.c Thu Jan 28 21:56:08 2016
77 +++ crypto/pkcs7/pk7_smime.c Wed Feb 17 16:22:45 2016
79 STACK_OF(PKCS7_SIGNER_INFO) *sinfos;
80 PKCS7_SIGNER_INFO *si;
81 X509_STORE_CTX cert_ctx;
85 int i, j = 0, k, ret = 0;
87 BIO *tmpin = NULL, *tmpout = NULL;
92 - /* Check for data and content: two sets of data */
93 - if (!PKCS7_get_detached(p7) && indata) {
94 - PKCS7err(PKCS7_F_PKCS7_VERIFY, PKCS7_R_CONTENT_AND_DATA_PRESENT);
98 sinfos = PKCS7_get_signer_info(p7);
100 if (!sinfos || !sk_PKCS7_SIGNER_INFO_num(sinfos)) {
106 + buf = OPENSSL_malloc(bufsiz);
110 /* We now have to 'read' from p7bio to calculate digests etc. */
112 - i = BIO_read(p7bio, buf, sizeof(buf));
113 + i = BIO_read(p7bio, buf, bufsiz);
120 sk_X509_free(signers);
127 diff U3 crypto/rand/rand_unix.c crypto/rand/rand_unix.c
128 --- crypto/rand/rand_unix.c Thu Jan 28 21:38:32 2016
129 +++ crypto/rand/rand_unix.c Wed Feb 17 15:40:02 2016
131 #include <openssl/rand.h>
132 #include "rand_lcl.h"
134 -#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))
135 +#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))
137 # include <sys/types.h>
138 # include <sys/time.h>
140 * defined(OPENSSL_SYS_VXWORKS) ||
141 * defined(OPENSSL_SYS_NETWARE)) */
143 -#if defined(OPENSSL_SYS_VXWORKS)
144 +#if defined(OPENSSL_SYS_VXWORKS) || defined(OPENSSL_SYS_UEFI)
148 diff U3 crypto/rsa/rsa_ameth.c crypto/rsa/rsa_ameth.c
149 --- crypto/rsa/rsa_ameth.c Thu Jan 28 21:56:08 2016
150 +++ crypto/rsa/rsa_ameth.c Wed Feb 17 15:09:46 2016
153 #include "asn1_locl.h"
155 +#ifndef OPENSSL_NO_CMS
156 static int rsa_cms_sign(CMS_SignerInfo *si);
157 static int rsa_cms_verify(CMS_SignerInfo *si);
158 static int rsa_cms_decrypt(CMS_RecipientInfo *ri);
159 static int rsa_cms_encrypt(CMS_RecipientInfo *ri);
162 static int rsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey)
168 +#ifndef OPENSSL_NO_CMS
169 static int rsa_cms_verify(CMS_SignerInfo *si)
179 * Customised RSA item verification routine. This is called when a signature
184 +#ifndef OPENSSL_NO_CMS
185 static int rsa_cms_sign(CMS_SignerInfo *si)
187 int pad_mode = RSA_PKCS1_PADDING;
189 X509_ALGOR_set0(alg, OBJ_nid2obj(NID_rsassaPss), V_ASN1_SEQUENCE, os);
194 static int rsa_item_sign(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn,
195 X509_ALGOR *alg1, X509_ALGOR *alg2,
200 +#ifndef OPENSSL_NO_CMS
201 static int rsa_cms_decrypt(CMS_RecipientInfo *ri)
205 X509_ALGOR_free(maskHash);
210 +#ifndef OPENSSL_NO_CMS
211 static int rsa_cms_encrypt(CMS_RecipientInfo *ri)
213 const EVP_MD *md, *mgf1md;
215 ASN1_STRING_free(os);
220 const EVP_PKEY_ASN1_METHOD rsa_asn1_meths[] = {
222 diff U3 crypto/x509/x509_vfy.c crypto/x509/x509_vfy.c
223 --- crypto/x509/x509_vfy.c Thu Jan 28 21:56:08 2016
224 +++ crypto/x509/x509_vfy.c Wed Feb 17 16:09:58 2016
226 ctx->current_crl = crl;
227 if (ctx->param->flags & X509_V_FLAG_USE_CHECK_TIME)
228 ptime = &ctx->param->check_time;
229 + else if (ctx->param->flags & X509_V_FLAG_NO_CHECK_TIME)
234 @@ -1663,6 +1665,8 @@
236 if (ctx->param->flags & X509_V_FLAG_USE_CHECK_TIME)
237 ptime = &ctx->param->check_time;
238 + else if (ctx->param->flags & X509_V_FLAG_NO_CHECK_TIME)
243 diff U3 crypto/x509/x509_vfy.h crypto/x509/x509_vfy.h
244 --- crypto/x509/x509_vfy.h Thu Jan 28 21:56:08 2016
245 +++ crypto/x509/x509_vfy.h Wed Feb 17 16:08:18 2016
247 * will force the behaviour to match that of previous versions.
249 # define X509_V_FLAG_NO_ALT_CHAINS 0x100000
250 +/* Do not check certificate/CRL validity against current time */
251 +# define X509_V_FLAG_NO_CHECK_TIME 0x200000
253 # define X509_VP_FLAG_DEFAULT 0x1
254 # define X509_VP_FLAG_OVERWRITE 0x2
255 diff U3 crypto/x509v3/ext_dat.h crypto/x509v3/ext_dat.h
256 --- crypto/x509v3/ext_dat.h Thu Jan 28 21:56:08 2016
257 +++ crypto/x509v3/ext_dat.h Wed Feb 17 16:13:30 2016
262 +#ifndef OPENSSL_SYS_UEFI
268 /* Number of standard extensions */
269 diff U3 crypto/crypto.h crypto/crypto.h
270 --- crypto/crypto.h Thu Jan 28 21:38:30 2016
271 +++ crypto/crypto.h Wed Feb 17 16:33:00 2016
272 @@ -235,15 +235,15 @@
273 # ifndef OPENSSL_NO_LOCKING
274 # ifndef CRYPTO_w_lock
275 # define CRYPTO_w_lock(type) \
276 - CRYPTO_lock(CRYPTO_LOCK|CRYPTO_WRITE,type,__FILE__,__LINE__)
277 + CRYPTO_lock(CRYPTO_LOCK|CRYPTO_WRITE,type,NULL,0)
278 # define CRYPTO_w_unlock(type) \
279 - CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_WRITE,type,__FILE__,__LINE__)
280 + CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_WRITE,type,NULL,0)
281 # define CRYPTO_r_lock(type) \
282 - CRYPTO_lock(CRYPTO_LOCK|CRYPTO_READ,type,__FILE__,__LINE__)
283 + CRYPTO_lock(CRYPTO_LOCK|CRYPTO_READ,type,NULL,0)
284 # define CRYPTO_r_unlock(type) \
285 - CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_READ,type,__FILE__,__LINE__)
286 + CRYPTO_lock(CRYPTO_UNLOCK|CRYPTO_READ,type,NULL,0)
287 # define CRYPTO_add(addr,amount,type) \
288 - CRYPTO_add_lock(addr,amount,type,__FILE__,__LINE__)
289 + CRYPTO_add_lock(addr,amount,type,NULL,0)
292 # define CRYPTO_w_lock(a)
293 @@ -378,19 +378,19 @@
294 # define MemCheck_off() CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE)
295 # define is_MemCheck_on() CRYPTO_is_mem_check_on()
297 -# define OPENSSL_malloc(num) CRYPTO_malloc((int)num,__FILE__,__LINE__)
298 -# define OPENSSL_strdup(str) CRYPTO_strdup((str),__FILE__,__LINE__)
299 +# define OPENSSL_malloc(num) CRYPTO_malloc((int)num,NULL,0)
300 +# define OPENSSL_strdup(str) CRYPTO_strdup((str),NULL,0)
301 # define OPENSSL_realloc(addr,num) \
302 - CRYPTO_realloc((char *)addr,(int)num,__FILE__,__LINE__)
303 + CRYPTO_realloc((char *)addr,(int)num,NULL,0)
304 # define OPENSSL_realloc_clean(addr,old_num,num) \
305 - CRYPTO_realloc_clean(addr,old_num,num,__FILE__,__LINE__)
306 + CRYPTO_realloc_clean(addr,old_num,num,NULL,0)
307 # define OPENSSL_remalloc(addr,num) \
308 - CRYPTO_remalloc((char **)addr,(int)num,__FILE__,__LINE__)
309 + CRYPTO_remalloc((char **)addr,(int)num,NULL,0)
310 # define OPENSSL_freeFunc CRYPTO_free
311 # define OPENSSL_free(addr) CRYPTO_free(addr)
313 # define OPENSSL_malloc_locked(num) \
314 - CRYPTO_malloc_locked((int)num,__FILE__,__LINE__)
315 + CRYPTO_malloc_locked((int)num,NULL,0)
316 # define OPENSSL_free_locked(addr) CRYPTO_free_locked(addr)
318 const char *SSLeay_version(int type);
320 long CRYPTO_get_mem_debug_options(void);
322 # define CRYPTO_push_info(info) \
323 - CRYPTO_push_info_(info, __FILE__, __LINE__);
324 + CRYPTO_push_info_(info, NULL, 0);
325 int CRYPTO_push_info_(const char *info, const char *file, int line);
326 int CRYPTO_pop_info(void);
327 int CRYPTO_remove_all_info(void);
330 /* die if we have to */
331 void OpenSSLDie(const char *file, int line, const char *assertion);
332 -# define OPENSSL_assert(e) (void)((e) ? 0 : (OpenSSLDie(__FILE__, __LINE__, #e),1))
333 +# define OPENSSL_assert(e) (void)((e) ? 0 : (OpenSSLDie(NULL, 0, #e),1))
335 unsigned long *OPENSSL_ia32cap_loc(void);
336 # define OPENSSL_ia32cap (*(OPENSSL_ia32cap_loc()))
337 @@ -605,14 +605,14 @@
338 # define fips_md_init_ctx(alg, cx) \
339 int alg##_Init(cx##_CTX *c) \
341 - if (FIPS_mode()) OpenSSLDie(__FILE__, __LINE__, \
342 + if (FIPS_mode()) OpenSSLDie(NULL, 0, \
343 "Low level API call to digest " #alg " forbidden in FIPS mode!"); \
344 return private_##alg##_Init(c); \
346 int private_##alg##_Init(cx##_CTX *c)
348 # define fips_cipher_abort(alg) \
349 - if (FIPS_mode()) OpenSSLDie(__FILE__, __LINE__, \
350 + if (FIPS_mode()) OpenSSLDie(NULL, 0, \
351 "Low level API call to cipher " #alg " forbidden in FIPS mode!")
354 diff U3 crypto/opensslconf.h crypto/opensslconf.h
355 --- crypto/opensslconf.h Thu Jan 28 21:57:22 2016
356 +++ crypto/opensslconf.h Wed Feb 17 14:58:26 2016
360 /* OpenSSL was configured with the following options: */
361 +#ifndef OPENSSL_SYSNAME_UEFI
362 +# define OPENSSL_SYSNAME_UEFI
364 #ifndef OPENSSL_DOING_MAKEDEPEND
367 +#ifndef OPENSSL_NO_BF
368 +# define OPENSSL_NO_BF
370 +#ifndef OPENSSL_NO_CAMELLIA
371 +# define OPENSSL_NO_CAMELLIA
373 +#ifndef OPENSSL_NO_CAPIENG
374 +# define OPENSSL_NO_CAPIENG
376 +#ifndef OPENSSL_NO_CAST
377 +# define OPENSSL_NO_CAST
379 +#ifndef OPENSSL_NO_CMS
380 +# define OPENSSL_NO_CMS
382 +#ifndef OPENSSL_NO_DEPRECATED
383 +# define OPENSSL_NO_DEPRECATED
385 +#ifndef OPENSSL_NO_DGRAM
386 +# define OPENSSL_NO_DGRAM
388 +#ifndef OPENSSL_NO_DSA
389 +# define OPENSSL_NO_DSA
391 +#ifndef OPENSSL_NO_DYNAMIC_ENGINE
392 +# define OPENSSL_NO_DYNAMIC_ENGINE
394 +#ifndef OPENSSL_NO_EC
395 +# define OPENSSL_NO_EC
397 #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
398 # define OPENSSL_NO_EC_NISTP_64_GCC_128
400 +#ifndef OPENSSL_NO_ECDH
401 +# define OPENSSL_NO_ECDH
403 +#ifndef OPENSSL_NO_ECDSA
404 +# define OPENSSL_NO_ECDSA
406 +#ifndef OPENSSL_NO_ENGINE
407 +# define OPENSSL_NO_ENGINE
409 +#ifndef OPENSSL_NO_ENGINES
410 +# define OPENSSL_NO_ENGINES
412 +#ifndef OPENSSL_NO_FILENAMES
413 +# define OPENSSL_NO_FILENAMES
415 +#ifndef OPENSSL_NO_FP_API
416 +# define OPENSSL_NO_FP_API
418 #ifndef OPENSSL_NO_GMP
419 # define OPENSSL_NO_GMP
421 +#ifndef OPENSSL_NO_GOST
422 +# define OPENSSL_NO_GOST
424 +#ifndef OPENSSL_NO_IDEA
425 +# define OPENSSL_NO_IDEA
427 #ifndef OPENSSL_NO_JPAKE
428 # define OPENSSL_NO_JPAKE
431 #ifndef OPENSSL_NO_LIBUNBOUND
432 # define OPENSSL_NO_LIBUNBOUND
434 +#ifndef OPENSSL_NO_LOCKING
435 +# define OPENSSL_NO_LOCKING
437 #ifndef OPENSSL_NO_MD2
438 # define OPENSSL_NO_MD2
440 +#ifndef OPENSSL_NO_MDC2
441 +# define OPENSSL_NO_MDC2
443 +#ifndef OPENSSL_NO_POSIX_IO
444 +# define OPENSSL_NO_POSIX_IO
446 +#ifndef OPENSSL_NO_RC2
447 +# define OPENSSL_NO_RC2
449 #ifndef OPENSSL_NO_RC5
450 # define OPENSSL_NO_RC5
452 +#ifndef OPENSSL_NO_RCS
453 +# define OPENSSL_NO_RCS
455 #ifndef OPENSSL_NO_RFC3779
456 # define OPENSSL_NO_RFC3779
458 +#ifndef OPENSSL_NO_RIPEMD
459 +# define OPENSSL_NO_RIPEMD
461 +#ifndef OPENSSL_NO_SCRYPT
462 +# define OPENSSL_NO_SCRYPT
464 +#ifndef OPENSSL_NO_SCT
465 +# define OPENSSL_NO_SCT
467 #ifndef OPENSSL_NO_SCTP
468 # define OPENSSL_NO_SCTP
470 +#ifndef OPENSSL_NO_SEED
471 +# define OPENSSL_NO_SEED
473 +#ifndef OPENSSL_NO_SHA0
474 +# define OPENSSL_NO_SHA0
476 +#ifndef OPENSSL_NO_SOCK
477 +# define OPENSSL_NO_SOCK
479 +#ifndef OPENSSL_NO_SRP
480 +# define OPENSSL_NO_SRP
482 #ifndef OPENSSL_NO_SSL_TRACE
483 # define OPENSSL_NO_SSL_TRACE
485 +#ifndef OPENSSL_NO_SSL2
486 +# define OPENSSL_NO_SSL2
488 +#ifndef OPENSSL_NO_SSL3
489 +# define OPENSSL_NO_SSL3
491 +#ifndef OPENSSL_NO_STDIO
492 +# define OPENSSL_NO_STDIO
494 #ifndef OPENSSL_NO_STORE
495 # define OPENSSL_NO_STORE
497 +#ifndef OPENSSL_NO_UI
498 +# define OPENSSL_NO_UI
500 #ifndef OPENSSL_NO_UNIT_TEST
501 # define OPENSSL_NO_UNIT_TEST
503 +#ifndef OPENSSL_NO_WHIRLPOOL
504 +# define OPENSSL_NO_WHIRLPOOL
507 #endif /* OPENSSL_DOING_MAKEDEPEND */
509 +#ifndef OPENSSL_NO_ASM
510 +# define OPENSSL_NO_ASM
512 +#ifndef OPENSSL_NO_ERR
513 +# define OPENSSL_NO_ERR
515 +#ifndef OPENSSL_NO_HW
516 +# define OPENSSL_NO_HW
518 #ifndef OPENSSL_NO_DYNAMIC_ENGINE
519 # define OPENSSL_NO_DYNAMIC_ENGINE
522 who haven't had the time to do the appropriate changes in their
524 #ifdef OPENSSL_ALGORITHM_DEFINES
525 +# if defined(OPENSSL_NO_BF) && !defined(NO_BF)
528 +# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
529 +# define NO_CAMELLIA
531 +# if defined(OPENSSL_NO_CAPIENG) && !defined(NO_CAPIENG)
534 +# if defined(OPENSSL_NO_CAST) && !defined(NO_CAST)
537 +# if defined(OPENSSL_NO_CMS) && !defined(NO_CMS)
540 +# if defined(OPENSSL_NO_DEPRECATED) && !defined(NO_DEPRECATED)
541 +# define NO_DEPRECATED
543 +# if defined(OPENSSL_NO_DGRAM) && !defined(NO_DGRAM)
546 +# if defined(OPENSSL_NO_DSA) && !defined(NO_DSA)
549 +# if defined(OPENSSL_NO_DYNAMIC_ENGINE) && !defined(NO_DYNAMIC_ENGINE)
550 +# define NO_DYNAMIC_ENGINE
552 +# if defined(OPENSSL_NO_EC) && !defined(NO_EC)
555 # if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
556 # define NO_EC_NISTP_64_GCC_128
558 +# if defined(OPENSSL_NO_ECDH) && !defined(NO_ECDH)
561 +# if defined(OPENSSL_NO_ECDSA) && !defined(NO_ECDSA)
564 +# if defined(OPENSSL_NO_ENGINE) && !defined(NO_ENGINE)
567 +# if defined(OPENSSL_NO_ENGINES) && !defined(NO_ENGINES)
570 +# if defined(OPENSSL_NO_FILENAMES) && !defined(NO_FILENAMES)
571 +# define NO_FILENAMES
573 +# if defined(OPENSSL_NO_FP_API) && !defined(NO_FP_API)
576 # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
579 +# if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
582 +# if defined(OPENSSL_NO_IDEA) && !defined(NO_IDEA)
585 # if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
589 # if defined(OPENSSL_NO_LIBUNBOUND) && !defined(NO_LIBUNBOUND)
590 # define NO_LIBUNBOUND
592 +# if defined(OPENSSL_NO_LOCKING) && !defined(NO_LOCKING)
595 # if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
598 +# if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
601 +# if defined(OPENSSL_NO_POSIX_IO) && !defined(NO_POSIX_IO)
602 +# define NO_POSIX_IO
604 +# if defined(OPENSSL_NO_RC2) && !defined(NO_RC2)
607 # if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
610 +# if defined(OPENSSL_NO_RCS) && !defined(NO_RCS)
613 # if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
616 +# if defined(OPENSSL_NO_RIPEMD) && !defined(NO_RIPEMD)
619 +# if defined(OPENSSL_NO_SCRYPT) && !defined(NO_SCRYPT)
622 +# if defined(OPENSSL_NO_SCT) && !defined(NO_SCT)
625 # if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
628 +# if defined(OPENSSL_NO_SEED) && !defined(NO_SEED)
631 +# if defined(OPENSSL_NO_SHA0) && !defined(NO_SHA0)
634 +# if defined(OPENSSL_NO_SOCK) && !defined(NO_SOCK)
637 +# if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
640 # if defined(OPENSSL_NO_SSL_TRACE) && !defined(NO_SSL_TRACE)
641 # define NO_SSL_TRACE
643 +# if defined(OPENSSL_NO_SSL2) && !defined(NO_SSL2)
646 +# if defined(OPENSSL_NO_SSL3) && !defined(NO_SSL3)
649 +# if defined(OPENSSL_NO_STDIO) && !defined(NO_STDIO)
652 # if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
655 +# if defined(OPENSSL_NO_UI) && !defined(NO_UI)
658 # if defined(OPENSSL_NO_UNIT_TEST) && !defined(NO_UNIT_TEST)
659 # define NO_UNIT_TEST
661 +# if defined(OPENSSL_NO_WHIRLPOOL) && !defined(NO_WHIRLPOOL)
662 +# define NO_WHIRLPOOL
666 /* crypto/opensslconf.h.in */
671 -#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
672 +#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) && !defined(OPENSSL_SYSNAME_UEFI)
673 #define CONFIG_HEADER_BN_H
676 diff U3 e_os.h e_os.h
677 --- e_os.h Thu Jan 28 21:56:08 2016
678 +++ e_os.h Wed Feb 17 15:52:08 2016
683 -# if defined(MSDOS) && !defined(GETPID_IS_MEANINGLESS)
684 +# if (defined(MSDOS) || defined(OPENSSL_SYS_UEFI)) && !defined(GETPID_IS_MEANINGLESS)
685 # define GETPID_IS_MEANINGLESS
688 diff U3 e_os2.h e_os2.h
689 --- e_os2.h Thu Jan 28 21:56:08 2016
690 +++ e_os2.h Wed Feb 17 15:53:08 2016
692 * For 32 bit environment, there seems to be the CygWin environment and then
693 * all the others that try to do the same thing Microsoft does...
695 -# if defined(OPENSSL_SYSNAME_UWIN)
697 + * UEFI lives here because it might be built with a Microsoft toolchain and
698 + * we need to avoid the false positive match on Windows.
700 +# if defined(OPENSSL_SYSNAME_UEFI)
701 +# undef OPENSSL_SYS_UNIX
702 +# define OPENSSL_SYS_UEFI
703 +# elif defined(OPENSSL_SYSNAME_UWIN)
704 # undef OPENSSL_SYS_UNIX
705 # define OPENSSL_SYS_WIN32_UWIN