Address Jacob's comments

pull/414/head
Anthony Hu 2024-01-23 21:33:47 -05:00
parent dc0143ad6c
commit de41bdcce8
2 changed files with 5 additions and 3 deletions

View File

@ -30,7 +30,7 @@ Tested with these wolfSSL build options:
```sh
./autogen.sh # If cloned from GitHub
./configure --enable-x9-146 --with-liboqs --enable-debug
./configure --enable-dual-alg-certs --with-liboqs --enable-debug
make
sudo make install
sudo ldconfig # required on some targets
@ -355,7 +355,7 @@ Tested with these wolfSSL build options:
```sh
./autogen.sh # If cloned from GitHub
./configure --enable-x9-146 --enable-debug
./configure --enable-dual-alg-certs --enable-debug
make
sudo make install
sudo ldconfig # required on some targets

View File

@ -212,7 +212,9 @@ static int do_certgen(int argc, char** argv)
printf("Successfully read %d bytes from %s\n", altPrivSz, altPrivFile);
printf("Decoding the CA alt private key\n");
wc_ecc_init(&altCaKey);
ret = wc_ecc_init(&altCaKey);
if (ret != 0) goto exit;
idx = 0;
ret = wc_EccPrivateKeyDecode(altPrivBuf, &idx, &altCaKey,
(word32)altPrivSz);