aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/s2n/stuffer/s2n_stuffer.c
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2023-03-02 10:05:41 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2023-03-02 10:05:41 +0300
commitc8b3fb9dab5150585defd576d83647a12a84b990 (patch)
tree918b7d8f1a373e70555914fd15aa4e0a8cc09940 /contrib/restricted/aws/s2n/stuffer/s2n_stuffer.c
parent093b04166b8440db82cf0590a4beb6c5e8cd5668 (diff)
downloadydb-c8b3fb9dab5150585defd576d83647a12a84b990.tar.gz
Update contrib/restricted/aws/s2n to 1.3.37
Diffstat (limited to 'contrib/restricted/aws/s2n/stuffer/s2n_stuffer.c')
-rw-r--r--contrib/restricted/aws/s2n/stuffer/s2n_stuffer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/restricted/aws/s2n/stuffer/s2n_stuffer.c b/contrib/restricted/aws/s2n/stuffer/s2n_stuffer.c
index ea46e0056f..92a47a3db4 100644
--- a/contrib/restricted/aws/s2n/stuffer/s2n_stuffer.c
+++ b/contrib/restricted/aws/s2n/stuffer/s2n_stuffer.c
@@ -76,6 +76,14 @@ int s2n_stuffer_init(struct s2n_stuffer *stuffer, struct s2n_blob *in)
return S2N_SUCCESS;
}
+int s2n_stuffer_init_written(struct s2n_stuffer *stuffer, struct s2n_blob *in)
+{
+ POSIX_ENSURE_REF(in);
+ POSIX_GUARD(s2n_stuffer_init(stuffer, in));
+ POSIX_GUARD(s2n_stuffer_skip_write(stuffer, in->size));
+ return S2N_SUCCESS;
+}
+
int s2n_stuffer_alloc(struct s2n_stuffer *stuffer, const uint32_t size)
{
POSIX_ENSURE_REF(stuffer);