[libvirt] [PATCH 0/2] rpc: fixing compilation error due to deprecated ssh_is_server_known()

Julio Faracco jcfaracco at gmail.com
Fri Nov 16 20:20:58 UTC 2018


This fix has a problem partially.
The official documentation says to use ssh_session_is_known_server() now.
But the function return has changed too.
Now, it is using "enum ssh_known_hosts_e" instead of "enum ssh_server_know_e".
Some enums matches, but others don't.
Error was -1 and now it is -2 (following libssh example).
I would suggest to create an aux way to identify the return/state.
Or even use integers instead enums.
Anyone has a better idea? Obviously, with less impact and portable...

--
Julio Cesar Faracco




More information about the libvir-list mailing list