summaryrefslogtreecommitdiff
path: root/cryptopp/PGPw/sdk8/include/pgpShareFile.h
diff options
context:
space:
mode:
authorwatcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-04-21 14:14:52 +0000
committerwatcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-04-21 14:14:52 +0000
commitcb4a46e7fbe62d788e66ed6121c717a2d22a4d7c (patch)
tree30df260fdc5a1b5a7049c2f8cac8b7ef17513d6d /cryptopp/PGPw/sdk8/include/pgpShareFile.h
parent19b6f534d2e784a1e120bf52c4aa07004798f473 (diff)
svn.miranda.im is moving to a new home!
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@7 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'cryptopp/PGPw/sdk8/include/pgpShareFile.h')
-rw-r--r--cryptopp/PGPw/sdk8/include/pgpShareFile.h95
1 files changed, 95 insertions, 0 deletions
diff --git a/cryptopp/PGPw/sdk8/include/pgpShareFile.h b/cryptopp/PGPw/sdk8/include/pgpShareFile.h
new file mode 100644
index 0000000..4a7aa3e
--- /dev/null
+++ b/cryptopp/PGPw/sdk8/include/pgpShareFile.h
@@ -0,0 +1,95 @@
+/*____________________________________________________________________________
+ Copyright (C) 2002 PGP Corporation
+ All rights reserved.
+
+ $Id: pgpShareFile.h,v 1.1 2004/04/01 11:45:40 wprice Exp $
+____________________________________________________________________________*/
+#ifndef Included_pgpShareFile_h /* [ */
+#define Included_pgpShareFile_h
+
+#include "pgpConfig.h"
+#include "pgpBase.h"
+#include "pgpErrors.h"
+#include "pgpPubTypes.h"
+#include "pflTypes.h"
+#include "pgpShare.h"
+
+typedef struct PGPShareFile * PGPShareFileRef;
+
+#define kInvalidPGPShareFileRef ((PGPShareFileRef) NULL)
+#define PGPShareFileRefIsValid( ref ) ( (ref) != kInvalidPGPShareFileRef )
+
+PGP_BEGIN_C_DECLARATIONS
+#if PRAGMA_IMPORT_SUPPORTED
+#pragma import on
+#endif
+
+PGPError PGPNewShareFile(PFLFileSpecRef shareFileSpec,
+ PGPShareFileRef *shareFileRef);
+
+PGPError PGPFreeShareFile(PGPShareFileRef shareFileRef);
+
+/* The share object needs to be freed with PGPFreeShares(shares) */
+PGPError PGPCopySharesFromFile(PGPContextRef context,
+ PGPShareFileRef shareFileRef, PGPOptionListRef optionList,
+ PGPShareRef *shares);
+
+PGPError PGPCopySharesToFile(PGPContextRef context,
+ PGPShareFileRef shareFileRef, PGPOptionListRef optionList,
+ PGPShareRef shares);
+
+PGPError PGPGetShareFileUserID(PGPShareFileRef shareFileRef,
+ PGPSize bufferSize, PGPUTF8 *userID, PGPSize *fullSize);
+
+PGPError PGPSetShareFileUserID(PGPShareFileRef shareFileRef,
+ const PGPUTF8 *userID);
+
+PGPError PGPOpenShareFile(PFLFileSpecRef shareFileSpec,
+ PGPShareFileRef *shareFileRef);
+
+PGPError PGPSaveShareFile(PGPShareFileRef shareFileRef);
+
+PGPError PGPGetShareFileSpec(PGPShareFileRef shareFileRef,
+ PFLFileSpecRef *shareFileSpec);
+
+PGPError PGPGetShareFileShareID(PGPShareFileRef shareFileRef,
+ PGPShareID *id);
+
+PGPError PGPGetShareFileOwnerKeyID(PGPShareFileRef shareFileRef,
+ PGPKeyID *id);
+
+PGPError PGPSetShareFileOwnerKeyID(PGPShareFileRef shareFileRef,
+ const PGPKeyID id);
+
+PGPError PGPGetShareFileOwnerFingerprint(PGPShareFileRef shareFileRef,
+ PGPSize bufferSize, void *fingerprint, PGPSize *fullSize);
+
+PGPError PGPSetShareFileOwnerFingerprint(PGPShareFileRef shareFileRef,
+ PGPSize bufferSize, const void *fingerprint);
+
+PGPError PGPGetShareFileSharedKeyID(PGPShareFileRef shareFileRef,
+ PGPKeyID *id);
+
+PGPUInt32 PGPGetShareThresholdInFile(PGPShareFileRef shareFileRef);
+
+PGPUInt32 PGPGetNumSharesInFile(PGPShareFileRef shareFileRef);
+
+PGPBoolean IsSamePGPSharesInFiles(PGPShareFileRef firstFile,
+ PGPShareFileRef secondFile);
+
+#if PRAGMA_IMPORT_SUPPORTED
+#pragma import reset
+#endif
+PGP_END_C_DECLARATIONS
+
+#endif /* ] Included_pgpShareFile_h */
+
+
+/*__Editor_settings____
+
+ Local Variables:
+ tab-width: 4
+ End:
+ vi: ts=4 sw=4
+ vim: si
+_____________________*/