mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 860222: use our own isascii() for sanitizing TURN passwords r=glandium
This commit is contained in:
parent
f99d6ef74f
commit
9134244467
@ -287,6 +287,10 @@ nr_stun_build_req_ice(nr_stun_client_ice_binding_request_params *params, nr_stun
|
||||
|
||||
#ifdef USE_TURN
|
||||
|
||||
#ifndef __isascii
|
||||
#define __isascii(c) (((c) & ~0x7F) == 0)
|
||||
#endif
|
||||
|
||||
/* Long-term passwords are computed over the key:
|
||||
|
||||
key = MD5(username ":" realm ":" SASLprep(password))
|
||||
@ -307,7 +311,7 @@ nr_stun_compute_lt_message_integrity_password(const char *username, const char *
|
||||
TODO(ekr@rtfm.com): Add SASLprep for password.
|
||||
*/
|
||||
for (i=0; i<password->len; i++) {
|
||||
if (!isascii(password->data[i]))
|
||||
if (!__isascii(password->data[i]))
|
||||
ABORT(R_BAD_DATA);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user