remove FIPS module code from crypto/dsa
[openssl.git] / crypto / ts / ts_rsp_print.c
index 6421315e41b30b04aefd95d814ac48858b9c5213..4657f87a83b21fb4507c6dc760b2cc8424366ea7 100644 (file)
@@ -71,9 +71,9 @@ struct status_map_st
 
 /* Local function declarations. */
 
-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_status_map_print(BIO *bio, const struct status_map_st *a,
+                              const ASN1_BIT_STRING *v);
+static int TS_ACCURACY_print_bio(BIO *bio, const TS_ACCURACY *accuracy);
 
 /* Function definitions. */
 
@@ -105,7 +105,7 @@ int TS_STATUS_INFO_print_bio(BIO *bio, TS_STATUS_INFO *a)
                "Revocation warning.",
                "Revoked."
                };
-       static struct status_map_st failure_map[] =
+       static const struct status_map_st failure_map[] =
                {
                { TS_INFO_BAD_ALG,
                "unrecognized or unsupported algorithm identifier" },
@@ -162,8 +162,8 @@ int TS_STATUS_INFO_print_bio(BIO *bio, TS_STATUS_INFO *a)
        return 1;
        }
 
-static int TS_status_map_print(BIO *bio, struct status_map_st *a,
-                              ASN1_BIT_STRING *v)
+static int TS_status_map_print(BIO *bio, const struct status_map_st *a,
+                              const ASN1_BIT_STRING *v)
        {
        int lines = 0;
 
@@ -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);