summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_both.c
diff options
context:
space:
mode:
authormiod <>2014-08-07 20:02:23 +0000
committermiod <>2014-08-07 20:02:23 +0000
commite58fb502ca02fb2bd4f85e5725abd1189d26921c (patch)
tree3edb8354ad6b2884901d930a4a6006640b51962b /src/lib/libssl/d1_both.c
parent15e8f255e119bc9bcc3d331677007d5263431e63 (diff)
downloadopenbsd-e58fb502ca02fb2bd4f85e5725abd1189d26921c.tar.gz
openbsd-e58fb502ca02fb2bd4f85e5725abd1189d26921c.tar.bz2
openbsd-e58fb502ca02fb2bd4f85e5725abd1189d26921c.zip
Oops, revert changes commited by mistake. The previous commit was supposed
to only apply to s23_srvr.c.
Diffstat (limited to 'src/lib/libssl/d1_both.c')
-rw-r--r--src/lib/libssl/d1_both.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libssl/d1_both.c b/src/lib/libssl/d1_both.c
index 2391d52994..aec6e272bf 100644
--- a/src/lib/libssl/d1_both.c
+++ b/src/lib/libssl/d1_both.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_both.c,v 1.25 2014/08/07 19:46:31 miod Exp $ */ 1/* $OpenBSD: d1_both.c,v 1.26 2014/08/07 20:02:23 miod Exp $ */
2/* 2/*
3 * DTLS implementation written by Nagendra Modadugu 3 * DTLS implementation written by Nagendra Modadugu
4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -903,7 +903,6 @@ dtls1_send_finished(SSL *s, int a, int b, const char *sender, int slen)
903 903
904 i = s->method->ssl3_enc->final_finish_mac(s, sender, slen, 904 i = s->method->ssl3_enc->final_finish_mac(s, sender, slen,
905 s->s3->tmp.finish_md); 905 s->s3->tmp.finish_md);
906 OPENSSL_assert(i <= EVP_MAX_MD_SIZE);
907 s->s3->tmp.finish_md_len = i; 906 s->s3->tmp.finish_md_len = i;
908 memcpy(p, s->s3->tmp.finish_md, i); 907 memcpy(p, s->s3->tmp.finish_md, i);
909 p += i; 908 p += i;
@@ -914,10 +913,12 @@ dtls1_send_finished(SSL *s, int a, int b, const char *sender, int slen)
914 * renegotiation checks 913 * renegotiation checks
915 */ 914 */
916 if (s->type == SSL_ST_CONNECT) { 915 if (s->type == SSL_ST_CONNECT) {
916 OPENSSL_assert(i <= EVP_MAX_MD_SIZE);
917 memcpy(s->s3->previous_client_finished, 917 memcpy(s->s3->previous_client_finished,
918 s->s3->tmp.finish_md, i); 918 s->s3->tmp.finish_md, i);
919 s->s3->previous_client_finished_len = i; 919 s->s3->previous_client_finished_len = i;
920 } else { 920 } else {
921 OPENSSL_assert(i <= EVP_MAX_MD_SIZE);
921 memcpy(s->s3->previous_server_finished, 922 memcpy(s->s3->previous_server_finished,
922 s->s3->tmp.finish_md, i); 923 s->s3->tmp.finish_md, i);
923 s->s3->previous_server_finished_len = i; 924 s->s3->previous_server_finished_len = i;