Re: [PATCH] virnetsshsession: Adapt to changed libssh2 API

2023-06-05 Thread Peter Krempa
On Mon, Jun 05, 2023 at 14:43:31 +0200, Michal Privoznik wrote: > In one of its commits [1] libssh2 changed the 'text' member of > LIBSSH2_USERAUTH_KBDINT_PROMPT struct from 'char' to 'unsigned > char'. But we g_strdup() the member in order to fill 'prompt' > member of virConnectCredential struct.

[PATCH] virnetsshsession: Adapt to changed libssh2 API

2023-06-05 Thread Michal Privoznik
In one of its commits [1] libssh2 changed the 'text' member of LIBSSH2_USERAUTH_KBDINT_PROMPT struct from 'char' to 'unsigned char'. But we g_strdup() the member in order to fill 'prompt' member of virConnectCredential struct. Typecast the value to avoid warnings. Also, drop @prompt variable, as it