diff options
Diffstat (limited to '')
-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 9e55dd44d6..4ab2828d09 100644 --- a/src/lib/libssl/bytestring.h +++ b/src/lib/libssl/bytestring.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bytestring.h,v 1.19 2021/05/16 10:58:27 jsing Exp $ */ | 1 | /* $OpenBSD: bytestring.h,v 1.20 2021/12/15 17:23:34 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014, Google Inc. | 3 | * Copyright (c) 2014, Google Inc. |
4 | * | 4 | * |
@@ -134,6 +134,12 @@ int CBS_get_u24(CBS *cbs, uint32_t *out); | |||
134 | int CBS_get_u32(CBS *cbs, uint32_t *out); | 134 | int CBS_get_u32(CBS *cbs, uint32_t *out); |
135 | 135 | ||
136 | /* | 136 | /* |
137 | * CBS_get_last_u8 sets |*out| to the last uint8_t from |cbs| and shortens | ||
138 | * |cbs|. It returns one on success and zero on error. | ||
139 | */ | ||
140 | int CBS_get_last_u8(CBS *cbs, uint8_t *out); | ||
141 | |||
142 | /* | ||
137 | * CBS_get_bytes sets |*out| to the next |len| bytes from |cbs| and advances | 143 | * CBS_get_bytes sets |*out| to the next |len| bytes from |cbs| and advances |
138 | * |cbs|. It returns one on success and zero on error. | 144 | * |cbs|. It returns one on success and zero on error. |
139 | */ | 145 | */ |