Accessor update; fix API, document one.
authorRich Salz <rsalz@akamai.com>
Sun, 17 Jan 2016 19:39:57 +0000 (14:39 -0500)
committerRich Salz <rsalz@openssl.org>
Sun, 17 Jan 2016 21:58:36 +0000 (16:58 -0500)
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
crypto/ocsp/ocsp_cl.c
crypto/ts/ts_rsp_utils.c
doc/crypto/OCSP_response_find_status.pod
util/libeay.num

index 2f3835d..218e12c 100644 (file)
@@ -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;
index c3cd1bd..55c2221 100644 (file)
@@ -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;
 }
index 9ea2b7c..4baadfb 100644 (file)
@@ -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
index 31a603d..33c1c4e 100755 (executable)
@@ -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: