diff options
Diffstat (limited to 'src/lib/libssl/t1_enc.c')
-rw-r--r-- | src/lib/libssl/t1_enc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/t1_enc.c b/src/lib/libssl/t1_enc.c index 620da6ddd0..4aae344696 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.73 2014/11/18 05:33:43 miod Exp $ */ | 1 | /* $OpenBSD: t1_enc.c,v 1.74 2014/12/14 15:30: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 | * |
@@ -605,7 +605,7 @@ tls1_setup_key_block(SSL *s) | |||
605 | key_len = EVP_CIPHER_key_length(cipher); | 605 | key_len = EVP_CIPHER_key_length(cipher); |
606 | iv_len = EVP_CIPHER_iv_length(cipher); | 606 | iv_len = EVP_CIPHER_iv_length(cipher); |
607 | 607 | ||
608 | /* If GCM mode only part of IV comes from PRF. */ | 608 | /* If GCM mode only part of IV comes from PRF. */ |
609 | if (EVP_CIPHER_mode(cipher) == EVP_CIPH_GCM_MODE) | 609 | if (EVP_CIPHER_mode(cipher) == EVP_CIPH_GCM_MODE) |
610 | iv_len = EVP_GCM_TLS_FIXED_IV_LEN; | 610 | iv_len = EVP_GCM_TLS_FIXED_IV_LEN; |
611 | } | 611 | } |
@@ -823,7 +823,7 @@ tls1_enc(SSL *s, int send) | |||
823 | fprintf(stderr, | 823 | fprintf(stderr, |
824 | "%s:%d: rec->data != rec->input\n", | 824 | "%s:%d: rec->data != rec->input\n", |
825 | __FILE__, __LINE__); | 825 | __FILE__, __LINE__); |
826 | else | 826 | else |
827 | arc4random_buf(rec->input, ivlen); | 827 | arc4random_buf(rec->input, ivlen); |
828 | } | 828 | } |
829 | } | 829 | } |