set the value used by gnutls_certificate_client_get_request_status prior to selecting certificate

That allows gnutls_certificate_client_get_request_status() to be properly operating
from the callback. Reported by Anton Lavrentiev.
parent a46eee66
......@@ -1483,6 +1483,11 @@ _gnutls_proc_cert_cert_req(gnutls_session_t session, uint8_t * data,
DECR_LEN_FINAL(dsize, size);
/* We should reply with a certificate message,
* even if we have no certificate to send.
*/
session->key.crt_requested = 1;
/* now we ask the user to tell which one
* he wants to use.
*/
......@@ -1493,11 +1498,6 @@ _gnutls_proc_cert_cert_req(gnutls_session_t session, uint8_t * data,
return ret;
}
/* We should reply with a certificate message,
* even if we have no certificate to send.
*/
session->key.crt_requested = 1;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment