diff options
author | jsing <> | 2014-06-13 10:52:24 +0000 |
---|---|---|
committer | jsing <> | 2014-06-13 10:52:24 +0000 |
commit | 87e30739835137951cf48dfa7f692aae2f40dc40 (patch) | |
tree | c478059909f99617992b0630fe527244e4f5873d /src/lib/libssl/s3_pkt.c | |
parent | 9ef9f06708ef4fe615f3485f5d82f3fb919fdf03 (diff) | |
download | openbsd-87e30739835137951cf48dfa7f692aae2f40dc40.tar.gz openbsd-87e30739835137951cf48dfa7f692aae2f40dc40.tar.bz2 openbsd-87e30739835137951cf48dfa7f692aae2f40dc40.zip |
Add an SSL_AEAD_CTX to enable the use of EVP_AEAD with an SSL cipher.
Read and write contexts are also added to the SSL_CTX, along with
supporting code.
Based on Adam Langley's chromium diffs.
Rides the recent SSL library bump.
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 | ||