-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrlmpubkey.h
More file actions
41 lines (31 loc) · 910 Bytes
/
rlmpubkey.h
File metadata and controls
41 lines (31 loc) · 910 Bytes
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
#pragma once
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <io.h>
#include <sys/stat.h>
#ifdef _LINUX
static char* spilt = "/";
static char* localdir = "./";
#endif // _LINUX
#ifdef _WIN32
static char* spilt = "\\";
static char* localdir = ".\\";
#endif // _WIN32
typedef struct pubkeyinfo
{
char filename[1024];
int filesize;
int offset;
char* pubkey;
int pubkeylen;
char isvname[32];
char* isvkey;
struct pubkeyinfo* next;
} PubkeyInfo;
// Function declarations with updated signatures
int listFiles(char* dir, PubkeyInfo* pki, const char* isv_name);
int readsubfile(char* subfile, PubkeyInfo* pk, const char* isv_name);
int checkpubflag(char* buffer, long bufferlen, PubkeyInfo* pk, const char* subfile, long filesize, const char* isv_name);
int checkisvflag(char* buffer, long bufferlen, PubkeyInfo* pki);
int checkisvname(char* buffer, int value, PubkeyInfo* pki);