pgppasscach.h

来自「pgp soucecode pgp soucecode」· C头文件 代码 · 共 34 行

H
34
字号
/*
 * pgpPassCach.h -- A Passphrase Cache
 *
 * Written by:	Derek Atkins <warlord@MIT.EDU>
 *
 * $Id: pgpPassCach.h,v 1.8 1997/06/25 19:41:27 lloyd Exp $
 */

#ifndef Included_pgpPassCach_h
#define Included_pgpPassCach_h

#include "pgpUsuals.h"

PGP_BEGIN_C_DECLARATIONS

#include "pgpOpaqueStructs.h"


PGPPassCache  *pgpPassCacheCreate (PGPEnv const *env);
void  pgpPassCacheDestroy (PGPPassCache *cache);
int  pgpPassCacheAdd (PGPPassCache *cache, char const *pass,
		     size_t passlen);
int  pgpPassCacheTryEsk (PGPPassCache const *cache,
			PGPESK const *esk,
			int (*tryKey) (void *arg, PGPByte const *key,
				       size_t keylen),
			void *tryarg, PGPByte *key, size_t *keylen);
int  pgpPassCacheTryKey (PGPPassCache const *cache,
			PGPSecKey *seckey);

PGP_END_C_DECLARATIONS

#endif /* Included_pgpPassCach_h */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?