gwenhywfar
5.3.0
gwenhywfar5
gwenhywfar
passwdstore.h
Go to the documentation of this file.
1
/***************************************************************************
2
begin : Sat Dec 16 2012
3
copyright : (C) 2012 by Martin Preuss
4
email : martin@libchipcard.de
5
6
***************************************************************************
7
* *
8
* This library is free software; you can redistribute it and/or *
9
* modify it under the terms of the GNU Lesser General Public *
10
* License as published by the Free Software Foundation; either *
11
* version 2.1 of the License, or (at your option) any later version. *
12
* *
13
* This library is distributed in the hope that it will be useful, *
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16
* Lesser General Public License for more details. *
17
* *
18
* You should have received a copy of the GNU Lesser General Public *
19
* License along with this library; if not, write to the Free Software *
20
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
21
* MA 02111-1307 USA *
22
* *
23
***************************************************************************/
24
25
#ifndef GWENHYWFAR_PASSWDSTORE_H
26
#define GWENHYWFAR_PASSWDSTORE_H
27
28
29
#include <
gwenhywfar/gwenhywfarapi.h
>
30
#include <
gwenhywfar/stringlist.h
>
31
32
33
#ifdef __cplusplus
34
extern
"C"
{
35
#endif
36
37
typedef
struct
GWEN_PASSWD_STORE
GWEN_PASSWD_STORE
;
38
39
40
GWENHYWFAR_API
41
GWEN_PASSWD_STORE
*
GWEN_PasswordStore_new
(
const
char
*fname);
42
43
GWENHYWFAR_API
44
void
GWEN_PasswordStore_free
(
GWEN_PASSWD_STORE
*sto);
45
46
GWENHYWFAR_API
47
void
GWEN_PasswordStore_ClearStoragePasswd
(
GWEN_PASSWD_STORE
*sto);
48
49
GWENHYWFAR_API
50
int
GWEN_PasswordStore_SetPassword
(
GWEN_PASSWD_STORE
*sto,
const
char
*token,
const
char
*secret);
51
52
GWENHYWFAR_API
53
int
GWEN_PasswordStore_GetPassword
(
GWEN_PASSWD_STORE
*sto,
const
char
*token,
char
*buffer,
int
minLen,
int
maxLen);
54
55
GWENHYWFAR_API
56
int
GWEN_PasswordStore_GetTokenList
(
GWEN_PASSWD_STORE
*sto,
GWEN_STRINGLIST
*sl);
57
58
59
#ifdef __cplusplus
60
}
61
#endif
62
63
64
65
#endif
GWEN_PasswordStore_new
GWENHYWFAR_API GWEN_PASSWD_STORE * GWEN_PasswordStore_new(const char *fname)
GWEN_STRINGLIST
struct GWEN_STRINGLISTSTRUCT GWEN_STRINGLIST
Definition:
stringlist.h:54
GWEN_PasswordStore_GetTokenList
GWENHYWFAR_API int GWEN_PasswordStore_GetTokenList(GWEN_PASSWD_STORE *sto, GWEN_STRINGLIST *sl)
GWEN_PasswordStore_ClearStoragePasswd
GWENHYWFAR_API void GWEN_PasswordStore_ClearStoragePasswd(GWEN_PASSWD_STORE *sto)
GWEN_PasswordStore_SetPassword
GWENHYWFAR_API int GWEN_PasswordStore_SetPassword(GWEN_PASSWD_STORE *sto, const char *token, const char *secret)
GWEN_PasswordStore_free
GWENHYWFAR_API void GWEN_PasswordStore_free(GWEN_PASSWD_STORE *sto)
GWEN_PasswordStore_GetPassword
GWENHYWFAR_API int GWEN_PasswordStore_GetPassword(GWEN_PASSWD_STORE *sto, const char *token, char *buffer, int minLen, int maxLen)
gwenhywfarapi.h
GWENHYWFAR_API
#define GWENHYWFAR_API
Definition:
gwenhywfarapi.h:67
GWEN_PASSWD_STORE
struct GWEN_PASSWD_STORE GWEN_PASSWD_STORE
Definition:
passwdstore.h:37
stringlist.h
Generated by
1.8.17