Fix DTLS certificate requesting code.
Use same logic when determining when to expect a client certificate for both TLS and DTLS. PR#3452 (cherry picked from commit c8d710dc5f83d69d802f941a4cc5895eb5fe3d65)
This commit is contained in:
parent
a214feb26b
commit
c3d317b4de
@ -480,10 +480,11 @@ int dtls1_accept(SSL *s)
|
|||||||
s->state = SSL3_ST_SR_CLNT_HELLO_C;
|
s->state = SSL3_ST_SR_CLNT_HELLO_C;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* could be sent for a DH cert, even if we
|
if (s->s3->tmp.cert_request)
|
||||||
* have not asked for it :-) */
|
{
|
||||||
ret=ssl3_get_client_certificate(s);
|
ret=ssl3_get_client_certificate(s);
|
||||||
if (ret <= 0) goto end;
|
if (ret <= 0) goto end;
|
||||||
|
}
|
||||||
s->init_num=0;
|
s->init_num=0;
|
||||||
s->state=SSL3_ST_SR_KEY_EXCH_A;
|
s->state=SSL3_ST_SR_KEY_EXCH_A;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user