mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-26 23:42:22 +01:00
allow cert signing w/o Cert object, buffer only
This commit is contained in:
@@ -2779,7 +2779,8 @@ int rsa_test(void)
|
||||
if (certSz < 0)
|
||||
return -407;
|
||||
|
||||
certSz = SignCert(&myCert, derCert, FOURK_BUF, &caKey, &rng);
|
||||
certSz = SignCert(myCert.bodySz, myCert.sigType, derCert, FOURK_BUF,
|
||||
&caKey, &rng);
|
||||
if (certSz < 0)
|
||||
return -408;
|
||||
|
||||
@@ -2891,7 +2892,8 @@ int rsa_test(void)
|
||||
if (certSz < 0)
|
||||
return -456;
|
||||
|
||||
certSz = SignCert(&myCert, derCert, FOURK_BUF, &caKey, &rng);
|
||||
certSz = SignCert(myCert.bodySz, myCert.sigType, derCert, FOURK_BUF,
|
||||
&caKey, &rng);
|
||||
if (certSz < 0)
|
||||
return -457;
|
||||
|
||||
|
||||
@@ -2550,7 +2550,8 @@ int rsa_test(void)
|
||||
if (certSz < 0)
|
||||
return -407;
|
||||
|
||||
certSz = SignCert(&myCert, derCert, FOURK_BUF, &caKey, &rng);
|
||||
certSz = SignCert(myCert.bodySz, myCert.sigType, derCert, FOURK_BUF,
|
||||
&caKey, &rng);
|
||||
if (certSz < 0)
|
||||
return -408;
|
||||
|
||||
@@ -2662,7 +2663,8 @@ int rsa_test(void)
|
||||
if (certSz < 0)
|
||||
return -456;
|
||||
|
||||
certSz = SignCert(&myCert, derCert, FOURK_BUF, &caKey, &rng);
|
||||
certSz = SignCert(myCert.bodySz, myCert.sigType, derCert, FOURK_BUF,
|
||||
&caKey, &rng);
|
||||
if (certSz < 0)
|
||||
return -457;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user