We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 873fc69 commit 357f40cCopy full SHA for 357f40c
src/crypto/OCSP.cpp
@@ -132,7 +132,7 @@ OCSP::OCSP(const unsigned char *data, size_t size)
132
return;
133
resp.reset(d2i_OCSP_RESPONSE(nullptr, &data, long(size)), OCSP_RESPONSE_free);
134
if(resp)
135
- basic.reset(OCSP_response_get1_basic(resp.get()), OCSP_BASICRESP_free);
+ basic.reset(OCSP_response_get1_basic(resp.get()), OCSP_BASICRESP_free);
136
}
137
138
bool OCSP::compareResponderCert(const X509Cert &cert) const
@@ -183,7 +183,7 @@ OCSP::operator vector<unsigned char>() const
183
*/
184
void OCSP::verifyResponse(const X509Cert &cert) const
185
{
186
- if(!resp)
+ if(!basic)
187
THROW("Failed to verify OCSP response.");
188
189
tm tm = producedAt();
0 commit comments