diff options
author | jsing <> | 2022-01-06 14:30:30 +0000 |
---|---|---|
committer | jsing <> | 2022-01-06 14:30:30 +0000 |
commit | 274701b65cfcccb8efeaacf15d6bf5f78a0b3412 (patch) | |
tree | 912faa7b647b693968113808eab2bfc787aca861 /src/lib/libssl/bytestring.h | |
parent | 473510cd8b577e6b1d32cfec4196726f563886fa (diff) | |
download | openbsd-274701b65cfcccb8efeaacf15d6bf5f78a0b3412.tar.gz openbsd-274701b65cfcccb8efeaacf15d6bf5f78a0b3412.tar.bz2 openbsd-274701b65cfcccb8efeaacf15d6bf5f78a0b3412.zip |
Provide CBB_add_u64()
Prompted by and ok tb@
Diffstat (limited to 'src/lib/libssl/bytestring.h')
-rw-r--r-- | src/lib/libssl/bytestring.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libssl/bytestring.h b/src/lib/libssl/bytestring.h index ce933f3f7b..022bc683a3 100644 --- a/src/lib/libssl/bytestring.h +++ b/src/lib/libssl/bytestring.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bytestring.h,v 1.22 2021/12/15 17:36:49 jsing Exp $ */ | 1 | /* $OpenBSD: bytestring.h,v 1.23 2022/01/06 14:30:30 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014, Google Inc. | 3 | * Copyright (c) 2014, Google Inc. |
4 | * | 4 | * |
@@ -509,6 +509,12 @@ int CBB_add_u24(CBB *cbb, size_t value); | |||
509 | int CBB_add_u32(CBB *cbb, size_t value); | 509 | int CBB_add_u32(CBB *cbb, size_t value); |
510 | 510 | ||
511 | /* | 511 | /* |
512 | * CBB_add_u64 appends a 64-bit, big-endian number from |value| to |cbb|. It | ||
513 | * returns one on success and zero otherwise. | ||
514 | */ | ||
515 | int CBB_add_u64(CBB *cbb, uint64_t value); | ||
516 | |||
517 | /* | ||
512 | * CBB_add_asn1_uint64 writes an ASN.1 INTEGER into |cbb| using |CBB_add_asn1| | 518 | * CBB_add_asn1_uint64 writes an ASN.1 INTEGER into |cbb| using |CBB_add_asn1| |
513 | * and writes |value| in its contents. It returns one on success and zero on | 519 | * and writes |value| in its contents. It returns one on success and zero on |
514 | * error. | 520 | * error. |