From: "Bluca (Code Review)" Date: Wed, 8 Apr 2026 00:49:15 +0000 In-Reply-To: References: Reply-To: luca.boccassi@...277..., arne-openvpn@...1227..., selva.nair@...277..., openvpn-devel@lists.sourceforge.net Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="DLeBePOdRrI="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: Add new helpers to handle key exchange (S_SENT_KEY/S_START) with larg... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , selvanair Cc: openvpn-devel --DLeBePOdRrI= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: Bluca, plaisthos, selvanair. Hello plaisthos, selvanair, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/1622?usp=3Demail to look at the new patch set (#2). The following approvals got outdated and were removed: Code-Review-1 by plaisthos Change subject: Add new helpers to handle key exchange (S_SENT_KEY/S_START)= with large passwords ...................................................................... Add new helpers to handle key exchange (S_SENT_KEY/S_START) with large pass= words The current key exchange uses an intermediate buffer hardcoded at 2048 bytes, that cannot handle anything longer, as it gets silently truncated. This breaks using JIT use-once tokens for authentications, that are becoming common in enterprise devices to reduce attack surfaces, as the tokens are typically long JWT encoded strings. Add new helpers that, instead of doing a single 2048 bytes read/write from/to the TLS layer, reads/writes all the available data when doing the key method 2 exchange. Other stages of the protocol are unaffected. Note that this is an intermediary buffer, the TLS layer is already handling fragmented/reassembled frames appropriately, so there is no on-the-wire difference, aside from letting the client send more data. Older servers will simply continue to truncate passwords longer than the existing limit, as they are doing currently, so no incompatible changes, behaviour stays the same and current valid passwords are still valid when the new client uses them. When an old client talks to a new server, likewise there are no changes, as the previous clients have the embedded limit, so all existing passwords will continue to work. Tested combinations: old client <--> new server new client <--> old server new client <--> new server With the last combination, a large password can be used successfully. With either an old server or old client, existing limits apply and a clear error is shown in case one tries a password longer than the existing limits. Servers after a7f80d402f send a useful and clear error message. With older servers the client will instead print a helpful error for the user, to ensure a good UX in either case. Change-Id: I055c64ca8b23066e70eea7d7deddfb14f5354c5f Signed-off-by: Luca Boccassi --- M src/openvpn/common.h M src/openvpn/ssl.c M src/openvpn/ssl_common.h 3 files changed, 130 insertions(+), 17 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/22/1622/2 diff --git a/src/openvpn/common.h b/src/openvpn/common.h index aa7b721..b67a6f4 100644 --- a/src/openvpn/common.h +++ b/src/openvpn/common.h @@ -69,6 +69,16 @@ */ #define TLS_CHANNEL_BUF_SIZE 2048 +/* + * Buffer size for key method 2 exchange data. This needs to be + * large enough to hold the key source material, options string, + * username, password and peer info. When USER_PASS_LEN is larger + * than the default TLS channel size (e.g. with ENABLE_PKCS11), + * we need a larger buffer. The key exchange write and read paths + * handle this by doing multiple TLS writes/reads as needed. + */ +#define KEY_METHOD_BUF_SIZE (TLS_CHANNEL_BUF_SIZE + 2 * USER_PASS_LEN) + /* TLS control buffer minimum size * * A control frame might have IPv6 header (40 byte), diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.c index 576157d..bcf2464 100644 --- a/src/openvpn/ssl.c +++ b/src/openvpn/ssl.c @@ -860,6 +860,8 @@ ks->plaintext_read_buf =3D alloc_buf(TLS_CHANNEL_BUF_SIZE); ks->plaintext_write_buf =3D alloc_buf(TLS_CHANNEL_BUF_SIZE); ks->ack_write_buf =3D alloc_buf(BUF_SIZE(&session->opt->frame)); + ks->key_method_send_buf =3D alloc_buf(KEY_METHOD_BUF_SIZE); + ks->key_method_recv_buf =3D alloc_buf(KEY_METHOD_BUF_SIZE); reliable_init(ks->send_reliable, BUF_SIZE(&session->opt->frame), session->opt->frame.buf.headroom, TLS_RELIABLE_N_SEND_BU= FFERS, ks->key_id ? false : session->opt->xmit_hold); @@ -906,6 +908,16 @@ static void key_state_free(struct key_state *ks, bool clear) { + if (ks->key_method_large_payload && ks->state >=3D S_SENT_KEY + && ks->state < S_ACTIVE) + { + /* Servers before a7f80d402f do not send back a useful error so pr= int one */ + msg(M_WARN, "Connection failed after sending a key exchange " + "payload larger than %d bytes (due to a long password). " + "The server may not support large key exchange payloads.", + TLS_CHANNEL_BUF_SIZE); + } + ks->state =3D S_UNDEF; key_state_ssl_free(&ks->ks_ssl); @@ -915,6 +927,8 @@ free_buf(&ks->plaintext_read_buf); free_buf(&ks->plaintext_write_buf); free_buf(&ks->ack_write_buf); + free_buf(&ks->key_method_send_buf); + free_buf(&ks->key_method_recv_buf); buffer_list_free(ks->paybuf); reliable_free(ks->send_reliable); @@ -2624,6 +2638,54 @@ return true; } +/** + * Read all currently available plaintext from the TLS object into buf, + * doing multiple reads if necessary. This is used for key method 2 + * exchange data which may exceed a single TLS_CHANNEL_BUF_SIZE read + * when long passwords/tokens are used. + */ +static bool +read_incoming_tls_plaintext_multi(struct key_state *ks, struct buffer *buf, + interval_t *wakeup, bool *continue_tls_p= rocess) +{ + struct buffer tmp =3D alloc_buf(TLS_CHANNEL_BUF_SIZE); + + while (buf_forward_capacity(buf) > 0) + { + buf_init(&tmp, 0); + int status =3D key_state_read_plaintext(&ks->ks_ssl, &tmp); + + update_time(); + if (status =3D=3D -1) + { + msg(D_TLS_ERRORS, + "TLS Error: TLS object -> incoming plaintext read error"); + free_buf(&tmp); + return false; + } + if (status =3D=3D 1) + { + if (!buf_write(buf, BPTR(&tmp), BLEN(&tmp))) + { + msg(D_TLS_ERRORS, + "TLS Error: key exchange plaintext too large"); + free_buf(&tmp); + return false; + } + *continue_tls_process =3D true; + *wakeup =3D 0; + dmsg(D_TLS_DEBUG, "TLS -> Incoming Plaintext (key exchange)"); + } + else + { + break; + } + } + + free_buf(&tmp); + return true; +} + static bool write_outgoing_tls_ciphertext(struct tls_session *session, bool *continue_= tls_process) { @@ -2836,38 +2898,58 @@ } /* Read incoming plaintext from TLS object */ - struct buffer *buf =3D &ks->plaintext_read_buf; - if (!buf->len) + bool in_key_exchange_read =3D + (ks->state =3D=3D S_SENT_KEY && !session->opt->server) + || (ks->state =3D=3D S_START && session->opt->server); + + if (in_key_exchange_read) { - if (!read_incoming_tls_plaintext(ks, buf, wakeup, &continue_tls_pr= ocess)) + /* For key exchange, read all available plaintext into a buffer + * that is large enough for long passwords/tokens. Multiple reads + * are done to handle data exceeding TLS_CHANNEL_BUF_SIZE. */ + if (!read_incoming_tls_plaintext_multi(ks, &ks->key_method_recv_bu= f, + wakeup, &continue_tls_proce= ss)) { goto error; } } + else + { + struct buffer *buf =3D &ks->plaintext_read_buf; + if (!buf->len) + { + if (!read_incoming_tls_plaintext(ks, buf, wakeup, &continue_tl= s_process)) + { + goto error; + } + } + } - /* Send Key */ - buf =3D &ks->plaintext_write_buf; - if (!buf->len + /* Send Key -- use larger key_method_send_buf for assembly to support + * long passwords/tokens that exceed TLS_CHANNEL_BUF_SIZE */ + if (!ks->key_method_send_buf.len && ((ks->state =3D=3D S_START && !session->opt->server) || (ks->state =3D=3D S_GOT_KEY && session->opt->server))) { - if (!key_method_2_write(buf, multi, session)) + if (!key_method_2_write(&ks->key_method_send_buf, multi, session)) { goto error; } + ks->key_method_large_payload =3D + BLEN(&ks->key_method_send_buf) > TLS_CHANNEL_BUF_SIZE; + continue_tls_process =3D true; dmsg(D_TLS_DEBUG_MED, "STATE S_SENT_KEY"); ks->state =3D S_SENT_KEY; } - /* Receive Key */ - buf =3D &ks->plaintext_read_buf; - if (buf->len + /* Receive Key -- use the larger key_method_recv_buf */ + if (BLEN(&ks->key_method_recv_buf) && ((ks->state =3D=3D S_SENT_KEY && !session->opt->server) || (ks->state =3D=3D S_START && session->opt->server))) { - if (!key_method_2_read(buf, multi, session)) + if (!key_method_2_read(&ks->key_method_recv_buf, multi, session)) { goto error; } @@ -2877,20 +2959,38 @@ ks->state =3D S_GOT_KEY; } - /* Write outgoing plaintext to TLS object */ - buf =3D &ks->plaintext_write_buf; - if (buf->len) + /* Write key exchange data to TLS object */ + if (ks->key_method_send_buf.len) { - int status =3D key_state_write_plaintext(&ks->ks_ssl, buf); + int status =3D key_state_write_plaintext(&ks->ks_ssl, &ks->key_met= hod_send_buf); if (status =3D=3D -1) { - msg(D_TLS_ERRORS, "TLS ERROR: Outgoing Plaintext -> TLS object= write error"); + msg(D_TLS_ERRORS, "TLS ERROR: Key Method -> TLS object write e= rror"); goto error; } if (status =3D=3D 1) { continue_tls_process =3D true; - dmsg(D_TLS_DEBUG, "Outgoing Plaintext -> TLS"); + dmsg(D_TLS_DEBUG, "Key Method -> TLS"); + } + } + + /* Write outgoing plaintext to TLS object */ + { + struct buffer *buf =3D &ks->plaintext_write_buf; + if (buf->len) + { + int status =3D key_state_write_plaintext(&ks->ks_ssl, buf); + if (status =3D=3D -1) + { + msg(D_TLS_ERRORS, "TLS ERROR: Outgoing Plaintext -> TLS ob= ject write error"); + goto error; + } + if (status =3D=3D 1) + { + continue_tls_process =3D true; + dmsg(D_TLS_DEBUG, "Outgoing Plaintext -> TLS"); + } } } if (!check_outgoing_ciphertext(ks, session, &continue_tls_process)) diff --git a/src/openvpn/ssl_common.h b/src/openvpn/ssl_common.h index 6f310a5..913a0c2 100644 --- a/src/openvpn/ssl_common.h +++ b/src/openvpn/ssl_common.h @@ -241,6 +241,9 @@ struct buffer plaintext_read_buf; struct buffer plaintext_write_buf; struct buffer ack_write_buf; + struct buffer key_method_send_buf; /* larger buffer for key method 2 w= rite */ + struct buffer key_method_recv_buf; /* larger buffer for key method 2 r= ead */ + bool key_method_large_payload; /* key exchange exceeded TLS_CHANNE= L_BUF_SIZE */ struct reliable *send_reliable; /* holds a copy of outgoing packets un= til ACK received */ struct reliable *rec_reliable; /* order incoming ciphertext packets b= efore we pass to TLS */ -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1622?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I055c64ca8b23066e70eea7d7deddfb14f5354c5f Gerrit-Change-Number: 1622 Gerrit-PatchSet: 2 Gerrit-Owner: Bluca Gerrit-Reviewer: plaisthos Gerrit-Reviewer: selvanair Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: Bluca Gerrit-Attention: selvanair --DLeBePOdRrI= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: Bluca, plaisthos, selvanair.

Bluca uploaded patch set #2 to this change.

View Change

The following approvals got outdated and were removed: Code-Review-1 by plaisthos

Add new helpers to handle key e=
xchange (S_SENT_KEY/S_START) with large passwords

The current key ex= change uses an intermediate buffer hardcoded
at 2048 bytes, that cannot = handle anything longer, as it gets
silently truncated.

This break= s using JIT use-once tokens for authentications, that
are becoming commo= n in enterprise devices to reduce attack
surfaces, as the tokens are typ= ically long JWT encoded strings.

Add new helpers that, instead of do= ing a single 2048 bytes
read/write from/to the TLS layer, reads/writes a= ll the available
data when doing the key method 2 exchange.
Other sta= ges of the protocol are unaffected. Note that this is
an intermediary bu= ffer, the TLS layer is already handling
fragmented/reassembled frames ap= propriately, so there is no
on-the-wire difference, aside from letting t= he client send more
data.

Older servers will simply continue to t= runcate passwords longer
than the existing limit, as they are doing curr= ently, so no
incompatible changes, behaviour stays the same and current = valid
passwords are still valid when the new client uses them.
When a= n old client talks to a new server, likewise there are no
changes, as th= e previous clients have the embedded limit, so all
existing passwords wi= ll continue to work.

Tested combinations:

old client <--&g= t; new server
new client <--> old server
new client <--> = new server

With the last combination, a large password can be used s= uccessfully.
With either an old server or old client, existing limits ap= ply and
a clear error is shown in case one tries a password longer than = the
existing limits.

Servers after a7f80d402f send a useful and c= lear error message.
With older servers the client will instead print a h= elpful error
for the user, to ensure a good UX in either case.

Ch= ange-Id: I055c64ca8b23066e70eea7d7deddfb14f5354c5f
Signed-off-by: Luca B= occassi <luca.boccassi@...277...>
---
M src/openvpn/common.hM src/openvpn/ssl.c
M src/openvpn/ssl_common.h
3 files changed, 130 = insertions(+), 17 deletions(-)

git pull ssh://ge=
rrit.openvpn.net:29418/openvpn refs/changes/22/1622/2
diff --git a/=
src/openvpn/common.h b/src/openvpn/common.h
index aa7b721..= b67a6f4 100644
--- a/src/openvpn/common.h
+= ++ b/src/openvpn/common.h
@@ -69,6 +69,16 @@
*/
#define TLS_CHANNEL_BUF_SIZE 2048
=
+/*
+ * Buffer size for key method 2 exch= ange data. This needs to be
+ * large enough to hold the key source material, options string,
+ * username, password = and peer info. When USER_PASS_LEN is larger
+ * than the default TLS channel size (e.g. with ENA= BLE_PKCS11),
+ * we n= eed a larger buffer. The key exchange write and read paths
+ * handle this by doing multiple TLS= writes/reads as needed.
+ */
+#define KEY= _METHOD_BUF_SIZE (TLS_CHANNEL_BUF_SIZE + 2 * USER_PASS_LEN)
+

/* TLS control bu= ffer minimum size
*
* A control frame m= ight have IPv6 header (40 byte),
diff --git a/src/openvpn/s= sl.c b/src/openvpn/ssl.c
index 576157d..bcf2464 100644

--- a/src/openvpn/ssl.c
+++ b/src/openvpn/ssl.c=
@@ -860,6 +860,8 @@
ks->plaintext_= read_buf =3D alloc_buf(TLS_CHANNEL_BUF_SIZE);
ks->p= laintext_write_buf =3D alloc_buf(TLS_CHANNEL_BUF_SIZE);
= ks->ack_write_buf =3D alloc_buf(BUF_SIZE(&session->opt->fram= e));
+ ks->key_= method_send_buf =3D alloc_buf(KEY_METHOD_BUF_SIZE);
+ ks->key_method_recv_buf =3D alloc_= buf(KEY_METHOD_BUF_SIZE);
reliable_init(ks->send_re= liable, BUF_SIZE(&session->opt->frame),
= session->opt->frame.buf.headroom, TLS_RELIABLE_N_SEND_BUFFE= RS,
ks->key_id ? false : session->= opt->xmit_hold);
@@ -906,6 +908,16 @@
s= tatic void
key_state_free(struct key_state *ks, bool clear= )
{
= + if (ks->key_method_large_payload && ks->state >=3D S_= SENT_KEY
+ &am= p;& ks->state < S_ACTIVE)
+ {
+ /* Servers before a7f80d402f do not send back a useful error so p= rint one */
+ = msg(M_WARN, "Connection failed after sending a key exchange "
+ "paylo= ad larger than %d bytes (due to a long password). "
+ "The server may not s= upport large key exchange payloads.",
+ TLS_CHANNEL_BUF_SIZE);
+ }
+
ks->state =3D S_UNDEF;

