diff options
Diffstat (limited to 'src/lib/libssl/t1_enc.c')
-rw-r--r-- | src/lib/libssl/t1_enc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libssl/t1_enc.c b/src/lib/libssl/t1_enc.c index debbf286f6..c5ff2c2435 100644 --- a/src/lib/libssl/t1_enc.c +++ b/src/lib/libssl/t1_enc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t1_enc.c,v 1.125 2020/10/07 08:43:34 jsing Exp $ */ | 1 | /* $OpenBSD: t1_enc.c,v 1.126 2020/10/14 16:57:33 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 | * |
@@ -342,7 +342,7 @@ tls1_change_cipher_state_aead(SSL *s, char is_read, const unsigned char *key, | |||
342 | SSL_AEAD_CTX *aead_ctx; | 342 | SSL_AEAD_CTX *aead_ctx; |
343 | 343 | ||
344 | /* XXX - Need to avoid clearing write state for DTLS. */ | 344 | /* XXX - Need to avoid clearing write state for DTLS. */ |
345 | if (SSL_IS_DTLS(s)) | 345 | if (SSL_is_dtls(s)) |
346 | return 0; | 346 | return 0; |
347 | 347 | ||
348 | if (is_read) { | 348 | if (is_read) { |
@@ -447,7 +447,7 @@ tls1_change_cipher_state_cipher(SSL *s, char is_read, | |||
447 | * contexts that are used for DTLS - these are instead freed | 447 | * contexts that are used for DTLS - these are instead freed |
448 | * by DTLS when its frees a ChangeCipherSpec fragment. | 448 | * by DTLS when its frees a ChangeCipherSpec fragment. |
449 | */ | 449 | */ |
450 | if (!SSL_IS_DTLS(s)) | 450 | if (!SSL_is_dtls(s)) |
451 | ssl_clear_cipher_write_state(s); | 451 | ssl_clear_cipher_write_state(s); |
452 | 452 | ||
453 | if ((cipher_ctx = EVP_CIPHER_CTX_new()) == NULL) | 453 | if ((cipher_ctx = EVP_CIPHER_CTX_new()) == NULL) |
@@ -524,7 +524,7 @@ tls1_change_cipher_state(SSL *s, int which) | |||
524 | * Reset sequence number to zero - for DTLS this is handled in | 524 | * Reset sequence number to zero - for DTLS this is handled in |
525 | * dtls1_reset_seq_numbers(). | 525 | * dtls1_reset_seq_numbers(). |
526 | */ | 526 | */ |
527 | if (!SSL_IS_DTLS(s)) { | 527 | if (!SSL_is_dtls(s)) { |
528 | seq = is_read ? S3I(s)->read_sequence : S3I(s)->write_sequence; | 528 | seq = is_read ? S3I(s)->read_sequence : S3I(s)->write_sequence; |
529 | memset(seq, 0, SSL3_SEQUENCE_SIZE); | 529 | memset(seq, 0, SSL3_SEQUENCE_SIZE); |
530 | } | 530 | } |