-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapchat_common.h
52 lines (42 loc) · 1.48 KB
/
snapchat_common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef SNAPCHAT_COMMON_H
#define SNAPCHAT_COMMON_H
typedef struct snapchat_request {
char *const username;
char *const request_token;
int timestamp;
};
typedef struct snapchat_responses {
bool logged;
};
typedef enum snapchat_media_types {
IMAGE = 0,
VIDEO = 1,
VIDEO_NOAUDIO = 2,
FRIEND_REQUEST = 3,
FRIEND_REQUEST_IMAGE = 4,
FRIEND_REQUEST_VIDEO = 5,
FRIEND_REQUEST_VIDEO_NOAUDIO = 6
};
typedef enum snapchat_media_states {
NONE = -1,
SENT = 0,
DELIVERED = 1,
VIEWED = 2,
SCREENSHOT = 3
};
const char *const snapchat_fallback_build_version = "3.0.2";
// Snapchat/4.1.01 (Nexus 4; Android 18; gzip)
const char *const snapchat_user_agent_format =
"Snapchat/%s (%s; Android %s; gzip)";
unsigned char *snapchat_encrypt_snaps(const unsigned char *const media,
size_t media_length);
unsigned char *snapchat_decrypt_snaps(const unsigned char *const ciphertext);
unsigned char *snapchat_encrypt_stories(const unsigned char *const story,
const unsigned char *const key,
const unsigned char *const iv);
unsigned char *snapchat_decrypt_stories(const unsigned char *const ciphertext,
const unsigned char *const key,
const unsigned char *const iv);
unsigned char *snapchat_gunzip(const unsigned char *const compressed,
size_t compressed_length);
#endif