diff options
| author | Jason King <jason.king@joyent.com> | 2018-03-08 01:32:08 -0600 |
|---|---|---|
| committer | Jason King <jason.king@joyent.com> | 2020-03-20 06:19:41 +0000 |
| commit | d9f734ce06665c0b17604e68bd19dfdce1f5ca9b (patch) | |
| tree | 10b7c979777d8744f24166640f07483aeaa4bc76 /usr/src | |
| parent | 7a850a55df9a82960fe17c449972e40b23f1486e (diff) | |
| download | illumos-joyent-d9f734ce06665c0b17604e68bd19dfdce1f5ca9b.tar.gz | |
Utilize OS-6525 fix
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/cmd/cmd-inet/usr.lib/in.ikev2d/ikev2_child_sa.c | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/usr/src/cmd/cmd-inet/usr.lib/in.ikev2d/ikev2_child_sa.c b/usr/src/cmd/cmd-inet/usr.lib/in.ikev2d/ikev2_child_sa.c index 601006e444..da8baa320b 100644 --- a/usr/src/cmd/cmd-inet/usr.lib/in.ikev2d/ikev2_child_sa.c +++ b/usr/src/cmd/cmd-inet/usr.lib/in.ikev2d/ikev2_child_sa.c @@ -1604,26 +1604,10 @@ ikev2_sa_check_acquire(parsedmsg_t *restrict pmsg, ikev2_dh_t dh, m->ism_encr = id; ed = encr_data(id); -#ifdef notyet - m->ism_encr_saltlen = comb->sadb_x_comb_encrypt_saltlen; - VERIFY3U(comb->sadb_x_comb_encrypt_saltlen, ==, + m->ism_encr_saltlen = + comb->sadb_x_comb_encrypt_saltbits; + VERIFY3U(comb->sadb_x_comb_encrypt_saltbits, ==, ed->ed_saltlen); -#else - /* - * Typically, the same mechanisms for use in ESP/AH - * are also defined for IKEv2, and are used in a - * similar manner, so using the IKEv2 defined salt - * length for mechanisms works. However, the definition - * of a mechanism for IKEv2 use tends to lag that of - * AH/ESP, and it is also possible in the future that - * the use in IKEv2 might differ, so using our value - * is not a good long term solution. Once OS-6525 - * is fixed, the kernel will include the salt length - * for the mechanism in an SADB_ACQUIRE message, so - * we will use that instead. - */ - m->ism_encr_saltlen = ed->ed_saltlen; -#endif FOREACH_ATTR(xfattr, i2xf) { uint16_t type = BE_IN16(&xfattr->attr_type); |