key_state_ssl_free(&ks->ks_ssl);=
@@ -915,6 +927,8 @@
free_buf(&ks-= >plaintext_read_buf);
free_buf(&ks->plaintex= t_write_buf);
free_buf(&ks->ack_write_buf);
+ free_buf(&ks-&g= t;key_method_send_buf);
+ free_buf(&ks->key_method_recv_buf);
buf= fer_list_free(ks->paybuf);

reliab= le_free(ks->send_reliable);
@@ -2624,6 +2638,54 @@
return true;
}
+/**
+ * Read all currently available plaintext fro= m the TLS object into buf,
+ * doing multiple reads if necessary. This is used for key method 2<= /span>
+ * exchange data whi= ch may exceed a single TLS_CHANNEL_BUF_SIZE read
+ * when long passwords/tokens are used.=
+ */
+static bool
+read_incoming_tls_plaintext_multi(struct key_stat= e *ks, struct buffer *buf,
+ interval_t *wakeup, bool *continue= _tls_process)
+{
+ struct buffer tmp = =3D alloc_buf(TLS_CHANNEL_BUF_SIZE);
+
+ = while (buf_forward_capacity(buf) > 0)
+ {
+ buf_init(&tmp, 0);
+ int status =3D key_state_read_plaintext(&ks= ->ks_ssl, &tmp);
+
+ update_= time();
+ if (= status =3D=3D -1)
+ = {
+ = msg(D_TLS_ERRORS,
+ = "TLS Error: TLS object -> incoming plaintext read err= or");
+ = free_buf(&tmp);
+ }
+ = if (status =3D=3D 1)
+ {
+ = if (!buf_write(buf, BPTR(&tmp), BLEN(&tmp)))
+ {

+ msg(D_TLS_ERRORS,
+ &quo= t;TLS Error: key exchange plaintext too large");
+ free_buf(&tmp);
+ return fa= lse;
+ }
+ *continue= _tls_process =3D true;
+ dmsg(D_TLS_DEBUG, "TLS -> Incoming Plaintext = (key exchange)");
+ = else
+ {
+ break;
+ }
+ }

+
+ free_buf(&tmp);
+ return true;
+}
+ static bool
write_outgoing_tls_ciphertext(struct t= ls_session *session, bool *continue_tls_process)
{<= br>@@ -2836,38 +2898,58 @@
}

/* Read incoming plaintext from TLS object */- struct buffer *buf =3D &= ;ks->plaintext_read_buf;
- if (!buf->len)
+ bool in_key_exchange_read =3D
+ (ks->state =3D=3D S_SENT_KEY && !s= ession->opt->server)
+ || (ks->state =3D=3D S_START && session->opt-&= gt;server);
+<= br>+ if (in_key_exchange_rea= d)
{
- if (!read_incoming_tls_plaintext(ks, buf, wakeup, &continue= _tls_process))
+ = /* For key exchange, read all available plaintext into a buffer+ * that is large eno= ugh for long passwords/tokens. Multiple reads
+ * are done to handle data exceeding TLS_= CHANNEL_BUF_SIZE. */
= + if (!read_incoming_tls_plaintext_multi(ks, &ks->key_method_= recv_buf,
+ = wakeup, &continue_tls_process))
{
goto error; }
}
+ else
+ {
+ = struct buffer *buf =3D &ks->plaintext_read_buf;
+ if (!buf->len)
= + {
+ if (!read_incoming_tls_plain= text(ks, buf, wakeup, &continue_tls_process))
+ {
+ goto error;
+ }
+ }
+ }

- /* Send Key */
- buf =3D &ks->plaintext_write_buf;
- if (!buf->len

+ /* Send Key -- use larger key_= method_send_buf for assembly to support

+ * long passwords/tokens that exceed TLS_CHANNEL_BU= F_SIZE */
+ if (!k= s->key_method_send_buf.len
&& ((ks->= state =3D=3D S_START && !session->opt->server)
|| (ks->state =3D=3D S_GOT_KEY && session->opt= ->server)))

{
- if (!key_method_2_write(buf, multi, session))
+ if (!key_method_2= _write(&ks->key_method_send_buf, multi, session))
= {
goto error;
= }

+= ks->key_method_large_payload =3D
+ BLEN(&ks->key_method_send_buf) &= gt; TLS_CHANNEL_BUF_SIZE;
+
continue_tls_process =3D true;
dmsg(D_TLS_DEBUG_MED, "STATE S_SENT_KEY");
ks->state =3D S_SENT_KEY;
}<= br>
- /* Rece= ive Key */
- buf =3D= &ks->plaintext_read_buf;
- if (buf->len
+ /* Receive Key -- use the larger key_method_recv_buf */
+ if (BLEN(&ks->= ;key_method_recv_buf)
&& ((ks->state = =3D=3D S_SENT_KEY && !session->opt->server)
= || (ks->state =3D=3D S_START && session->opt->= server)))
{
- if (!key_method_2_read(buf, multi, session))
<= span style=3D"color: hsl(120, 100%, 40%);">+ if (!key_method_2_read(= &ks->key_method_recv_buf, multi, session))

= {
goto error;
}
@@ -2877,20 +2959,38 @@
ks->state = =3D S_GOT_KEY;
}

- /* Write outgoing plaintext to TLS ob= ject */
- buf =3D &a= mp;ks->plaintext_write_buf;
- if (buf->len)
+ /* Write key exchange data to TLS object */
+ if (ks->key_method_send_buf.le= n)
{
- int status =3D key_state_write_plaintext(&ks->ks_ssl, bu= f);
+ int stat= us =3D key_state_write_plaintext(&ks->ks_ssl, &ks->key_method= _send_buf);
if (status =3D=3D -1)
= {
- = msg(D_TLS_ERRORS, "TLS ERROR: Outgoing Plaintext -> TLS object wri= te error");
+ = msg(D_TLS_ERRORS, "TLS ERROR: Key Method -> TLS object wri= te error");
goto error;
= }
if (status =3D=3D 1)
= {
continue_tls_process =3D true;<= br>- dmsg(D_TLS_DEBUG,= "Outgoing Plaintext -> TLS");
+ dmsg(D_TLS_DEBUG, "Key Method ->= ; TLS");
+ = }
+ }
= +
+ /* Write outgoing plaintext to TLS object */<= /span>
+ {
+ struct buffer *buf =3D &am= p;ks->plaintext_write_buf;

+ if (buf->len)
+ {
+ int status =3D key_state_write_plaintext(&ks->ks_ss= l, buf);
+ = if (status =3D=3D -1)
+ = msg(D_TLS_ERRORS, "TLS ERROR: Outgoing Plaintext -> TL= S object write error");
+ goto error;
+ }
+ if (status =3D=3D 1)
+ {
+ continue_tls_process =3D true;
= + dmsg(D_TLS_DEB= UG, "Outgoing Plaintext -> TLS");
+ }
}<= br> }
if (!check_outgoing_ciphertext(ks, ses= sion, &continue_tls_process))
diff --git a/src/openvpn/= ssl_common.h b/src/openvpn/ssl_common.h
index 6f310a5..913a= 0c2 100644
--- a/src/openvpn/ssl_common.h
+= ++ b/src/openvpn/ssl_common.h
@@ -241,6 +241,9 @@ struct buffer plaintext_read_buf;
struct b= uffer plaintext_write_buf;
struct buffer ack_write_buf= ;
+ struct buffer = key_method_send_buf; /* larger buffer for key method 2 write */
<= span style=3D"color: hsl(120, 100%, 40%);">+ struct buffer key_method_re= cv_buf; /* larger buffer for key method 2 read */

+ bool key_method_large_payload; /* key= exchange exceeded TLS_CHANNEL_BUF_SIZE */

struct reliable *send_reliable; /* holds a copy of outgoing packets = until ACK received */

struct reliable *rec_reliable; = /* order incoming ciphertext packets before we pass to TLS */

To view, visit change 1622. To unsubscribe, or for help = writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I055c64ca8b23066e70eea7d7ded= dfb14f5354c5f
Gerrit-Change-Number: 1622
Gerrit-PatchSet: 2
Gerrit-Owner: Bluca <luca.boccassi@...1663...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-Reviewer: selvanair <selva.nair@...1665...= 77...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: Bluca <luca.boccassi@...1665...= 77...>
Gerrit-Attention: selvanair <selva.nair@...493...= 277...>
= --DLeBePOdRrI=--