[Swan-dev] resolve_myid()

Andrew Cagney andrew.cagney at gmail.com
Thu Jul 6 15:08:21 UTC 2017


On 4 July 2017 at 14:17, D. Hugh Redelmeier <hugh at mimosa.com> wrote:
> | From: D. Hugh Redelmeier <hugh at mimosa.com>
>
> | Here's the definition:
> |
> | const struct id *resolve_myid(const struct id *id)
> | {
> |       return id;
> | }
>
> I'm quite wrong.
>
> That is only one definition, in lib/liblswlog/lswid.c

> There is another definition in programs/pluto/myid.c
> That one does do something useful.
>
> How confusing.

Yes.

I shuffled those deck chairs recently, previously they lived in
libswan.  That function would be needed by the stand-alone tools
because of an indirect reference lurking in libswan, most likely in
the logging code.
Post current release I was thinking of moving the stub functions used
by the stand-alone tools to something better named such as liblswtool
(and liblswlog can start accumulate the logging code).

Andrew


More information about the Swan-dev mailing list