CryptoMessageSyntax.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:3k
源码类别:

多媒体编程

开发平台:

Visual C++

  1. /*
  2.      File:       CryptoMessageSyntax.h
  3.  
  4.      Contains:   CMS Interfaces.
  5.  
  6.      Version:    Technology: 1.0
  7.                  Release:    QuickTime 6.0.2
  8.  
  9.      Copyright:  (c) 1999-2001 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:      For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __CRYPTOMESSAGESYNTAX__
  18. #define __CRYPTOMESSAGESYNTAX__
  19. #ifndef __MACTYPES__
  20. #include "MacTypes.h"
  21. #endif
  22. #ifndef __CFARRAY__
  23. #include "CFArray.h"
  24. #endif
  25. #ifndef __CFBAG__
  26. #include "CFBag.h"
  27. #endif
  28. #ifndef __CFDATA__
  29. #include "CFData.h"
  30. #endif
  31. #ifndef __CFDATE__
  32. #include "CFDate.h"
  33. #endif
  34. #ifndef __CFSET__
  35. #include "CFSet.h"
  36. #endif
  37. #ifndef __CFSTRING__
  38. #include "CFString.h"
  39. #endif
  40. #ifndef __KEYCHAIN__
  41. #include "Keychain.h"
  42. #endif
  43. /*
  44.     Data structures and types
  45. */
  46. #if PRAGMA_ONCE
  47. #pragma once
  48. #endif
  49. #ifdef __cplusplus
  50. extern "C" {
  51. #endif
  52. #if PRAGMA_IMPORT
  53. #pragma import on
  54. #endif
  55. #if PRAGMA_STRUCT_ALIGN
  56.     #pragma options align=mac68k
  57. #elif PRAGMA_STRUCT_PACKPUSH
  58.     #pragma pack(push, 2)
  59. #elif PRAGMA_STRUCT_PACK
  60.     #pragma pack(2)
  61. #endif
  62. typedef struct OpaqueSecTypeRef*        SecTypeRef;
  63. typedef struct OpaqueSecSignerRef*      SecSignerRef;
  64. /* Signer object manipulation */
  65. EXTERN_API( OSStatus )
  66. SecSignerGetStatus              (SecSignerRef           signer);
  67. EXTERN_API( SecTypeRef )
  68. SecRetain                       (SecTypeRef             sec);
  69. EXTERN_API( void )
  70. SecRelease                      (SecTypeRef             sec);
  71. EXTERN_API( UInt32 )
  72. SecRetainCount                  (SecTypeRef             sec);
  73. /* Errors Codes  */
  74. enum {
  75.     errSecUnsupported           = -13843,
  76.     errSecInvalidData           = -13844,
  77.     errSecTooMuchData           = -13845,
  78.     errSecMissingData           = -13846,
  79.     errSecNoSigners             = -13847,
  80.     errSecSignerFailed          = -13848,
  81.     errSecInvalidPolicy         = -13849,
  82.     errSecUnknownPolicy         = -13850,
  83.     errSecInvalidStopOn         = -13851,
  84.     errSecMissingCert           = -13852,
  85.     errSecInvalidCert           = -13853,
  86.     errSecNotSigner             = -13854,
  87.     errSecNotTrusted            = -13855,
  88.     errSecMissingAttribute      = -13856,
  89.     errSecMissingDigest         = -13857,
  90.     errSecDigestMismatch        = -13858,
  91.     errSecInvalidSignature      = -13859,
  92.     errSecAlgMismatch           = -13860,
  93.     errSecUnsupportedAlgorithm  = -13864,
  94.     errSecContentTypeMismatch   = -13865,
  95.     errSecDebugRoot             = -13866
  96. };
  97. #if PRAGMA_STRUCT_ALIGN
  98.     #pragma options align=reset
  99. #elif PRAGMA_STRUCT_PACKPUSH
  100.     #pragma pack(pop)
  101. #elif PRAGMA_STRUCT_PACK
  102.     #pragma pack()
  103. #endif
  104. #ifdef PRAGMA_IMPORT_OFF
  105. #pragma import off
  106. #elif PRAGMA_IMPORT
  107. #pragma import reset
  108. #endif
  109. #ifdef __cplusplus
  110. }
  111. #endif
  112. #endif /* __CRYPTOMESSAGESYNTAX__ */