summaryrefslogtreecommitdiffstats
path: root/crypto/x509v3/v3_scts.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2014-02-25 15:05:08 +0000
committerDr. Stephen Henson <steve@openssl.org>2014-02-25 15:05:08 +0000
commit3678161d717d0f46c5b5b052a6d6a33438b1df00 (patch)
tree99643dd9d4a84f913f93355a5f645528f40c1e15 /crypto/x509v3/v3_scts.c
parent6634416732b94627eba1c47de3c3a6321a5458f0 (diff)
Don't use BN_ULLONG in n2l8 use SCTS_TIMESTAMP.
Diffstat (limited to 'crypto/x509v3/v3_scts.c')
-rw-r--r--crypto/x509v3/v3_scts.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/x509v3/v3_scts.c b/crypto/x509v3/v3_scts.c
index 614522a75e..457d5acaaa 100644
--- a/crypto/x509v3/v3_scts.c
+++ b/crypto/x509v3/v3_scts.c
@@ -71,6 +71,15 @@
#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);