Estonian ID Card C-library
Loading...
Searching...
No Matches
DigiDocGlobals.h
1#ifndef __DIGIDOC_PROFILE_H__
2#define __DIGIDOC_PROFILE_H__
3//==================================================
4// FILE: DigiDocGlobals.h
5// PROJECT: Digi Doc Encryption
6// DESCRIPTION: DigiDoc TSA profiles
7// AUTHOR: Veiko Sinivee, S|E|B IT Partner Estonia
8//==================================================
9// Copyright (C) AS Sertifitseerimiskeskus
10// This library is free software; you can redistribute it and/or
11// modify it under the terms of the GNU Lesser General Public
12// License as published by the Free Software Foundation; either
13// version 2.1 of the License, or (at your option) any later version.
14// This library is distributed in the hope that it will be useful,
15// but WITHOUT ANY WARRANTY; without even the implied warranty of
16// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17// Lesser General Public License for more details.
18// GNU Lesser General Public Licence is available at
19// http://www.gnu.org/copyleft/lesser.html
20//==========< HISTORY >=============================
21// 01.06.2006 Arvo Sulakatko
22// Creation
23// 08.06.2006 Veiko Sinivee
24// Changed implementation and assignment of profile values
25//==================================================
26
27#include <libdigidoc/DigiDocDefs.h>
28
29#ifdef __cplusplus
30extern "C"
31{
32#endif
33
34// TSAProfile
35typedef struct tag_TSAProfile *LPTSAProfile;
36
37// TSAProfile
38typedef struct tag_TSAProfile
39{
40 char g_szTsaPolicy[255];
41 char g_szTsaUrl[255];
42 int g_nTsaMaxTsInterval;
43 int g_bAddSignatureTimeStamp;
44 int g_bAddSigAndRefsTimeStamp;
45
46 char m_szDebugFilePath[0xFF];
47 int m_nDebugLevel;
48
50
51
52//--------------------------------------------------
53// Initializes TSA profile block
54// returns pointer to global TSA profile
55//--------------------------------------------------
56EXP_OPTION TSAProfile* TSAProfile_init();
57
58
59// default TSAProfile (to be extended)
60//extern LPTSAProfile g_current_TSAProfile;
61
62EXP_OPTION void TSAProfile_free();
63
64#ifdef __cplusplus
65}
66#endif
67
68#endif // __DIGIDOC_PROFILE_H__
69
Definition DigiDocGlobals.h:39