diff options
| author | jsing <> | 2021-02-27 14:20:50 +0000 |
|---|---|---|
| committer | jsing <> | 2021-02-27 14:20:50 +0000 |
| commit | a11a6f00b2fc0a99e3a11a24ddfdd1b2bf16207a (patch) | |
| tree | 9d9bf203c33aecbd476a400682a4176e3a1e9c21 /src/lib/libssl/ssl_lib.c | |
| parent | 2970ae6bd32bfc5bab669368a5393194a29505aa (diff) | |
| download | openbsd-a11a6f00b2fc0a99e3a11a24ddfdd1b2bf16207a.tar.gz openbsd-a11a6f00b2fc0a99e3a11a24ddfdd1b2bf16207a.tar.bz2 openbsd-a11a6f00b2fc0a99e3a11a24ddfdd1b2bf16207a.zip | |
Move handling of cipher/hash based cipher suites into the new record layer.
ok tb@
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
| -rw-r--r-- | src/lib/libssl/ssl_lib.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index 57d0f4b779..e0a77d7820 100644 --- a/src/lib/libssl/ssl_lib.c +++ b/src/lib/libssl/ssl_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_lib.c,v 1.249 2021/02/25 17:06:05 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_lib.c,v 1.250 2021/02/27 14:20:50 jsing Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -2616,22 +2616,14 @@ ssl_clear_cipher_state(SSL *s) | |||
| 2616 | void | 2616 | void |
| 2617 | ssl_clear_cipher_read_state(SSL *s) | 2617 | ssl_clear_cipher_read_state(SSL *s) |
| 2618 | { | 2618 | { |
| 2619 | EVP_CIPHER_CTX_free(s->enc_read_ctx); | ||
| 2620 | s->enc_read_ctx = NULL; | ||
| 2621 | EVP_MD_CTX_free(s->read_hash); | ||
| 2622 | s->read_hash = NULL; | ||
| 2623 | |||
| 2624 | tls12_record_layer_clear_read_state(s->internal->rl); | 2619 | tls12_record_layer_clear_read_state(s->internal->rl); |
| 2620 | tls12_record_layer_read_cipher_hash(s->internal->rl, | ||
| 2621 | &s->enc_read_ctx, &s->read_hash); | ||
| 2625 | } | 2622 | } |
| 2626 | 2623 | ||
| 2627 | void | 2624 | void |
| 2628 | ssl_clear_cipher_write_state(SSL *s) | 2625 | ssl_clear_cipher_write_state(SSL *s) |
| 2629 | { | 2626 | { |
| 2630 | EVP_CIPHER_CTX_free(s->internal->enc_write_ctx); | ||
| 2631 | s->internal->enc_write_ctx = NULL; | ||
| 2632 | EVP_MD_CTX_free(s->internal->write_hash); | ||
| 2633 | s->internal->write_hash = NULL; | ||
| 2634 | |||
| 2635 | tls12_record_layer_clear_write_state(s->internal->rl); | 2627 | tls12_record_layer_clear_write_state(s->internal->rl); |
| 2636 | } | 2628 | } |
| 2637 | 2629 | ||
