pluto now supports SQL-based virtual IP pools
This commit is contained in:
+27
-25
@@ -1745,31 +1745,33 @@ int main(int argc, char **argv)
|
||||
msg.pfsgroup ? msg.pfsgroup : "");
|
||||
msg.esp=esp_buf;
|
||||
}
|
||||
if (!pack_str(&msg.name) /* string 1 */
|
||||
|| !pack_str(&msg.left.id) /* string 2 */
|
||||
|| !pack_str(&msg.left.cert) /* string 3 */
|
||||
|| !pack_str(&msg.left.ca) /* string 4 */
|
||||
|| !pack_str(&msg.left.groups) /* string 5 */
|
||||
|| !pack_str(&msg.left.updown) /* string 6 */
|
||||
|| !pack_str(&msg.left.virt) /* string 7 */
|
||||
|| !pack_str(&msg.right.id) /* string 8 */
|
||||
|| !pack_str(&msg.right.cert) /* string 9 */
|
||||
|| !pack_str(&msg.right.ca) /* string 10 */
|
||||
|| !pack_str(&msg.right.groups) /* string 11 */
|
||||
|| !pack_str(&msg.right.updown) /* string 12 */
|
||||
|| !pack_str(&msg.right.virt) /* string 13 */
|
||||
|| !pack_str(&msg.keyid) /* string 14 */
|
||||
|| !pack_str(&msg.myid) /* string 15 */
|
||||
|| !pack_str(&msg.cacert) /* string 16 */
|
||||
|| !pack_str(&msg.ldaphost) /* string 17 */
|
||||
|| !pack_str(&msg.ldapbase) /* string 18 */
|
||||
|| !pack_str(&msg.crluri) /* string 19 */
|
||||
|| !pack_str(&msg.crluri2) /* string 20 */
|
||||
|| !pack_str(&msg.ocspuri) /* string 21 */
|
||||
|| !pack_str(&msg.ike) /* string 22 */
|
||||
|| !pack_str(&msg.esp) /* string 23 */
|
||||
|| !pack_str(&msg.sc_data) /* string 24 */
|
||||
|| str_roof - next_str < (ptrdiff_t)msg.keyval.len) /* chunk (sort of string 5) */
|
||||
if (!pack_str(&msg.name) /* string 1 */
|
||||
|| !pack_str(&msg.left.id) /* string 2 */
|
||||
|| !pack_str(&msg.left.cert) /* string 3 */
|
||||
|| !pack_str(&msg.left.ca) /* string 4 */
|
||||
|| !pack_str(&msg.left.groups) /* string 5 */
|
||||
|| !pack_str(&msg.left.updown) /* string 6 */
|
||||
|| !pack_str(&msg.left.sourceip) /* string 7 */
|
||||
|| !pack_str(&msg.left.virt) /* string 8 */
|
||||
|| !pack_str(&msg.right.id) /* string 9 */
|
||||
|| !pack_str(&msg.right.cert) /* string 10 */
|
||||
|| !pack_str(&msg.right.ca) /* string 11 */
|
||||
|| !pack_str(&msg.right.groups) /* string 12 */
|
||||
|| !pack_str(&msg.right.updown) /* string 13 */
|
||||
|| !pack_str(&msg.right.sourceip) /* string 14 */
|
||||
|| !pack_str(&msg.right.virt) /* string 15 */
|
||||
|| !pack_str(&msg.keyid) /* string 16 */
|
||||
|| !pack_str(&msg.myid) /* string 17 */
|
||||
|| !pack_str(&msg.cacert) /* string 18 */
|
||||
|| !pack_str(&msg.ldaphost) /* string 19 */
|
||||
|| !pack_str(&msg.ldapbase) /* string 20 */
|
||||
|| !pack_str(&msg.crluri) /* string 21 */
|
||||
|| !pack_str(&msg.crluri2) /* string 22 */
|
||||
|| !pack_str(&msg.ocspuri) /* string 23 */
|
||||
|| !pack_str(&msg.ike) /* string 24 */
|
||||
|| !pack_str(&msg.esp) /* string 25 */
|
||||
|| !pack_str(&msg.sc_data) /* string 26 */
|
||||
|| str_roof - next_str < (ptrdiff_t)msg.keyval.len)
|
||||
diag("too many bytes of strings to fit in message to pluto");
|
||||
|
||||
memcpy(next_str, msg.keyval.ptr, msg.keyval.len);
|
||||
|
||||
Reference in New Issue
Block a user