diff options
author | jsing <> | 2024-06-22 15:32:51 +0000 |
---|---|---|
committer | jsing <> | 2024-06-22 15:32:51 +0000 |
commit | b5b93f3e56996c0034f98d6244c49b48e309478a (patch) | |
tree | 5e416e00f5e022846e51f635ce968cecf28c5b58 /src/lib/libcrypto/bytestring/bs_cbb.c | |
parent | c1a7d59eabe0ee1027c94a3898d5e3d8f456270c (diff) | |
download | openbsd-b5b93f3e56996c0034f98d6244c49b48e309478a.tar.gz openbsd-b5b93f3e56996c0034f98d6244c49b48e309478a.tar.bz2 openbsd-b5b93f3e56996c0034f98d6244c49b48e309478a.zip |
Sync bytestring from libssl.
Diffstat (limited to 'src/lib/libcrypto/bytestring/bs_cbb.c')
-rw-r--r-- | src/lib/libcrypto/bytestring/bs_cbb.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bytestring/bs_cbb.c b/src/lib/libcrypto/bytestring/bs_cbb.c index 3c66a28e66..cd29e168dc 100644 --- a/src/lib/libcrypto/bytestring/bs_cbb.c +++ b/src/lib/libcrypto/bytestring/bs_cbb.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bs_cbb.c,v 1.5 2024/05/25 15:12:47 tb Exp $ */ | 1 | /* $OpenBSD: bs_cbb.c,v 1.6 2024/06/22 15:32:51 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014, Google Inc. | 3 | * Copyright (c) 2014, Google Inc. |
4 | * | 4 | * |
@@ -329,6 +329,12 @@ CBB_add_u24_length_prefixed(CBB *cbb, CBB *out_contents) | |||
329 | } | 329 | } |
330 | 330 | ||
331 | int | 331 | int |
332 | CBB_add_u32_length_prefixed(CBB *cbb, CBB *out_contents) | ||
333 | { | ||
334 | return cbb_add_length_prefixed(cbb, out_contents, 4); | ||
335 | } | ||
336 | |||
337 | int | ||
332 | CBB_add_asn1(CBB *cbb, CBB *out_contents, unsigned int tag) | 338 | CBB_add_asn1(CBB *cbb, CBB *out_contents, unsigned int tag) |
333 | { | 339 | { |
334 | if (tag > UINT8_MAX) | 340 | if (tag > UINT8_MAX) |