trilemma-dev / SecureXPC

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

Create anonymous servers that only accept same process messages #47

Closed jakaplan closed 2 years ago

jakaplan commented 2 years ago

This is likely a common use case for an anonymous server, so this makes it easier to create while preserving security

As part of this PR, this also changes to having a MessageAcceptor protocol as previously discussed. It does add a bit of code in some places, but overall I think it's now the cleanest approach with there being three different acceptance "strategies".

jakaplan commented 2 years ago

@amomchilov I've also updated the tests to make use of this and all of them still pass