Addition conditions for UEFI environment under MSVC
This commit is contained in:
parent
7b0be68977
commit
6edcd41c0a
12 changed files with 27 additions and 14 deletions
|
@ -44,7 +44,8 @@
|
||||||
#define POLARSSL_CIPHER_MODE_STREAM
|
#define POLARSSL_CIPHER_MODE_STREAM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_MSC_VER) && !defined strcasecmp
|
#if defined(_MSC_VER) && !defined strcasecmp && !defined(EFIX64) && \
|
||||||
|
!defined(EFI32)
|
||||||
#define strcasecmp _stricmp
|
#define strcasecmp _stricmp
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -36,13 +36,15 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_MSC_VER) && !defined snprintf
|
#if defined(_MSC_VER) && !defined(EFIX64) && !defined(EFI32)
|
||||||
|
#if !defined snprintf
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_MSC_VER) && !defined vsnprintf
|
#if !defined vsnprintf
|
||||||
#define vsnprintf _vsnprintf
|
#define vsnprintf _vsnprintf
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
char *debug_fmt( const char *format, ... )
|
char *debug_fmt( const char *format, ... )
|
||||||
{
|
{
|
||||||
|
|
|
@ -160,7 +160,8 @@
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if defined(_MSC_VER) && !defined snprintf
|
#if defined(_MSC_VER) && !defined snprintf && !defined(EFIX64) && \
|
||||||
|
!defined(EFI32)
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -36,8 +36,9 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#if defined(_MSC_VER) && !defined strcasecmp
|
#if defined(_MSC_VER) && !defined strcasecmp && !defined(EFIX64) && \
|
||||||
#define snprintf _stricmp
|
!defined(EFI32)
|
||||||
|
#define strcasecmp _stricmp
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const int supported_digests[] = {
|
static const int supported_digests[] = {
|
||||||
|
|
|
@ -542,7 +542,8 @@ FN_OID_TYPED_FROM_ASN1(oid_pkcs12_pbe_alg_t, pkcs12_pbe_alg, oid_pkcs12_pbe_alg)
|
||||||
FN_OID_GET_ATTR2(oid_get_pkcs12_pbe_alg, oid_pkcs12_pbe_alg_t, pkcs12_pbe_alg, md_type_t, md_alg, cipher_type_t, cipher_alg);
|
FN_OID_GET_ATTR2(oid_get_pkcs12_pbe_alg, oid_pkcs12_pbe_alg_t, pkcs12_pbe_alg, md_type_t, md_alg, cipher_type_t, cipher_alg);
|
||||||
#endif /* POLARSSL_PKCS12_C */
|
#endif /* POLARSSL_PKCS12_C */
|
||||||
|
|
||||||
#if defined(_MSC_VER) && !defined snprintf
|
#if defined(_MSC_VER) && !defined snprintf && !defined(EFIX64) && \
|
||||||
|
!defined(EFI32)
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#if !defined vsnprintf
|
#if !defined vsnprintf
|
||||||
|
|
|
@ -34,7 +34,8 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#if defined(_MSC_VER) && !defined strcasecmp
|
#if defined(_MSC_VER) && !defined strcasecmp && !defined(EFIX64) && \
|
||||||
|
!defined(EFI32)
|
||||||
#define strcasecmp _stricmp
|
#define strcasecmp _stricmp
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,8 @@
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#if defined(_MSC_VER) && !defined strcasecmp
|
#if defined(_MSC_VER) && !defined strcasecmp && !defined(EFIX64) && \
|
||||||
|
!defined(EFI32)
|
||||||
#define strcasecmp _stricmp
|
#define strcasecmp _stricmp
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -429,7 +429,8 @@ int x509_load_file( const char *path, unsigned char **buf, size_t *n )
|
||||||
}
|
}
|
||||||
#endif /* POLARSSL_FS_IO */
|
#endif /* POLARSSL_FS_IO */
|
||||||
|
|
||||||
#if defined(_MSC_VER) && !defined snprintf
|
#if defined(_MSC_VER) && !defined snprintf && !defined(EFIX64) && \
|
||||||
|
!defined(EFI32)
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#if !defined vsnprintf
|
#if !defined vsnprintf
|
||||||
|
|
|
@ -31,7 +31,8 @@
|
||||||
#include "polarssl/asn1write.h"
|
#include "polarssl/asn1write.h"
|
||||||
#include "polarssl/oid.h"
|
#include "polarssl/oid.h"
|
||||||
|
|
||||||
#if defined(_MSC_VER) && !defined strncasecmp
|
#if defined(_MSC_VER) && !defined strncasecmp && !defined(EFIX64) && \
|
||||||
|
!defined(EFI32)
|
||||||
#define strncasecmp _strnicmp
|
#define strncasecmp _strnicmp
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -545,7 +545,8 @@ int x509_crl_parse_file( x509_crl *chain, const char *path )
|
||||||
}
|
}
|
||||||
#endif /* POLARSSL_FS_IO */
|
#endif /* POLARSSL_FS_IO */
|
||||||
|
|
||||||
#if defined(_MSC_VER) && !defined snprintf
|
#if defined(_MSC_VER) && !defined snprintf && !defined(EFIX64) && \
|
||||||
|
!defined(EFI32)
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#if !defined vsnprintf
|
#if !defined vsnprintf
|
||||||
|
|
|
@ -1039,7 +1039,8 @@ int x509_crt_parse_path( x509_crt *chain, const char *path )
|
||||||
}
|
}
|
||||||
#endif /* POLARSSL_FS_IO */
|
#endif /* POLARSSL_FS_IO */
|
||||||
|
|
||||||
#if defined(_MSC_VER) && !defined snprintf
|
#if defined(_MSC_VER) && !defined snprintf && !defined(EFIX64) && \
|
||||||
|
!defined(EFI32)
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#if !defined vsnprintf
|
#if !defined vsnprintf
|
||||||
|
|
|
@ -302,7 +302,8 @@ int x509_csr_parse_file( x509_csr *csr, const char *path )
|
||||||
}
|
}
|
||||||
#endif /* POLARSSL_FS_IO */
|
#endif /* POLARSSL_FS_IO */
|
||||||
|
|
||||||
#if defined(_MSC_VER) && !defined snprintf
|
#if defined(_MSC_VER) && !defined snprintf && !defined(EFIX64) && \
|
||||||
|
!defined(EFI32)
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#if !defined vsnprintf
|
#if !defined vsnprintf
|
||||||
|
|
Loading…
Reference in a new issue