Yubico / python-yubihsm

Apache License 2.0
44 stars 15 forks source link

`send_secure_cmd` without a session #25

Closed jschlyter closed 9 months ago

jschlyter commented 2 years ago

Using send_secure_cmd without a session results in a struct.error exception (since _secure_transceive is trying to pack None into a structure). Shouldn't that result in a YubiHsmError?

elibon99 commented 11 months ago

Sorry for the delayed response. In the current version (2.3.1) you should not be able to use send_secure_cmd without an authenticated session.