Right now we're playing a little fast and loose with the lifetimes of
the sec_protocol_metadata_t. As a practical matter it is highly likely
that this is owned (and so kept alive by) the NWConnection, but rather
than risk that we should tighten up the lifetime management.
Motivation:
Right now we're playing a little fast and loose with the lifetimes of the sec_protocol_metadata_t. As a practical matter it is highly likely that this is owned (and so kept alive by) the NWConnection, but rather than risk that we should tighten up the lifetime management.
Modifications:
Use withExtendedLifetime to extend the lifetime.
Result:
Better lifetime management.