Rich Salz
12997aa984
Revert "Add some casts for %j"
...
This reverts commit c4d2e483a3
.
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/4160 )
2017-08-15 09:42:38 -04:00
Rich Salz
c4d2e483a3
Add some casts for %j
...
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/4160 )
2017-08-14 19:59:54 -04:00
Richard Levitte
da26ff3085
ASN.1: change INTxx, UINTxx and Z variants to be embedable
...
Fixes #3191
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3199 )
2017-04-13 10:23:31 +02:00
Richard Levitte
429223d198
Fix x_int64.c
...
Clearing a misunderstanding. The routines c2i_uint64_int() and
i2c_uint64_int() expect to receive that internal values are absolute
and with a separate sign flag, and the x_int64.c code handles values
that aren't absolute and have the sign bit embedded. We therefore
need to convert between absolute and non-absolute values for the
encoding of negative values to be correct.
[extended tests]
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3160 )
2017-04-11 22:08:41 +02:00
Matt Caswell
0856e3f167
Reject decoding of an INT64 with a value >INT64_MAX
...
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3159 )
2017-04-11 15:29:42 +01:00
Richard Levitte
64f11ee888
Publish our INT32, UINT32, INT64, UINT64 ASN.1 types and Z variants
...
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3126 )
2017-04-10 12:10:59 +02:00
Richard Levitte
93f7d6fc10
Implement internal ASN.1 types INT32, UINT32, INT64, UINT64
...
Also Z varieties.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3088 )
2017-04-04 11:29:23 +02:00