diff options
Diffstat (limited to 'src/lib/libssl/s3_pkt.c')
-rw-r--r-- | src/lib/libssl/s3_pkt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libssl/s3_pkt.c b/src/lib/libssl/s3_pkt.c index 8235e0775a..f5d8bedbea 100644 --- a/src/lib/libssl/s3_pkt.c +++ b/src/lib/libssl/s3_pkt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_pkt.c,v 1.46 2014/06/12 15:49:31 deraadt Exp $ */ | 1 | /* $OpenBSD: s3_pkt.c,v 1.47 2014/06/13 10:52:24 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 | * |
@@ -753,6 +753,9 @@ do_ssl3_write(SSL *s, int type, const unsigned char *buf, | |||
753 | eivlen = EVP_GCM_TLS_EXPLICIT_IV_LEN; | 753 | eivlen = EVP_GCM_TLS_EXPLICIT_IV_LEN; |
754 | else | 754 | else |
755 | eivlen = 0; | 755 | eivlen = 0; |
756 | } else if (s->aead_write_ctx != NULL && | ||
757 | s->aead_write_ctx->variable_nonce_in_record) { | ||
758 | eivlen = s->aead_write_ctx->variable_nonce_len; | ||
756 | } else | 759 | } else |
757 | eivlen = 0; | 760 | eivlen = 0; |
758 | 761 | ||