summaryrefslogtreecommitdiff
path: root/plugins/CryptoPP/src/PGPw/sdk6/include/pgpSDKPrefs.h
blob: cc94274e481750de9b03ecaff3992e6e46f547db (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
70
71
72
73
74
/*____________________________________________________________________________
	Copyright (C) 1997 Network Associates Inc. and affiliated companies.
	All rights reserved.

	$Id: pgpSDKPrefs.h,v 1.7 1999/05/17 07:53:20 heller Exp $
____________________________________________________________________________*/
#ifndef Included_pgpCDKPrefs_h	/* [ */
#define Included_pgpCDKPrefs_h

#include "pgpConfig.h"
#include "pgpPubTypes.h"


enum PGPsdkPrefSelector_
{
	kPGPsdkPref_DefaultKeyID	= 3,
	kPGPsdkPref_PublicKeyring	= 5,
	kPGPsdkPref_PrivateKeyring	= 6,
	kPGPsdkPref_RandomSeedFile	= 7,
	kPGPsdkPref_GroupsFile		= 8,
	
	PGP_ENUM_FORCE( PGPsdkPrefSelector_ )
};
PGPENUM_TYPEDEF( PGPsdkPrefSelector_, PGPsdkPrefSelector );



PGP_BEGIN_C_DECLARATIONS
#if PRAGMA_IMPORT_SUPPORTED
#pragma import on
#endif

/* call this if you want the CDK to use prefs stored in the prefs file */
PGPError PGPsdkLoadPrefs( PGPContextRef context,
					PGPFileSpecRef prefSpec );
PGPError PGPsdkLoadDefaultPrefs( PGPContextRef context );

/* save any changed preferences to disk */
PGPError PGPsdkSavePrefs( PGPContextRef context );


PGPError PGPsdkPrefSetFileSpec( PGPContextRef context,
					PGPsdkPrefSelector selector, PGPFileSpecRef ref );
					
/* caller must deallocate *outRef with PGPFreeFileSpec */
PGPError PGPsdkPrefGetFileSpec( PGPContextRef context,
					PGPsdkPrefSelector selector, PGPFileSpecRef * outRef );
					
					
PGPError PGPsdkPrefSetData( PGPContextRef context,
					PGPsdkPrefSelector selector,
					void const *data, PGPSize size );

/* caller must deallocate *dataOut with PGPFreeData */
PGPError PGPsdkPrefGetData( PGPContextRef context,
					PGPsdkPrefSelector selector,
					void **dataOut, PGPSize *sizeOut );

#if PRAGMA_IMPORT_SUPPORTED
#pragma import reset
#endif
PGP_END_C_DECLARATIONS

#endif /* ] Included_pgpCDKPrefs_h */


/*__Editor_settings____

	Local Variables:
	tab-width: 4
	End:
	vi: ts=4 sw=4
	vim: si
_____________________*/