Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Switch
RetroArch
RetroArch
Commits
129beaef
Commit
129beaef
authored
Nov 22, 2018
by
meepingsnesroms
Browse files
This should fix netplay passwords
parent
350a7477
Changes
2
Show whitespace changes
Inline
Side-by-side
network/netplay/netplay_handshake.c
View file @
129beaef
...
...
@@ -278,6 +278,7 @@ static void handshake_password(void *ignore, const char *line)
struct
netplay_connection
*
connection
=
&
netplay
->
connections
[
0
];
snprintf
(
password
,
sizeof
(
password
),
"%08X"
,
connection
->
salt
);
if
(
line
)
strlcpy
(
password
+
8
,
line
,
sizeof
(
password
)
-
8
);
password_buf
.
cmd
[
0
]
=
htonl
(
NETPLAY_CMD_PASSWORD
);
...
...
network/netplay/netplay_private.h
View file @
129beaef
...
...
@@ -35,7 +35,7 @@
#define NETPLAY_NICK_LEN 32
#define NETPLAY_PASS_LEN 128
#define NETPLAY_PASS_HASH_LEN 6
4
/* length of a SHA-256 hash */
#define NETPLAY_PASS_HASH_LEN 6
5
/* length of a SHA-256 hash
+ NULL terminator
*/
#define MAX_SERVER_STALL_TIME_USEC (5*1000*1000)
#define MAX_CLIENT_STALL_TIME_USEC (10*1000*1000)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment