diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2020-02-05 16:47:35 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2020-02-05 16:47:35 +0000 |
commit | 481acd9c68f3eceb3e7549faf61b4fbcf41bad54 (patch) | |
tree | 42d14b83ce5f13da171658117a4ca3a1d6871787 /lib/libssl/ssl_transcript.c | |
parent | 6c414a2a778210058a4424450b1db214fccb31bc (diff) |
Provide tls1_transcript_unfreeze() to avoid the need for manual flags
mangling.
ok tb@
Diffstat (limited to 'lib/libssl/ssl_transcript.c')
-rw-r--r-- | lib/libssl/ssl_transcript.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libssl/ssl_transcript.c b/lib/libssl/ssl_transcript.c index e94eb8de80a..b93004cd178 100644 --- a/lib/libssl/ssl_transcript.c +++ b/lib/libssl/ssl_transcript.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_transcript.c,v 1.1 2019/02/09 15:30:52 jsing Exp $ */ +/* $OpenBSD: ssl_transcript.c,v 1.2 2020/02/05 16:47:34 jsing Exp $ */ /* * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> * @@ -142,7 +142,7 @@ tls1_transcript_reset(SSL *s) */ (void)BUF_MEM_grow_clean(S3I(s)->handshake_transcript, 0); - s->s3->flags &= ~TLS1_FLAGS_FREEZE_TRANSCRIPT; + tls1_transcript_unfreeze(s); } int @@ -188,6 +188,12 @@ tls1_transcript_freeze(SSL *s) s->s3->flags |= TLS1_FLAGS_FREEZE_TRANSCRIPT; } +void +tls1_transcript_unfreeze(SSL *s) +{ + s->s3->flags &= ~TLS1_FLAGS_FREEZE_TRANSCRIPT; +} + int tls1_transcript_record(SSL *s, const unsigned char *buf, size_t len) { |