projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe5eef3
)
Enable PSK if corresponding mask set.
author
Dr. Stephen Henson
<steve@openssl.org>
Sun, 28 Jun 2015 16:02:56 +0000
(17:02 +0100)
committer
Dr. Stephen Henson
<steve@openssl.org>
Thu, 30 Jul 2015 13:43:35 +0000
(14:43 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
ssl/ssl_lib.c
patch
|
blob
|
history
diff --git
a/ssl/ssl_lib.c
b/ssl/ssl_lib.c
index d20d95be7080a12fa5f74e5e3484a627f8e3b182..5a0ec8afc8adb5105a00924c789aa9458132cb72 100644
(file)
--- a/
ssl/ssl_lib.c
+++ b/
ssl/ssl_lib.c
@@
-2112,6
+2112,12
@@
void ssl_set_masks(SSL *s, const SSL_CIPHER *cipher)
mask_a |= SSL_aPSK;
emask_k |= SSL_kPSK;
emask_a |= SSL_aPSK;
+ if (mask_k & SSL_kRSA)
+ mask_k |= SSL_kRSAPSK;
+ if (mask_k & SSL_kDHE)
+ mask_k |= SSL_kDHEPSK;
+ if (mask_k & SSL_kECDHE)
+ mask_k |= SSL_kECDHEPSK;
#endif
s->s3->tmp.mask_k = mask_k;