[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Sun Jan 17 21:58:54 UTC 2016


The branch master has been updated
       via  213f60bf1779bf64089d89189e1d9ee484ec0f44 (commit)
      from  ee6d9f4eb602479d04872f3a9fd1d3904bd96fd1 (commit)


- Log -----------------------------------------------------------------
commit 213f60bf1779bf64089d89189e1d9ee484ec0f44
Author: Rich Salz <rsalz at akamai.com>
Date:   Sun Jan 17 14:39:57 2016 -0500

    Accessor update; fix API, document one.
    
    Reviewed-by: Dr. Stephen Henson <steve at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 crypto/ocsp/ocsp_cl.c                    | 2 +-
 crypto/ts/ts_rsp_utils.c                 | 6 +++---
 doc/crypto/OCSP_response_find_status.pod | 5 +++++
 util/libeay.num                          | 8 ++++----
 4 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/crypto/ocsp/ocsp_cl.c b/crypto/ocsp/ocsp_cl.c
index 2f3835d..218e12c 100644
--- a/crypto/ocsp/ocsp_cl.c
+++ b/crypto/ocsp/ocsp_cl.c
@@ -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;
diff --git a/crypto/ts/ts_rsp_utils.c b/crypto/ts/ts_rsp_utils.c
index c3cd1bd..55c2221 100644
--- a/crypto/ts/ts_rsp_utils.c
+++ b/crypto/ts/ts_rsp_utils.c
@@ -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;
 }
diff --git a/doc/crypto/OCSP_response_find_status.pod b/doc/crypto/OCSP_response_find_status.pod
index 9ea2b7c..4baadfb 100644
--- a/doc/crypto/OCSP_response_find_status.pod
+++ b/doc/crypto/OCSP_response_find_status.pod
@@ -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
diff --git a/util/libeay.num b/util/libeay.num
index 31a603d..33c1c4e 100755
--- a/util/libeay.num
+++ b/util/libeay.num
@@ -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:


More information about the openssl-commits mailing list