projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Brought forward from 0.9.8 - 64 bit warning fixes and fussy compiler fixes.
[oweals/openssl.git]
/
crypto
/
bn
/
bn.h
diff --git
a/crypto/bn/bn.h
b/crypto/bn/bn.h
index 6d5273520747c3182eeee20fb8fc377ed7be96e0..670584ad74a7cbe683c0df7d8045dad624ae0722 100644
(file)
--- a/
crypto/bn/bn.h
+++ b/
crypto/bn/bn.h
@@
-167,7
+167,7
@@
extern "C" {
#ifdef THIRTY_TWO_BIT
#ifdef BN_LLONG
# if defined(OPENSSL_SYS_WIN32) && !defined(__GNUC__)
#ifdef THIRTY_TWO_BIT
#ifdef BN_LLONG
# if defined(OPENSSL_SYS_WIN32) && !defined(__GNUC__)
-# define BN_ULLONG unsigned _int64
+# define BN_ULLONG unsigned _
_
int64
# else
# define BN_ULLONG unsigned long long
# endif
# else
# define BN_ULLONG unsigned long long
# endif
@@
-253,6
+253,8
@@
extern "C" {
#define BN_set_flags(b,n) ((b)->flags|=(n))
#define BN_get_flags(b,n) ((b)->flags&(n))
#define BN_set_flags(b,n) ((b)->flags|=(n))
#define BN_get_flags(b,n) ((b)->flags&(n))
+/* get a clone of a BIGNUM with changed flags, for *temporary* use only
+ * (the two BIGNUMs cannot not be used in parallel!) */
#define BN_with_flags(dest,b,n) ((dest)->d=(b)->d, \
(dest)->top=(b)->top, \
(dest)->dmax=(b)->dmax, \
#define BN_with_flags(dest,b,n) ((dest)->d=(b)->d, \
(dest)->top=(b)->top, \
(dest)->dmax=(b)->dmax, \