diff options
author | jsing <> | 2024-06-22 15:25:06 +0000 |
---|---|---|
committer | jsing <> | 2024-06-22 15:25:06 +0000 |
commit | c1a7d59eabe0ee1027c94a3898d5e3d8f456270c (patch) | |
tree | ba319425ed8219cd90fe0d4b736b23239883585d /src/lib/libssl/bytestring.h | |
parent | 03bc09af3c2f1234276cf962253012e9f3ec81f7 (diff) | |
download | openbsd-c1a7d59eabe0ee1027c94a3898d5e3d8f456270c.tar.gz openbsd-c1a7d59eabe0ee1027c94a3898d5e3d8f456270c.tar.bz2 openbsd-c1a7d59eabe0ee1027c94a3898d5e3d8f456270c.zip |
Provide CBB_add_u32_length_prefixed().
This is needed for an upcoming change in libcrypto.
ok tb@
Diffstat (limited to 'src/lib/libssl/bytestring.h')
-rw-r--r-- | src/lib/libssl/bytestring.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libssl/bytestring.h b/src/lib/libssl/bytestring.h index 51284da8db..750343d4fa 100644 --- a/src/lib/libssl/bytestring.h +++ b/src/lib/libssl/bytestring.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bytestring.h,v 1.24 2022/11/09 23:14:51 jsing Exp $ */ | 1 | /* $OpenBSD: bytestring.h,v 1.25 2024/06/22 15:25:06 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014, Google Inc. | 3 | * Copyright (c) 2014, Google Inc. |
4 | * | 4 | * |
@@ -460,6 +460,13 @@ int CBB_add_u16_length_prefixed(CBB *cbb, CBB *out_contents); | |||
460 | int CBB_add_u24_length_prefixed(CBB *cbb, CBB *out_contents); | 460 | int CBB_add_u24_length_prefixed(CBB *cbb, CBB *out_contents); |
461 | 461 | ||
462 | /* | 462 | /* |
463 | * CBB_add_u32_length_prefixed sets |*out_contents| to a new child of |cbb|. | ||
464 | * The data written to |*out_contents| will be prefixed in |cbb| with a 32-bit, | ||
465 | * big-endian length. It returns one on success or zero on error. | ||
466 | */ | ||
467 | int CBB_add_u32_length_prefixed(CBB *cbb, CBB *out_contents); | ||
468 | |||
469 | /* | ||
463 | * CBB_add_asn sets |*out_contents| to a |CBB| into which the contents of an | 470 | * CBB_add_asn sets |*out_contents| to a |CBB| into which the contents of an |
464 | * ASN.1 object can be written. The |tag| argument will be used as the tag for | 471 | * ASN.1 object can be written. The |tag| argument will be used as the tag for |
465 | * the object. Passing in |tag| number 31 will return in an error since only | 472 | * the object. Passing in |tag| number 31 will return in an error since only |