提交 e0520c65 编写于 作者: D Dr. Stephen Henson

Don't use BN_ULLONG in n2l8 use SCTS_TIMESTAMP.

(cherry picked from commit 3678161d717d0f46c5b5b052a6d6a33438b1df00)
上级 3a325c60
......@@ -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);
......
......@@ -231,15 +231,6 @@
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; \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册