1 // NOTE: this is a machine generated file--editing not recommended
3 // pkcs10.h - class definitions for ASN.1 module PKCS5
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
13 //------------------------------------------------------------------------------
14 // class declarations:
16 class CertificationRequestInfo
;
17 class CertificationRequest
;
18 class CertificationRequestSigned
;
20 //------------------------------------------------------------------------------
23 typedef enum PKCS5AnyId
30 typedef AsnInt VersionP10
;
32 class CertificationRequestInfo
: public AsnType
37 SubjectPublicKeyInfo
*subjectPublicKeyInfo
;
38 Attributes attributes
;
40 CertificationRequestInfo();
41 CertificationRequestInfo (const CertificationRequestInfo
&);
42 virtual ~CertificationRequestInfo();
43 virtual AsnType
*Clone() const;
45 virtual AsnType
*Copy() const;
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
);
51 AsnLen
BEnc (BUF_TYPE b
);
52 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
53 void Print (ostream
&os
) const;
57 class CertificationRequest
: public AsnType
60 CertificationRequestInfo
*certificationRequestInfo
;
61 SignatureAlgorithmIdentifier
*signatureAlgorithm
;
64 CertificationRequest();
65 CertificationRequest (const CertificationRequest
&);
66 virtual ~CertificationRequest();
67 virtual AsnType
*Clone() const;
69 virtual AsnType
*Copy() const;
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
);
75 AsnLen
BEnc (BUF_TYPE b
);
76 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
77 void Print (ostream
&os
) const;
81 class CertificationRequestSigned
: public AsnType
84 AsnAny certificationRequestInfo
;
85 SignatureAlgorithmIdentifier
*signatureAlgorithm
;
88 CertificationRequestSigned();
89 CertificationRequestSigned (const CertificationRequestSigned
&);
90 virtual ~CertificationRequestSigned();
91 virtual AsnType
*Clone() const;
93 virtual AsnType
*Copy() const;
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
);
99 AsnLen
BEnc (BUF_TYPE b
);
100 void BDec (BUF_TYPE b
, AsnLen
&bytesDecoded
, ENV_TYPE env
);
101 void Print (ostream
&os
) const;
105 //------------------------------------------------------------------------------
106 // externs for value defs
108 //------------------------------------------------------------------------------
110 #endif /* conditional include of pkcs10.h */