trilemma-dev / SecureXPC

A simple and secure XPC framework for Swift
MIT License
73 stars 15 forks source link

`XPCClientRequirement` now used internally #101

Closed jakaplan closed 2 years ago

jakaplan commented 2 years ago

MessageAcceptor still exists, but is purely an internal implementation details of XPCClientRequirement that nowhere else in the codebase knows about (nor has access to).

This means that API users can create requirements just like SecureXPC does, with two intentional carve outs:

XPCClientRequirement has been changed from an enum to a struct with identical names which means it can be used the same at the call site except that now it throws at access time which I think is a much clearer way of representing failure.

jakaplan commented 2 years ago

@amomchilov available for your review if you'd like to (and post-merge reviews are also always most welcome)