diff options
author | Matt Caswell <matt@openssl.org> | 2016-08-13 14:32:17 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-08-16 23:36:27 +0100 |
commit | bb2f62bababe1e735efe828bc9a467b967c8cd20 (patch) | |
tree | faa7aa38178b5ce083b3d0b7d2eac18e2afaefcf | |
parent | 69b86d4b98051af62d44b2ccf0a4cab7c8aa8ff9 (diff) | |
download | openssl-new-bb2f62bababe1e735efe828bc9a467b967c8cd20.tar.gz |
Convert TS_STATUS_INFO* functions to use const getters
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Stephen Henson <steve@openssl.org>
-rw-r--r-- | crypto/ts/ts_rsp_utils.c | 7 | ||||
-rw-r--r-- | include/openssl/ts.h | 8 |
2 files changed, 9 insertions, 6 deletions
diff --git a/crypto/ts/ts_rsp_utils.c b/crypto/ts/ts_rsp_utils.c index 3ee9dae334..3ecee39a22 100644 --- a/crypto/ts/ts_rsp_utils.c +++ b/crypto/ts/ts_rsp_utils.c @@ -348,17 +348,18 @@ int TS_STATUS_INFO_set_status(TS_STATUS_INFO *a, int i) return ASN1_INTEGER_set(a->status, i); } -ASN1_INTEGER *TS_STATUS_INFO_get0_status(TS_STATUS_INFO *a) +const ASN1_INTEGER *TS_STATUS_INFO_get0_status(const TS_STATUS_INFO *a) { return a->status; } -STACK_OF(ASN1_UTF8STRING) *TS_STATUS_INFO_get0_text(TS_STATUS_INFO *a) +const STACK_OF(ASN1_UTF8STRING) * +TS_STATUS_INFO_get0_text(const TS_STATUS_INFO *a) { return a->text; } -ASN1_BIT_STRING *TS_STATUS_INFO_get0_failure_info(TS_STATUS_INFO *a) +const ASN1_BIT_STRING *TS_STATUS_INFO_get0_failure_info(const TS_STATUS_INFO *a) { return a->failure_info; } diff --git a/include/openssl/ts.h b/include/openssl/ts.h index cd8f373c4c..a5659825fb 100644 --- a/include/openssl/ts.h +++ b/include/openssl/ts.h @@ -160,11 +160,13 @@ int TS_REQ_set_version(TS_REQ *a, long version); long TS_REQ_get_version(const TS_REQ *a); int TS_STATUS_INFO_set_status(TS_STATUS_INFO *a, int i); -ASN1_INTEGER *TS_STATUS_INFO_get0_status(TS_STATUS_INFO *a); +const ASN1_INTEGER *TS_STATUS_INFO_get0_status(const TS_STATUS_INFO *a); -STACK_OF(ASN1_UTF8STRING) *TS_STATUS_INFO_get0_text(TS_STATUS_INFO *a); +const STACK_OF(ASN1_UTF8STRING) * +TS_STATUS_INFO_get0_text(const TS_STATUS_INFO *a); -ASN1_BIT_STRING *TS_STATUS_INFO_get0_failure_info(TS_STATUS_INFO *a); +const ASN1_BIT_STRING * +TS_STATUS_INFO_get0_failure_info(const TS_STATUS_INFO *a); int TS_REQ_set_msg_imprint(TS_REQ *a, TS_MSG_IMPRINT *msg_imprint); TS_MSG_IMPRINT *TS_REQ_get_msg_imprint(TS_REQ *a); |