summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ts/ts_req_print.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ts/ts_req_print.c')
-rw-r--r--src/lib/libcrypto/ts/ts_req_print.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/lib/libcrypto/ts/ts_req_print.c b/src/lib/libcrypto/ts/ts_req_print.c
index eba12c3824..53bf0c8eb8 100644
--- a/src/lib/libcrypto/ts/ts_req_print.c
+++ b/src/lib/libcrypto/ts/ts_req_print.c
@@ -10,7 +10,7 @@
10 * are met: 10 * are met:
11 * 11 *
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 14 *
15 * 2. Redistributions in binary form must reproduce the above copyright 15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in 16 * notice, this list of conditions and the following disclaimer in
@@ -65,13 +65,15 @@
65 65
66/* Function definitions. */ 66/* Function definitions. */
67 67
68int TS_REQ_print_bio(BIO *bio, TS_REQ *a) 68int
69 { 69TS_REQ_print_bio(BIO *bio, TS_REQ *a)
70{
70 int v; 71 int v;
71 ASN1_OBJECT *policy_id; 72 ASN1_OBJECT *policy_id;
72 const ASN1_INTEGER *nonce; 73 const ASN1_INTEGER *nonce;
73 74
74 if (a == NULL) return 0; 75 if (a == NULL)
76 return 0;
75 77
76 v = TS_REQ_get_version(a); 78 v = TS_REQ_get_version(a);
77 BIO_printf(bio, "Version: %d\n", v); 79 BIO_printf(bio, "Version: %d\n", v);
@@ -82,7 +84,7 @@ int TS_REQ_print_bio(BIO *bio, TS_REQ *a)
82 policy_id = TS_REQ_get_policy_id(a); 84 policy_id = TS_REQ_get_policy_id(a);
83 if (policy_id == NULL) 85 if (policy_id == NULL)
84 BIO_printf(bio, "unspecified\n"); 86 BIO_printf(bio, "unspecified\n");
85 else 87 else
86 TS_OBJ_print_bio(bio, policy_id); 88 TS_OBJ_print_bio(bio, policy_id);
87 89
88 BIO_printf(bio, "Nonce: "); 90 BIO_printf(bio, "Nonce: ");
@@ -93,10 +95,10 @@ int TS_REQ_print_bio(BIO *bio, TS_REQ *a)
93 TS_ASN1_INTEGER_print_bio(bio, nonce); 95 TS_ASN1_INTEGER_print_bio(bio, nonce);
94 BIO_write(bio, "\n", 1); 96 BIO_write(bio, "\n", 1);
95 97
96 BIO_printf(bio, "Certificate required: %s\n", 98 BIO_printf(bio, "Certificate required: %s\n",
97 TS_REQ_get_cert_req(a) ? "yes" : "no"); 99 TS_REQ_get_cert_req(a) ? "yes" : "no");
98 100
99 TS_ext_print_bio(bio, TS_REQ_get_exts(a)); 101 TS_ext_print_bio(bio, TS_REQ_get_exts(a));
100 102
101 return 1; 103 return 1;
102 } 104}