Closed arjunbajaj closed 9 months ago
These are all 'known issues', though some of them are pretty new and not fixed yet:
aead.c
has something to do (I thought, anyway) with newer macOS hosts & the changes to openssl thereon. The fact that you're seeing it in an ARM linux VM is new to me though. I wonder if it's related to OpenSSL 3 on any platform? Builds on GitHub Actions work fine, but I'm not sure what libraries are present there.I'll endeavour to get the OpenSSL error characterized and fixed later this week, and one that's done i'll cut a new 0.4.9 release. Thanks for reminding me!
Hi,
I am trying to use this library, but I am unable to pair with the Apple Home app on the iPhone. I followed the demo code. First, if I use the latest hex.pm package (0.4.8), ThousandIsland refuses to start because
HAP.HAPSessionTransport.sockname/1 is undefined or private
. I noticed this was fixed in the recent commits, so I used the git repo inmix.exs
instead.Now, when I try to pair, Apple Home does request details (as visible in the console), but the
HAP.PairSetup
GenServer crashes due to bad IV length.Here are the logs:
I tried experimenting with the
:crypto.crypto_one_time_aead
function, but every variation I try gives me the same Bad IV Length error, even though the lengths described in the Erlang manual are what I'm using.I am using a Mac with Elixir installed from brew. I also tried it in a ARM Alpine Linux VM, and it gave the same error.
I'm guessing I'm doing something wrong, or there's some recent bug?
Also, slightly off-topic, but I cannot find the HomeKit Accessory Protocol Specification PDF anywhere. Did Apple remove it? Their help pages say it's available for hobbyists, but I can't find it anywhere on their website.