📄 pgpsdkpriv.h
字号:
/*____________________________________________________________________________
Copyright (C) 2002 PGP Corporation
All rights reserved.
$Id: pgpSDKPriv.h,v 1.11 2002/08/06 20:11:10 dallen Exp $
____________________________________________________________________________*/
#ifndef Included_pgpSDKPriv_h /* [ */
#define Included_pgpSDKPriv_h
#include "pgpSDKBuildFlags.h"
#include "pgpPubTypes.h"
/*____________________________________________________________________________
Dependencies
____________________________________________________________________________*/
#if !( defined(PGP_MACINTOSH) || defined(PGP_UNIX) || defined(PGP_WIN32) )
#error one of {PGP_MACINTOSH, PGP_UNIX, PGP_WIN32} must be defined
#endif
#if PGP_RSA /* [ */
#if ! PGP_IDEA
#error PGP_RSA requires PGP_IDEA
#endif
#if (PGP_USECAPIFORRSA + PGP_USEBSAFEFORRSA + PGP_USERSAREF + \
PGP_USEPGPFORRSA) != 1
#error Must enable exactly one RSA implementation option
#endif
#if PGP_USECAPIFORRSA && (PGP_MACINTOSH || PGP_UNIX)
#error Cannot enable CAPI RSA implementation on this platform
#endif
#else /* ] PGP_RSA [ */
#if PGP_RSA_KEYGEN
#error Cannot enable PGP_RSA_KEYGEN without PGP_RSA
#endif
#if (PGP_USECAPIFORRSA + PGP_USEBSAFEFORRSA + PGP_USERSAREF + \
PGP_USEPGPFORRSA) != 0
#error Cannot enable any RSA implementation options without PGP_RSA
#endif
#endif /* ] PGP_RSA */
#if PGP_USECAPIFORMD2 && ! PGP_USECAPIFORRSA
#error Cannot use CAPI MD2 without CAPI RSA
#endif
#ifndef PGPSDK_FRONTEND
#define PGPSDK_FRONTEND 1
#define PGPSDK_BACKEND 0
#endif
/*____________________________________________________________________________
Function profiling (needed for FIPS)
____________________________________________________________________________*/
#define kProfileArgs __FILE__, (PGPUInt32) __LINE__
PGPError pgpEnterFunction(const char *fileName, PGPUInt32 lineNumber);
#define pgpEnterPGPErrorFunction() \
{ \
PGPError sdkError; \
\
sdkError = pgpEnterFunction( kProfileArgs ); \
if( IsPGPError( sdkError ) ) \
return( sdkError ); \
}
#define pgpEnterZeroFunction() \
{ \
if( IsPGPError( pgpEnterFunction( kProfileArgs ) ) ) \
return( 0 ); \
}
#define pgpEnterVoidFunction() \
{ \
if( IsPGPError( pgpEnterFunction( kProfileArgs ) ) ) \
return; \
}
#define pgpEnterBooleanFunction(result) \
{ \
if( IsPGPError( pgpEnterFunction( kProfileArgs ) ) ) \
return( result ); \
}
#define pgpEnterOptionListFunction() \
{ \
if( IsPGPError( pgpEnterFunction( kProfileArgs ) ) ) \
return( kPGPSDKErrorStateOptionListRef ); \
}
#endif /* ] Included_pgpSDKPriv_h */
/*__Editor_settings____
Local Variables:
tab-width: 4
End:
vi: ts=4 sw=4
vim: si
_____________________*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -