提交 21f198ec 编写于 作者: R Richard Levitte
上级 8f85aa6b
...@@ -2279,7 +2279,9 @@ int tls_choose_sigalg(SSL *s) ...@@ -2279,7 +2279,9 @@ int tls_choose_sigalg(SSL *s)
{ {
if (SSL_IS_TLS13(s)) { if (SSL_IS_TLS13(s)) {
size_t i; size_t i;
#ifndef OPENSSL_NO_EC
int curve = -1; int curve = -1;
#endif
/* Look for a certificate matching shared sigaglgs */ /* Look for a certificate matching shared sigaglgs */
for (i = 0; i < s->cert->shared_sigalgslen; i++) { for (i = 0; i < s->cert->shared_sigalgslen; i++) {
...@@ -2305,6 +2307,7 @@ int tls_choose_sigalg(SSL *s) ...@@ -2305,6 +2307,7 @@ int tls_choose_sigalg(SSL *s)
continue; continue;
} }
if (lu->sig == EVP_PKEY_EC) { if (lu->sig == EVP_PKEY_EC) {
#ifndef OPENSSL_NO_EC
if (curve == -1) { if (curve == -1) {
EC_KEY *ec = EVP_PKEY_get0_EC_KEY(c->privatekey); EC_KEY *ec = EVP_PKEY_get0_EC_KEY(c->privatekey);
...@@ -2312,6 +2315,9 @@ int tls_choose_sigalg(SSL *s) ...@@ -2312,6 +2315,9 @@ int tls_choose_sigalg(SSL *s)
} }
if (curve != lu->curve) if (curve != lu->curve)
continue; continue;
#else
continue;
#endif
} }
s->s3->tmp.sigalg = lu; s->s3->tmp.sigalg = lu;
s->s3->tmp.cert_idx = idx; s->s3->tmp.cert_idx = idx;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册