libtpms/libtpms-0.5.1-secondary.patch

47 lines
1.6 KiB
Diff
Raw Normal View History

2011-12-20 17:29:33 +00:00
diff -up libtpms-0.5.1/src/tpm_crypto_freebl.c.secondary libtpms-0.5.1/src/tpm_crypto_freebl.c
--- libtpms-0.5.1/src/tpm_crypto_freebl.c.secondary 2011-12-20 17:28:41.000000000 +0100
+++ libtpms-0.5.1/src/tpm_crypto_freebl.c 2011-12-20 17:43:53.000000000 +0100
@@ -1841,12 +1841,17 @@ void TPM_SHA1Delete(void **context)
#if defined (__x86_64__) || \
defined(__amd64__) || \
defined(__ia64__) || \
- defined(__powerpc64__)
+ defined(__powerpc64__) || \
+ defined(__s390x__) || \
+ defined(__sparc__) && defined(__arch64__)
#define IS_64
typedef PRUint64 SHA_HW_t;
#elif defined (__i386__) || \
- defined (__powerpc__)
+ defined (__powerpc__) || \
+ defined (__s390__) || \
+ defined (__sparc__) || \
+ defined (__arm__)
typedef PRUint32 SHA_HW_t;
#undef IS_64
diff -up libtpms-0.5.1/tests/freebl_sha1flattensize.c.secondary libtpms-0.5.1/tests/freebl_sha1flattensize.c
--- libtpms-0.5.1/tests/freebl_sha1flattensize.c.secondary 2011-12-20 18:17:02.000000000 +0100
+++ libtpms-0.5.1/tests/freebl_sha1flattensize.c 2011-12-20 18:17:32.000000000 +0100
@@ -8,12 +8,17 @@
#if defined (__x86_64__) || \
defined (__amd64__) || \
defined (__ia64__) || \
- defined (__powerpc64__)
+ defined (__powerpc64__) || \
+ defined(__s390x__) || \
+ defined(__sparc__) && defined(__arch64__)
#define EXPECTED_LIB_FLATTENSIZE 248
#elif defined (__i386__) || \
- defined (__powerpc__)
+ defined (__powerpc__) || \
+ defined (__s390__) || \
+ defined (__sparc__) || \
+ defined (__arm__)
#define EXPECTED_LIB_FLATTENSIZE 160