-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpersistance.h
79 lines (55 loc) · 3.09 KB
/
persistance.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
* Off-the-Record Messaging plugin for pidgin
* Copyright (C) 2004-2018 Ian Goldberg, Rob Smits,
* Chris Alexander, Willy Lew,
* Nikita Borisov
* The pidgin-otrng contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __OTRNG_PERSISTANCE_H__
#define __OTRNG_PERSISTANCE_H__
#include <libotr-ng/messaging.h>
#define PRIVKEY_FILE_NAME_V4 "otr4.private_key"
#define PRIVKEY_FILE_NAME_V3 "otr.private_key"
#define CLIENT_PROFILE_FILE_NAME "otr4.client_profile"
#define PREKEY_PROFILE_FILE_NAME "otr4.prekey_profile"
#define PREKEYS_FILE_NAME "otr4.prekey_messages"
#define FORGING_KEY_FILE_NAME "otr4.forging_key"
#define EXP_CLIENT_PROFILE_FILE_NAME "otr4.exp_client_profile"
#define EXP_PREKEY_PROFILE_FILE_NAME "otr4.exp_prekey_profile"
#define FINGERPRINT_STORE_FILE_NAME_V4 "otr4.fingerprints"
#define FINGERPRINT_STORE_FILE_NAME_V3 "otr.fingerprints"
int persistance_write_privkey_v4_FILEp(otrng_global_state_s *otrng_state);
void persistance_read_private_keys_v4(otrng_global_state_s *otrng_state);
int persistance_write_client_profile_FILEp(otrng_global_state_s *otrng_state);
void persistance_read_client_profile(otrng_global_state_s *otrng_state);
int persistance_write_prekey_profile_FILEp(otrng_global_state_s *otrng_state);
void persistance_read_prekey_profile(otrng_global_state_s *otrng_state);
int persistance_write_prekey_messages(otrng_global_state_s *otrng_state);
void persistance_read_prekey_messages(otrng_global_state_s *otrng_state);
int persistance_write_forging_key(otrng_global_state_s *otrng_state);
void persistance_read_forging_key(otrng_global_state_s *otrng_state);
int persistance_write_expired_client_profile(otrng_global_state_s *otrng_state);
void persistance_read_expired_client_profile(otrng_global_state_s *otrng_state);
int persistance_write_expired_prekey_profile(otrng_global_state_s *otrng_state);
void persistance_read_expired_prekey_profile(otrng_global_state_s *otrng_state);
int persistance_write_private_keys_v3(otrng_global_state_s *otrng_state);
void persistance_read_private_keys_v3(otrng_global_state_s *otrng_state);
int persistance_write_fingerprints_v4(otrng_global_state_s *otrng_state);
void persistance_read_fingerprints_v4(otrng_global_state_s *otrng_state);
int persistance_write_fingerprints_v3(otrng_global_state_s *otrng_state);
void persistance_read_fingerprints_v3(otrng_global_state_s *otrng_state);
#endif