Skip to content

Commit

Permalink
Don't use BN_ULLONG in n2l8 use SCTS_TIMESTAMP.
Browse files Browse the repository at this point in the history
  • Loading branch information
snhenson committed Feb 25, 2014
1 parent 6634416 commit 3678161
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 9 additions & 0 deletions crypto/x509v3/v3_scts.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
9 changes: 0 additions & 9 deletions ssl/ssl_locl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down

0 comments on commit 3678161

Please sign in to comment.