summaryrefslogtreecommitdiff
path: root/src/es256.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2020-09-20 16:14:20 +0100
committerColin Watson <cjwatson@debian.org>2020-09-20 16:14:20 +0100
commit173bfbf7886608a4a7abbfac6a42ac4bf4a3432d (patch)
treeb97833d8754f257f92d99dd2f5c9e9d557e3f689 /src/es256.c
parent75073d0a8478441cc97a6efa10b566c5fb1dac81 (diff)
New upstream version 1.5.0
Diffstat (limited to 'src/es256.c')
-rw-r--r--src/es256.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/es256.c b/src/es256.c
index 020ecaa..5b4e6d6 100644
--- a/src/es256.c
+++ b/src/es256.c
@@ -92,7 +92,7 @@ es256_pk_encode(const es256_pk_t *pk, int ecdh)
92 92
93 /* alg */ 93 /* alg */
94 if ((argv[1].key = cbor_build_uint8(3)) == NULL || 94 if ((argv[1].key = cbor_build_uint8(3)) == NULL ||
95 (argv[1].value = cbor_build_negint8(-alg - 1)) == NULL || 95 (argv[1].value = cbor_build_negint8((uint8_t)(-alg - 1))) == NULL ||
96 !cbor_map_add(item, argv[1])) 96 !cbor_map_add(item, argv[1]))
97 goto fail; 97 goto fail;
98 98