I noticed today that the pki_key_ecdsa_to_key_type helper functions are using a static local variable, which isn't thread-safe:
- https://gitlab.com/libssh/libssh-mirror/-/blob/30d03498b46c65c3faf134f3c4c959e6fcfbf537/src/pki_crypto.c#L98-100
- https://gitlab.com/libssh/libssh-mirror/-/blob/30d03498b46c65c3faf134f3c4c959e6fcfbf537/src/pki_mbedcrypto.c#L65-67
- https://gitlab.com/libssh/libssh-mirror/-/blob/30d03498b46c65c3faf134f3c4c959e6fcfbf537/src/pki_gcrypt.c#L742-744
Filing this bug as a reference point for a potential fix.