Don't use BN_ULLONG in n2l8 use SCTS_TIMESTAMP.
[openssl.git] / crypto / x509v3 / v3_scts.c
index 614522a..457d5ac 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);