summaryrefslogtreecommitdiffstats
path: root/crypto/pqueue
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2005-06-05 22:42:58 +0000
committerRichard Levitte <levitte@openssl.org>2005-06-05 22:42:58 +0000
commit51054a1b39e955d70169835cabcdfde5cee88749 (patch)
tree5de977969a5fc91f5f93d77d58639a20f3756a8f /crypto/pqueue
parente774a3299e95fc458ab6593861ade0ef17baa492 (diff)
Change pq_compat.h to trust the macros defined by bn.h a bit more, and thereby
provide better generic support for environments that do not have 64-bit integers. Among others, this should solve PR 1086
Diffstat (limited to 'crypto/pqueue')
-rw-r--r--crypto/pqueue/pq_compat.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/crypto/pqueue/pq_compat.h b/crypto/pqueue/pq_compat.h
index 2157a549da..776760a35a 100644
--- a/crypto/pqueue/pq_compat.h
+++ b/crypto/pqueue/pq_compat.h
@@ -63,14 +63,16 @@
/*
* The purpose of this header file is for supporting 64-bit integer
* manipulation on 32-bit (and lower) machines. Currently the only
- * such environment is VMS. Other environments that do not natively
- * support 64-bit integers can safely use the code developed for VMS.
+ * such environment is VMS, Utrix and those with smaller default integer
+ * sizes than 32 bits. For all such environment, we fall back to using
+ * BIGNUM. We may need to fine tune the conditions for systems that
+ * are incorrectly configured.
*
* The only clients of this code are (1) pqueue for priority, and
* (2) DTLS, for sequence number manipulation.
*/
-#if defined(OPENSSL_SYS_VMS) || defined(VMS_TEST)
+#if (defined(THIRTY_TWO_BIT) && !defined(BN_LLONG)) || defined(SIXTEEN_BIT) || defined(EIGHT_BIT)
#define PQ_64BIT BIGNUM
#define PQ_64BIT_CTX BN_CTX