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:
authorDavid Benjamin <davidben@chromium.org>2014-08-13 23:08:33 +0400
committerAdam Langley <agl@google.com>2014-08-14 01:59:02 +0400
commit9174312be684ac8419ce243bf56dae74ded0aafb (patch)
treeeff156ba81f43417cc654768e2c3b1b3cb7f7dd9 /ssl/d1_clnt.c
parent6491e8c267dd00732420e94a2dfc3f020508673d (diff)
Update d1_clnt.c to use ssl_cipher_has_server_public_key.
Mirror the changes in s3_clnt.c. Change-Id: I7af7080c6eea2a67cc994befa11e45d32eaa9615 Reviewed-on: https://boringssl-review.googlesource.com/1506 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'ssl/d1_clnt.c')
-rw-r--r--ssl/d1_clnt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ssl/d1_clnt.c b/ssl/d1_clnt.c
index 05a06f8f..4405b17e 100644
--- a/ssl/d1_clnt.c
+++ b/ssl/d1_clnt.c
@@ -303,9 +303,7 @@ int dtls1_connect(SSL *s)
case SSL3_ST_CR_CERT_A:
case SSL3_ST_CR_CERT_B:
- /* Check if it is anon DH or PSK */
- if (!(s->s3->tmp.new_cipher->algorithm_auth & SSL_aNULL) &&
- !(s->s3->tmp.new_cipher->algorithm_mkey & SSL_kPSK))
+ if (ssl_cipher_has_server_public_key(s->s3->tmp.new_cipher))
{
ret=ssl3_get_server_certificate(s);
if (ret <= 0) goto end;