-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathverify.h
More file actions
36 lines (28 loc) · 1.05 KB
/
Copy pathverify.h
File metadata and controls
36 lines (28 loc) · 1.05 KB
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
/*
* Snoolie K, (c) 2024-2025.
* verification libshortcutsign functions
*/
#ifndef libshortcutsign_verify_h
#define libshortcutsign_verify_h
#include <inttypes.h>
#ifdef __cplusplus
extern "C" {
#endif
int verify_dict_auth_data(uint8_t *authData, size_t authDataSize);
int __attribute__((deprecated)) verify_contact_signed_auth_data(uint8_t *authData, size_t authDataSize); /* Use verify_dict_auth_data instead */
int __attribute__((deprecated)) verify_contact_signed_shortcut(const char *signedShortcutPath); /* Use verify_signed_shortcut instead */
int verify_signed_shortcut(const char *signedShortcutPath);
int verify_signed_shortcut_buffer(uint8_t *buffer, size_t bufferSize);
/* Types of signed shortcuts */
typedef enum {
SHORTCUT_UNKNOWN_FORMAT = 0,
SHORTCUT_UNSIGNED = 1,
SHORTCUT_SIGNED_CONTACT = 2,
SHORTCUT_SIGNED_ICLOUD = 3,
} SSFormat;
SSFormat get_shortcut_format(uint8_t *buffer, size_t bufferSize);
void print_shortcut_cert_info(uint8_t *buffer, size_t bufferSize);
#ifdef __cplusplus
}
#endif
#endif /* libshortcutsign_verify_h */