mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-05-04 08:20:50 +02:00
Merge pull request #1181 from dgarske/cert_serial
Certificate serial number enhancements
This commit is contained in:
@@ -8202,6 +8202,7 @@ int rsa_test(void)
|
||||
/* self signed */
|
||||
{
|
||||
Cert myCert;
|
||||
const byte mySerial[8] = {1,2,3,4,5,6,7,8};
|
||||
#if !defined(NO_FILESYSTEM) && !defined(NO_WRITE_TEMP_FILES)
|
||||
FILE* derFile;
|
||||
FILE* pemFile;
|
||||
@@ -8232,6 +8233,8 @@ int rsa_test(void)
|
||||
XSTRNCPY(myCert.subject.unit, "Development", CTC_NAME_SIZE);
|
||||
XSTRNCPY(myCert.subject.commonName, "www.yassl.com", CTC_NAME_SIZE);
|
||||
XSTRNCPY(myCert.subject.email, "info@yassl.com", CTC_NAME_SIZE);
|
||||
XMEMCPY(myCert.serial, mySerial, sizeof(mySerial));
|
||||
myCert.serialSz = (int)sizeof(mySerial);
|
||||
myCert.isCA = 1;
|
||||
myCert.sigType = CTC_SHA256wRSA;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user