server: Cast auth_methods to uint32_t
Fixes T188 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Этот коммит содержится в:
родитель
442d22da60
Коммит
6cef3e10bf
@ -510,9 +510,11 @@ static int ssh_server_kex_termination(void *s){
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ssh_set_auth_methods(ssh_session session, int auth_methods){
|
/* FIXME: auth_methods should be unsigned */
|
||||||
|
void ssh_set_auth_methods(ssh_session session, int auth_methods)
|
||||||
|
{
|
||||||
/* accept only methods in range */
|
/* accept only methods in range */
|
||||||
session->auth.supported_methods = auth_methods & 0x3f;
|
session->auth.supported_methods = (uint32_t)auth_methods & 0x3fU;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Do the banner and key exchange */
|
/* Do the banner and key exchange */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user