summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ts/ts_req_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ts/ts_req_utils.c')
-rw-r--r--src/lib/libcrypto/ts/ts_req_utils.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ts/ts_req_utils.c b/src/lib/libcrypto/ts/ts_req_utils.c
index ab813b2b42..bd707c228f 100644
--- a/src/lib/libcrypto/ts/ts_req_utils.c
+++ b/src/lib/libcrypto/ts/ts_req_utils.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ts_req_utils.c,v 1.4 2014/07/11 08:44:49 jsing Exp $ */ 1/* $OpenBSD: ts_req_utils.c,v 1.5 2017/01/29 17:49:23 beck Exp $ */
2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL 2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL
3 * project 2002. 3 * project 2002.
4 */ 4 */
@@ -84,7 +84,7 @@ TS_REQ_set_msg_imprint(TS_REQ *a, TS_MSG_IMPRINT *msg_imprint)
84 return 1; 84 return 1;
85 new_msg_imprint = TS_MSG_IMPRINT_dup(msg_imprint); 85 new_msg_imprint = TS_MSG_IMPRINT_dup(msg_imprint);
86 if (new_msg_imprint == NULL) { 86 if (new_msg_imprint == NULL) {
87 TSerr(TS_F_TS_REQ_SET_MSG_IMPRINT, ERR_R_MALLOC_FAILURE); 87 TSerror(ERR_R_MALLOC_FAILURE);
88 return 0; 88 return 0;
89 } 89 }
90 TS_MSG_IMPRINT_free(a->msg_imprint); 90 TS_MSG_IMPRINT_free(a->msg_imprint);
@@ -107,7 +107,7 @@ TS_MSG_IMPRINT_set_algo(TS_MSG_IMPRINT *a, X509_ALGOR *alg)
107 return 1; 107 return 1;
108 new_alg = X509_ALGOR_dup(alg); 108 new_alg = X509_ALGOR_dup(alg);
109 if (new_alg == NULL) { 109 if (new_alg == NULL) {
110 TSerr(TS_F_TS_MSG_IMPRINT_SET_ALGO, ERR_R_MALLOC_FAILURE); 110 TSerror(ERR_R_MALLOC_FAILURE);
111 return 0; 111 return 0;
112 } 112 }
113 X509_ALGOR_free(a->hash_algo); 113 X509_ALGOR_free(a->hash_algo);
@@ -142,7 +142,7 @@ TS_REQ_set_policy_id(TS_REQ *a, ASN1_OBJECT *policy)
142 return 1; 142 return 1;
143 new_policy = OBJ_dup(policy); 143 new_policy = OBJ_dup(policy);
144 if (new_policy == NULL) { 144 if (new_policy == NULL) {
145 TSerr(TS_F_TS_REQ_SET_POLICY_ID, ERR_R_MALLOC_FAILURE); 145 TSerror(ERR_R_MALLOC_FAILURE);
146 return 0; 146 return 0;
147 } 147 }
148 ASN1_OBJECT_free(a->policy_id); 148 ASN1_OBJECT_free(a->policy_id);
@@ -165,7 +165,7 @@ TS_REQ_set_nonce(TS_REQ *a, const ASN1_INTEGER *nonce)
165 return 1; 165 return 1;
166 new_nonce = ASN1_INTEGER_dup(nonce); 166 new_nonce = ASN1_INTEGER_dup(nonce);
167 if (new_nonce == NULL) { 167 if (new_nonce == NULL) {
168 TSerr(TS_F_TS_REQ_SET_NONCE, ERR_R_MALLOC_FAILURE); 168 TSerror(ERR_R_MALLOC_FAILURE);
169 return 0; 169 return 0;
170 } 170 }
171 ASN1_INTEGER_free(a->nonce); 171 ASN1_INTEGER_free(a->nonce);