Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssl/dist/test Use hex string syntax ...



details:   https://anonhg.NetBSD.org/src/rev/cf17ad72da71
branches:  trunk
changeset: 993812:cf17ad72da71
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 02 13:53:51 2018 +0000

description:
Use hex string syntax to prevent overflow warnings for character constants
>= 128.

diffstat:

 crypto/external/bsd/openssl/dist/test/hmactest.c |  12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diffs (29 lines):

diff -r eda8a197e17f -r cf17ad72da71 crypto/external/bsd/openssl/dist/test/hmactest.c
--- a/crypto/external/bsd/openssl/dist/test/hmactest.c  Mon Oct 01 19:45:00 2018 +0000
+++ b/crypto/external/bsd/openssl/dist/test/hmactest.c  Tue Oct 02 13:53:51 2018 +0000
@@ -38,10 +38,8 @@
         "e9139d1e6ee064ef8cf514fc7dc83e86",
     },
     {
-        {
-            0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b,
-            0x0b, 0x0b, 0x0b, 0x0b, 0x0b,
-        }, 16, "Hi There", 8,
+        "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
+        16, "Hi There", 8,
         "9294727a3638bb1c13f48ef8158bfc9d",
     },
     {
@@ -49,10 +47,8 @@
         "750c783e6ab0b503eaa86e310a5db738",
     },
     {
-        {
-            0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
-            0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
-        }, 16, {
+        "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
+        16, {
             0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,
             0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,
             0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,



Home | Main Index | Thread Index | Old Index