goToMain / libosdp

Implementation of IEC 60839-11-5 OSDP (Open Supervised Device Protocol); provides a C library with support for C++, Rust and Python3
https://libosdp.sidcha.dev
Apache License 2.0
134 stars 71 forks source link

Ignore reply packets from other PDs #58

Closed prxvm closed 3 years ago

prxvm commented 3 years ago

I was attempting to use two PDs with this library, when I ran across some errors. The packet coming from a different PD is marked as an error condition and the secure session gets discarded. These changes attempt to overcome these errors.

prxvm commented 3 years ago

Thank you @sidcha for your excellent, kind review. I have addressed your comments.