Don't use BN_ULLONG in n2l8 use SCTS_TIMESTAMP.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 25 Feb 2014 15:05:08 +0000 (15:05 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 25 Feb 2014 15:05:08 +0000 (15:05 +0000)
crypto/x509v3/v3_scts.c
ssl/ssl_locl.h

index 614522a75e0ffa6a23f38d9270c6fdde39a3d476..457d5acaaaa4b85c0ed960fddf31d54db2a296e2 100644 (file)
 #define SCTS_TIMESTAMP unsigned long long
 #endif
 
+#define n2l8(c,l)      (l =((SCTS_TIMESTAMP)(*((c)++)))<<56, \
+                        l|=((SCTS_TIMESTAMP)(*((c)++)))<<48, \
+                        l|=((SCTS_TIMESTAMP)(*((c)++)))<<40, \
+                        l|=((SCTS_TIMESTAMP)(*((c)++)))<<32, \
+                        l|=((SCTS_TIMESTAMP)(*((c)++)))<<24, \
+                        l|=((SCTS_TIMESTAMP)(*((c)++)))<<16, \
+                        l|=((SCTS_TIMESTAMP)(*((c)++)))<< 8, \
+                        l|=((SCTS_TIMESTAMP)(*((c)++))))
+
 
 static int i2r_scts(X509V3_EXT_METHOD *method, ASN1_OCTET_STRING *oct, BIO *out, int indent);
 
index d57d83e20658c2a4907fdce96be62eeb7ee4628e..4d6e29dc4268782f8dfdf51e400b7330c7736ede 100644 (file)
                         l|=((BN_ULLONG)(*((c)++)))<< 8, \
                         l|=((BN_ULLONG)(*((c)++))))
 
-#define n2l8(c,l)      (l =((BN_ULLONG)(*((c)++)))<<56, \
-                        l|=((BN_ULLONG)(*((c)++)))<<48, \
-                        l|=((BN_ULLONG)(*((c)++)))<<40, \
-                        l|=((BN_ULLONG)(*((c)++)))<<32, \
-                        l|=((BN_ULLONG)(*((c)++)))<<24, \
-                        l|=((BN_ULLONG)(*((c)++)))<<16, \
-                        l|=((BN_ULLONG)(*((c)++)))<< 8, \
-                        l|=((BN_ULLONG)(*((c)++))))
-
 /* NOTE - c is not incremented as per l2c */
 #define l2cn(l1,l2,c,n)        { \
                        c+=n; \