mirror of https://github.com/wolfSSL/wolfssl.git
fixed missed initialization when not using ocsp nonces
parent
51787db76b
commit
5164c15216
|
@ -4650,11 +4650,11 @@ int EncodeOcspRequest(OcspRequest* req)
|
|||
req->serialSz = req->cert->serialSz;
|
||||
snSz = SetSerialNumber(req->cert->serial, req->cert->serialSz, snArray);
|
||||
|
||||
extSz = 0;
|
||||
if (req->useNonce) {
|
||||
RNG rng;
|
||||
if (InitRng(&rng) != 0) {
|
||||
CYASSL_MSG("\tCannot initialize RNG. Skipping the OSCP Nonce.");
|
||||
extSz = 0;
|
||||
} else {
|
||||
req->nonceSz = MAX_OCSP_NONCE_SZ;
|
||||
RNG_GenerateBlock(&rng, req->nonce, req->nonceSz);
|
||||
|
|
Loading…
Reference in New Issue