diff options
author | Jay Threeth | 2011-04-04 11:48:26 -0700 |
---|---|---|
committer | Jay Threeth | 2011-04-04 11:48:26 -0700 |
commit | 3c9cc506f741b980565ff5b3b001cd8b6ee36b12 (patch) | |
tree | cb862c57b3d5f74177cde3bd962a53fc377166f6 /linden/indra/libotr/libotr-3.2.0/src/userstate.h | |
parent | build fixes, might build on linux now (diff) | |
download | meta-impy-3c9cc506f741b980565ff5b3b001cd8b6ee36b12.zip meta-impy-3c9cc506f741b980565ff5b3b001cd8b6ee36b12.tar.gz meta-impy-3c9cc506f741b980565ff5b3b001cd8b6ee36b12.tar.bz2 meta-impy-3c9cc506f741b980565ff5b3b001cd8b6ee36b12.tar.xz |
add source to libraries, and cruft for building under windows
Diffstat (limited to 'linden/indra/libotr/libotr-3.2.0/src/userstate.h')
-rwxr-xr-x | linden/indra/libotr/libotr-3.2.0/src/userstate.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/linden/indra/libotr/libotr-3.2.0/src/userstate.h b/linden/indra/libotr/libotr-3.2.0/src/userstate.h new file mode 100755 index 0000000..8525df0 --- /dev/null +++ b/linden/indra/libotr/libotr-3.2.0/src/userstate.h | |||
@@ -0,0 +1,45 @@ | |||
1 | /* | ||
2 | * Off-the-Record Messaging library | ||
3 | * Copyright (C) 2004-2008 Ian Goldberg, Chris Alexander, Nikita Borisov | ||
4 | * <otr@cypherpunks.ca> | ||
5 | * | ||
6 | * This library is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of version 2.1 of the GNU Lesser General | ||
8 | * Public License as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This library is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | * Lesser General Public License for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU Lesser General Public | ||
16 | * License along with this library; if not, write to the Free Software | ||
17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
18 | */ | ||
19 | |||
20 | #ifndef __USERSTATE_H__ | ||
21 | #define __USERSTATE_H__ | ||
22 | |||
23 | typedef struct s_OtrlUserState* OtrlUserState; | ||
24 | |||
25 | #include "context.h" | ||
26 | #include "privkey-t.h" | ||
27 | |||
28 | struct s_OtrlUserState { | ||
29 | ConnContext *context_root; | ||
30 | OtrlPrivKey *privkey_root; | ||
31 | }; | ||
32 | |||
33 | /* Create a new OtrlUserState. Most clients will only need one of | ||
34 | * these. A OtrlUserState encapsulates the list of known fingerprints | ||
35 | * and the list of private keys; if you have separate files for these | ||
36 | * things for (say) different users, use different OtrlUserStates. If | ||
37 | * you've got only one user, with multiple accounts all stored together | ||
38 | * in the same fingerprint store and privkey store files, use just one | ||
39 | * OtrlUserState. */ | ||
40 | OtrlUserState otrl_userstate_create(void); | ||
41 | |||
42 | /* Free a OtrlUserState */ | ||
43 | void otrl_userstate_free(OtrlUserState us); | ||
44 | |||
45 | #endif | ||