Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Langley <agl@chromium.org>2014-06-20 23:00:00 +0400
committerAdam Langley <agl@chromium.org>2014-06-21 00:17:35 +0400
commitc26c802a8912a813181ea677b7da38d1d3aedcf8 (patch)
tree2d38ad83901a29057d6171323865d35891df5b72 /ssl/s3_enc.c
parentd493d5289dd834b65232899c2cd8fe83baddfd44 (diff)
Implement ECDHE-PSK-WITH-AES-128-GCM-SHA256.
Diffstat (limited to 'ssl/s3_enc.c')
-rw-r--r--ssl/s3_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s3_enc.c b/ssl/s3_enc.c
index fcb57c86..c275a9a5 100644
--- a/ssl/s3_enc.c
+++ b/ssl/s3_enc.c
@@ -695,7 +695,7 @@ int n_ssl3_mac(SSL *ssl, unsigned char *md, int send)
}
t=EVP_MD_CTX_size(hash);
- if (t < 0)
+ if (t < 0 || t > 20)
return -1;
md_size=t;
npad=(48/md_size)*md_size;