diff options
author | Andy Polyakov <appro@openssl.org> | 2007-09-30 18:55:59 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2007-09-30 18:55:59 +0000 |
commit | c4b0d7879e01ac80db21501d69718c1ff62bbd77 (patch) | |
tree | 83b0b2813e9ed7f8d625213fdaf9793bb5621791 /ssl/d1_clnt.c | |
parent | aab1ec3f36364c9fbd3a8b24779cd8fe6d5d57eb (diff) |
Switch for RFC-compliant version encoding in DTLS. From HEAD with a twist:
server accepts even non-compliant encoding in order to enable interop with
pre-0.9.8f clients.
Diffstat (limited to 'ssl/d1_clnt.c')
-rw-r--r-- | ssl/d1_clnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/d1_clnt.c b/ssl/d1_clnt.c index e8b60a45d2..6efb248dc8 100644 --- a/ssl/d1_clnt.c +++ b/ssl/d1_clnt.c @@ -732,7 +732,7 @@ int dtls1_send_client_key_exchange(SSL *s) s->session->master_key_length=sizeof tmp_buf; q=p; - /* Fix buf for TLS and beyond */ + /* Fix buf for TLS and [incidentally] DTLS */ if (s->version > SSL3_VERSION) p+=2; n=RSA_public_encrypt(sizeof tmp_buf, @@ -747,7 +747,7 @@ int dtls1_send_client_key_exchange(SSL *s) goto err; } - /* Fix buf for TLS and beyond */ + /* Fix buf for TLS and [incidentally] DTLS */ if (s->version > SSL3_VERSION) { s2n(n,q); |