(load_ocsp): test that we got back a BasicReponse
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16913 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -208,15 +208,18 @@ load_ocsp(hx509_context context, struct revoke_ocsp *ocsp)
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
/*
|
||||
* XXX find BasicReponse and act on it
|
||||
*/
|
||||
|
||||
if (resp.responseBytes == NULL) {
|
||||
free_OCSPResponse(&resp);
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
ret = heim_oid_cmp(&resp.responseBytes->responseType,
|
||||
oid_id_pkix_ocsp_basic());
|
||||
if (ret != 0) {
|
||||
free_OCSPResponse(&resp);
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
ret = decode_OCSPBasicOCSPResponse(resp.responseBytes->response.data,
|
||||
resp.responseBytes->response.length,
|
||||
&basic,
|
||||
|
Reference in New Issue
Block a user