On Tue, 12 Feb 2019 at 11:25, D. Hugh Redelmeier <[email protected]> wrote:
>
> commit 6909918af77cb8cc39bdad12c51543e16f8297a9
> Author: Paul Wouters <[email protected]>
> Date: Mon Feb 11 19:26:40 2019 -0500
>
> pluto: removal all but one include of proposals.h
>
> Since connections.h needs it, and that is included everywhere else,
> there is no need for separate includes.
>
> If this becomes a trend, this is terrible.
I suspect a lot weren't needed before this change - #includes seem to breed,
> In this particular case, it seems forced:
>
> struct connection has:
>
> struct ike_proposals ike_proposals;
> struct child_proposals child_proposals;
The fields are shared between IKEv1 and IKEv2.
The old code had something like:
struct {ike,esp}_alg_info {
struct alg_info ai;
}
(yes esp, was used by ah)
which pretty much forced everything to include the header anyway so
that they could pass &ai.
Anyway, a cleanup I've somewhere in my queue is to move the definition
of struct {ike,child}_proposal to connection.h, they're not used by
the proposal code proper.
_______________________________________________
Swan-dev mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan-dev