Correct timestamp output when clock_precision_digits > 0
[openssl.git] / crypto / ts / ts_req_print.c
index 7f0f213b9b001839a49023ab1dc5d5281dc4bd8a..eba12c38240821358d1dc5c01950657d4870e14b 100644 (file)
@@ -69,12 +69,12 @@ int TS_REQ_print_bio(BIO *bio, TS_REQ *a)
        {
        int v;
        ASN1_OBJECT *policy_id;
        {
        int v;
        ASN1_OBJECT *policy_id;
-       ASN1_INTEGER *nonce;
+       const ASN1_INTEGER *nonce;
 
        if (a == NULL) return 0;
 
        v = TS_REQ_get_version(a);
 
        if (a == NULL) return 0;
 
        v = TS_REQ_get_version(a);
-       BIO_printf(bio, "Version: %ld\n", v);
+       BIO_printf(bio, "Version: %d\n", v);
 
        TS_MSG_IMPRINT_print_bio(bio, TS_REQ_get_msg_imprint(a));
 
 
        TS_MSG_IMPRINT_print_bio(bio, TS_REQ_get_msg_imprint(a));