summaryrefslogtreecommitdiff
path: root/libdigidoc/DigiDocGlobals.h
blob: 1e72763849e13e14f089cb30ae3e2a0613e3367a (plain)
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
#ifndef __DIGIDOC_PROFILE_H__
#define __DIGIDOC_PROFILE_H__
//==================================================
// FILE:	DigiDocGlobals.h
// PROJECT:     Digi Doc Encryption
// DESCRIPTION: DigiDoc TSA profiles
// AUTHOR:  Veiko Sinivee, S|E|B IT Partner Estonia
//==================================================
// Copyright (C) AS Sertifitseerimiskeskus
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
// This library 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
// Lesser General Public License for more details.
// GNU Lesser General Public Licence is available at
// http://www.gnu.org/copyleft/lesser.html
//==========< HISTORY >=============================
//      01.06.2006      Arvo Sulakatko
//                      Creation
//      08.06.2006      Veiko Sinivee
//                      Changed implementation and assignment of profile values
//==================================================

#include <libdigidoc/DigiDocDefs.h>

#ifdef __cplusplus
extern "C"
{
#endif	

// TSAProfile
typedef struct tag_TSAProfile *LPTSAProfile;

// TSAProfile
typedef struct tag_TSAProfile
{
	char g_szTsaPolicy[255];
	char g_szTsaUrl[255];
	int g_nTsaMaxTsInterval;	
	int g_bAddSignatureTimeStamp;
	int g_bAddSigAndRefsTimeStamp;

	char m_szDebugFilePath[0xFF];
	int m_nDebugLevel;

} TSAProfile, *LPTSAProfile;


//--------------------------------------------------
// Initializes TSA profile block
// returns pointer to global TSA profile
//--------------------------------------------------
EXP_OPTION TSAProfile* TSAProfile_init();


// default TSAProfile (to be extended)
//extern LPTSAProfile g_current_TSAProfile;

EXP_OPTION void TSAProfile_free();

#ifdef __cplusplus
}
#endif	 

#endif	// __DIGIDOC_PROFILE_H__