Hi guys,

I am stuck with a simple (hopefully) problem that I do not know how to solve.
In particular I am trying to implement a CRMF simple interface. But I am not
sure how to code the CertReqMessages. From the ASN.1 specification (rfc4211)
it should be:

   CertReqMessages ::= SEQUENCE SIZE (1..MAX) OF CertReqMsg

Initially I implemented it as:

   ASN1_SEQUENCE (CRMF_REQ) = {
        ASN1_SEQUENCE_OF( CRMF_REQ, requests, CRMF_CERT_REQ_MESSAGE )
   } ASN1_SEQUENCE_END(CRMF_REQ)

   IMPLEMENT_ASN1_FUNCTIONS(CRMF_REQ)

and the related:

typedef struct crmfReq_st {
        STACK_OF(CRMF_CERT_REQ_MESSAGE) *requests;
} CRMF_REQ;

DECLARE_ASN1_FUNCTIONS(CRMF_REQ)


Would this work ? Or because it would be something like:

        SEQUENCE
          SEQUENCE OF CRMF_CERT_REQ_MESSAGE

it will not ? (Instead of being just one SEQUENCE is a SEQUENCE of a
SEQUENCE). How do I solve my problem ?


--

Best Regards,

        Massimiliano Pala

--o------------------------------------------------------------------------
Massimiliano Pala [OpenCA Project Manager]            [EMAIL PROTECTED]
                                                 [EMAIL PROTECTED]

Dartmouth Computer Science Dept               Home Phone: +1 (603) 397-3883
PKI/Trust - Office 063                        Work Phone: +1 (603) 646-9179
--o------------------------------------------------------------------------

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to