mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-02 15:56:02 +00:00
commit
8f4d9aa5ee
@ -30,6 +30,7 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <arpa/inet.h>
|
||||||
#include <uuid/uuid.h>
|
#include <uuid/uuid.h>
|
||||||
#include <openssl/sha.h>
|
#include <openssl/sha.h>
|
||||||
#include <openssl/aes.h>
|
#include <openssl/aes.h>
|
||||||
@ -670,10 +671,14 @@ int gs_start_app(PSERVER_DATA server, STREAM_CONFIGURATION *config, int appId, b
|
|||||||
|
|
||||||
RAND_bytes(config->remoteInputAesKey, 16);
|
RAND_bytes(config->remoteInputAesKey, 16);
|
||||||
memset(config->remoteInputAesIv, 0, 16);
|
memset(config->remoteInputAesIv, 0, 16);
|
||||||
|
// GFE somehow doesn't like this totally legit random number, so we have to generate one
|
||||||
|
RAND_bytes(config->remoteInputAesIv, 4);
|
||||||
|
|
||||||
srand(time(NULL));
|
srand(time(NULL));
|
||||||
char url[4096];
|
char url[4096];
|
||||||
u_int32_t rikeyid = 0;
|
u_int32_t rikeyid = 0;
|
||||||
|
memset(&rikeyid, config->remoteInputAesIv, 4);
|
||||||
|
rikeyid = htonl(rikeyid);
|
||||||
char rikey_hex[33];
|
char rikey_hex[33];
|
||||||
bytes_to_hex(config->remoteInputAesKey, rikey_hex, 16);
|
bytes_to_hex(config->remoteInputAesKey, rikey_hex, 16);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user