summaryrefslogtreecommitdiff
path: root/crypto/ts/ts_rsp_print.c
diff options
context:
space:
mode:
authornils <nils>2006-03-05 20:18:59 +0000
committernils <nils>2006-03-05 20:18:59 +0000
commit8e634e54fad5c698eb81fd42156c3a26e25aedb2 (patch)
treed021b16ab5ab59735be30eb519192e4d26752503 /crypto/ts/ts_rsp_print.c
parent2b188a273882be38285365a0c80e10e498cba7f4 (diff)
downloadopenssl-8e634e54fad5c698eb81fd42156c3a26e25aedb2.tar.gz
constify some print and ts functions
Diffstat (limited to 'crypto/ts/ts_rsp_print.c')
-rw-r--r--crypto/ts/ts_rsp_print.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/crypto/ts/ts_rsp_print.c b/crypto/ts/ts_rsp_print.c
index 6421315e4..21062517b 100644
--- a/crypto/ts/ts_rsp_print.c
+++ b/crypto/ts/ts_rsp_print.c
@@ -73,7 +73,7 @@ struct status_map_st
static int TS_status_map_print(BIO *bio, struct status_map_st *a,
ASN1_BIT_STRING *v);
-static int TS_ACCURACY_print_bio(BIO *bio, TS_ACCURACY *accuracy);
+static int TS_ACCURACY_print_bio(BIO *bio, const TS_ACCURACY *accuracy);
/* Function definitions. */
@@ -184,10 +184,10 @@ int TS_TST_INFO_print_bio(BIO *bio, TS_TST_INFO *a)
{
int v;
ASN1_OBJECT *policy_id;
- ASN1_INTEGER *serial;
- ASN1_GENERALIZEDTIME *gtime;
+ const ASN1_INTEGER *serial;
+ const ASN1_GENERALIZEDTIME *gtime;
TS_ACCURACY *accuracy;
- ASN1_INTEGER *nonce;
+ const ASN1_INTEGER *nonce;
GENERAL_NAME *tsa_name;
if (a == NULL) return 0;
@@ -261,11 +261,11 @@ int TS_TST_INFO_print_bio(BIO *bio, TS_TST_INFO *a)
return 1;
}
-static int TS_ACCURACY_print_bio(BIO *bio, TS_ACCURACY *accuracy)
+static int TS_ACCURACY_print_bio(BIO *bio, const TS_ACCURACY *accuracy)
{
- ASN1_INTEGER *seconds = TS_ACCURACY_get_seconds(accuracy);
- ASN1_INTEGER *millis = TS_ACCURACY_get_millis(accuracy);
- ASN1_INTEGER *micros = TS_ACCURACY_get_micros(accuracy);
+ const ASN1_INTEGER *seconds = TS_ACCURACY_get_seconds(accuracy);
+ const ASN1_INTEGER *millis = TS_ACCURACY_get_millis(accuracy);
+ const ASN1_INTEGER *micros = TS_ACCURACY_get_micros(accuracy);
if (seconds != NULL)
TS_ASN1_INTEGER_print_bio(bio, seconds);