Accessor update; fix API, document one.
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
This commit is contained in:
parent
ee6d9f4eb6
commit
213f60bf17
@ -242,7 +242,7 @@ OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx)
|
||||
return sk_OCSP_SINGLERESP_value(bs->tbsResponseData.responses, idx);
|
||||
}
|
||||
|
||||
ASN1_GENERALIZEDTIME *OCSP_resp_get_produced_at(OCSP_BASICRESP* bs)
|
||||
ASN1_GENERALIZEDTIME *OCSP_resp_get0_produced_at(OCSP_BASICRESP* bs)
|
||||
{
|
||||
if (!bs)
|
||||
return NULL;
|
||||
|
@ -398,17 +398,17 @@ int TS_STATUS_INFO_set_status(TS_STATUS_INFO *a, int i)
|
||||
return ASN1_INTEGER_set(a->status, i);
|
||||
}
|
||||
|
||||
ASN1_INTEGER *TS_STATUS_INFO_get_status(TS_STATUS_INFO *a)
|
||||
ASN1_INTEGER *TS_STATUS_INFO_get0_status(TS_STATUS_INFO *a)
|
||||
{
|
||||
return a->status;
|
||||
}
|
||||
|
||||
STACK_OF(ASN1_UTF8STRING) *TS_STATUS_INFO_get_text(TS_STATUS_INFO *a)
|
||||
STACK_OF(ASN1_UTF8STRING) *TS_STATUS_INFO_get0_text(TS_STATUS_INFO *a)
|
||||
{
|
||||
return a->text;
|
||||
}
|
||||
|
||||
ASN1_BIT_STRING *TS_STATUS_INFO_get_failure_info(TS_STATUS_INFO *a)
|
||||
ASN1_BIT_STRING *TS_STATUS_INFO_get0_failure_info(TS_STATUS_INFO *a)
|
||||
{
|
||||
return a->failure_info;
|
||||
}
|
||||
|
@ -20,6 +20,8 @@ OCSP_resp_find_status, OCSP_resp_count, OCSP_resp_get0, OCSP_resp_find, OCSP_sin
|
||||
ASN1_GENERALIZEDTIME **thisupd,
|
||||
ASN1_GENERALIZEDTIME **nextupd);
|
||||
|
||||
ASN1_GENERALIZEDTIME *OCSP_resp_get0_produced_at(OCSP_BASICRESP* single);
|
||||
|
||||
int OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd,
|
||||
ASN1_GENERALIZEDTIME *nextupd,
|
||||
long sec, long maxsec);
|
||||
@ -51,6 +53,9 @@ matching entry after B<last> or starting from the beginning if B<last> is -1.
|
||||
OCSP_single_get0_status() extracts the fields of B<single> in B<*reason>,
|
||||
B<*revtime>, B<*thisupd> and B<*nextupd>.
|
||||
|
||||
OCSP_resp_get0_produced_at() extracts the B<producedAt> field from the
|
||||
single response B<bs>.
|
||||
|
||||
OCSP_check_validity() checks the validity of B<thisupd> and B<nextupd> values
|
||||
which will be typically obtained from OCSP_resp_find_status() or
|
||||
OCSP_single_get0_status(). If B<sec> is non-zero it indicates how many seconds
|
||||
|
@ -4760,7 +4760,7 @@ EC_KEY_get_ex_data 5154 1_1_0 EXIST::FUNCTION:EC
|
||||
EC_KEY_set_method 5155 1_1_0 EXIST::FUNCTION:EC
|
||||
EC_KEY_get_method 5156 1_1_0 EXIST::FUNCTION:EC
|
||||
OCSP_SINGLERESP_get0_id 5157 1_1_0 EXIST::FUNCTION:
|
||||
TS_STATUS_INFO_get_status 5158 1_1_0 EXIST::FUNCTION:
|
||||
OCSP_resp_get_produced_at 5159 1_1_0 EXIST::FUNCTION:
|
||||
TS_STATUS_INFO_get_failure_info 5160 1_1_0 EXIST::FUNCTION:
|
||||
TS_STATUS_INFO_get_text 5161 1_1_0 EXIST::FUNCTION:
|
||||
TS_STATUS_INFO_get0_status 5158 1_1_0 EXIST::FUNCTION:
|
||||
OCSP_resp_get0_produced_at 5159 1_1_0 EXIST::FUNCTION:
|
||||
TS_STATUS_INFO_get0_failure_info 5160 1_1_0 EXIST::FUNCTION:
|
||||
TS_STATUS_INFO_get0_text 5161 1_1_0 EXIST::FUNCTION:
|
||||
|
Loading…
x
Reference in New Issue
Block a user