diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2007-09-17 17:31:53 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2007-09-17 17:31:53 +0000 |
commit | c81898cbc4d4afe0477e91a274e22667fb21a941 (patch) | |
tree | 585d2101ab31a164efd0ab76914f01a0121e1314 /ssl/d1_srvr.c | |
parent | 330591fdfc10b9989aea64cb20f59f02b2f7e3ff (diff) |
Update from stable branch.
Diffstat (limited to 'ssl/d1_srvr.c')
-rw-r--r-- | ssl/d1_srvr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ssl/d1_srvr.c b/ssl/d1_srvr.c index 1b2ccb8552..b6e8dbcdd9 100644 --- a/ssl/d1_srvr.c +++ b/ssl/d1_srvr.c @@ -1011,6 +1011,7 @@ int dtls1_send_certificate_request(SSL *s) STACK_OF(X509_NAME) *sk=NULL; X509_NAME *name; BUF_MEM *buf; + unsigned int msg_len; if (s->state == SSL3_ST_SW_CERT_REQ_A) { @@ -1088,6 +1089,10 @@ int dtls1_send_certificate_request(SSL *s) #endif /* XDTLS: set message header ? */ + msg_len = s->init_num - DTLS1_HM_HEADER_LENGTH; + dtls1_set_message_header(s, s->init_buf->data, + SSL3_MT_CERTIFICATE_REQUEST, msg_len, 0, msg_len); + /* buffer the message to handle re-xmits */ dtls1_buffer_message(s, 0); |