Encode (CRMFCertReqMsg *inCertReq, CRMFCertReqMsg *secondReq, char *configdir)
Encode(CRMFCertReqMsg *inCertReq1, CRMFCertReqMsg *inCertReq2)
Encode (CRMFCertReqMsg *inCertReq, 	CRMFCertReqMsg *secondReq, char *configdir){   #define PATH_LEN  150#define CRMF_FILE "CertReqMessages.der"    char filePath[PATH_LEN];    PRFileDesc *fileDesc;    SECStatus rv;    int irv = 0;    CRMFCertReqMsg *msgArr[3];    CRMFCertReqMsg *newMsg;    PR_snprintf(filePath, PATH_LEN, "%s/%s", configdir, CRMF_FILE);    fileDesc = PR_Open (filePath, PR_WRONLY | PR_CREATE_FILE | PR_TRUNCATE, 			0666);    if (fileDesc == NULL) {        printf ("Could not open file %s\n", filePath);	irv = 14;	goto finish;    }/*    rv = CRMF_EncodeCertReqMsg (inCertReq, WriteItOut, (void*)fileDesc);*/    msgArr[0] = inCertReq;    msgArr[1] = secondReq;    msgArr[2] = NULL;    rv = CRMF_EncodeCertReqMessages(msgArr, WriteItOut, (void*)fileDesc);    if (rv != SECSuccess) {        printf ("An error occurred while encoding.\n");	irv = 15;	goto finish;    } finish:    PR_Close(fileDesc);    return irv;}