]> git.saurik.com Git - apple/security.git/blob - SecurityASN1/inc/pkcs10.h
Security-54.1.3.tar.gz
[apple/security.git] / SecurityASN1 / inc / pkcs10.h
1 // NOTE: this is a machine generated file--editing not recommended
2 //
3 // pkcs10.h - class definitions for ASN.1 module PKCS5
4 //
5 // This file was generated by snacc on Mon Apr 22 22:34:19 2002
6 // UBC snacc by Mike Sample
7 // A couple of enhancements made by IBM European Networking Center
8
9 #ifndef _pkcs10_h_
10 #define _pkcs10_h_
11
12
13 //------------------------------------------------------------------------------
14 // class declarations:
15
16 class CertificationRequestInfo;
17 class CertificationRequest;
18 class CertificationRequestSigned;
19
20 //------------------------------------------------------------------------------
21 // class definitions:
22
23 typedef enum PKCS5AnyId
24 {
25
26 } PKCS5AnyId;
27
28
29 /* INTEGER */
30 typedef AsnInt VersionP10;
31
32 class CertificationRequestInfo: public AsnType
33 {
34 public:
35 VersionP10 version;
36 Name *subject;
37 SubjectPublicKeyInfo *subjectPublicKeyInfo;
38 Attributes attributes;
39
40 CertificationRequestInfo();
41 CertificationRequestInfo (const CertificationRequestInfo &);
42 virtual ~CertificationRequestInfo();
43 virtual AsnType *Clone() const;
44
45 virtual AsnType *Copy() const;
46
47 CertificationRequestInfo &operator = (const CertificationRequestInfo &);
48 AsnLen BEncContent (BUF_TYPE b);
49 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
50
51 AsnLen BEnc (BUF_TYPE b);
52 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
53 void Print (ostream &os) const;
54 };
55
56
57 class CertificationRequest: public AsnType
58 {
59 public:
60 CertificationRequestInfo *certificationRequestInfo;
61 SignatureAlgorithmIdentifier *signatureAlgorithm;
62 Signature signature;
63
64 CertificationRequest();
65 CertificationRequest (const CertificationRequest &);
66 virtual ~CertificationRequest();
67 virtual AsnType *Clone() const;
68
69 virtual AsnType *Copy() const;
70
71 CertificationRequest &operator = (const CertificationRequest &);
72 AsnLen BEncContent (BUF_TYPE b);
73 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
74
75 AsnLen BEnc (BUF_TYPE b);
76 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
77 void Print (ostream &os) const;
78 };
79
80
81 class CertificationRequestSigned: public AsnType
82 {
83 public:
84 AsnAny certificationRequestInfo;
85 SignatureAlgorithmIdentifier *signatureAlgorithm;
86 Signature signature;
87
88 CertificationRequestSigned();
89 CertificationRequestSigned (const CertificationRequestSigned &);
90 virtual ~CertificationRequestSigned();
91 virtual AsnType *Clone() const;
92
93 virtual AsnType *Copy() const;
94
95 CertificationRequestSigned &operator = (const CertificationRequestSigned &);
96 AsnLen BEncContent (BUF_TYPE b);
97 void BDecContent (BUF_TYPE b, AsnTag tag, AsnLen elmtLen, AsnLen &bytesDecoded, ENV_TYPE env);
98
99 AsnLen BEnc (BUF_TYPE b);
100 void BDec (BUF_TYPE b, AsnLen &bytesDecoded, ENV_TYPE env);
101 void Print (ostream &os) const;
102 };
103
104
105 //------------------------------------------------------------------------------
106 // externs for value defs
107
108 //------------------------------------------------------------------------------
109
110 #endif /* conditional include of pkcs10.h */