Cert Request

1. Added setting the request's version.
2. Added certreq test code to the ctaocrypt test.
3. Added the certreq test outputs to gitignore.
This commit is contained in:
John Safranek
2014-01-08 10:57:46 -08:00
parent 4de6a6d902
commit f0a7d94c48
3 changed files with 77 additions and 1 deletions

View File

@@ -4625,7 +4625,7 @@ static int EncodeCertReq(Cert* cert, DerCert* der,
XMEMSET(der, 0, sizeof(DerCert));
/* version */
der->versionSz = SetMyVersion(0, der->version, FALSE);
der->versionSz = SetMyVersion(cert->version, der->version, FALSE);
/* subject name */
der->subjectSz = SetName(der->subject, &cert->subject);