summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ocsp/ocsp_lib.c
diff options
context:
space:
mode:
authorjsing <>2014-05-18 11:28:41 +0000
committerjsing <>2014-05-18 11:28:41 +0000
commitde4eef43c08fef5fd844116a63ef0e4e61d63f34 (patch)
tree73b1744a184fd1987676d03b6f2ec63ada8a7410 /src/lib/libcrypto/ocsp/ocsp_lib.c
parent05c55ad5106a239e704f8766f942bc882bfeb6ae (diff)
downloadopenbsd-de4eef43c08fef5fd844116a63ef0e4e61d63f34.tar.gz
openbsd-de4eef43c08fef5fd844116a63ef0e4e61d63f34.tar.bz2
openbsd-de4eef43c08fef5fd844116a63ef0e4e61d63f34.zip
More KNF.
Diffstat (limited to 'src/lib/libcrypto/ocsp/ocsp_lib.c')
-rw-r--r--src/lib/libcrypto/ocsp/ocsp_lib.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ocsp/ocsp_lib.c b/src/lib/libcrypto/ocsp/ocsp_lib.c
index 056bd27665..3f6007f40a 100644
--- a/src/lib/libcrypto/ocsp/ocsp_lib.c
+++ b/src/lib/libcrypto/ocsp/ocsp_lib.c
@@ -15,7 +15,7 @@
15 * are met: 15 * are met:
16 * 16 *
17 * 1. Redistributions of source code must retain the above copyright 17 * 1. Redistributions of source code must retain the above copyright
18 * notice, this list of conditions and the following disclaimer. 18 * notice, this list of conditions and the following disclaimer.
19 * 19 *
20 * 2. Redistributions in binary form must reproduce the above copyright 20 * 2. Redistributions in binary form must reproduce the above copyright
21 * notice, this list of conditions and the following disclaimer in 21 * notice, this list of conditions and the following disclaimer in
@@ -115,11 +115,11 @@ OCSP_cert_id_new(const EVP_MD *dgst, X509_NAME *issuerName,
115 OCSPerr(OCSP_F_OCSP_CERT_ID_NEW, OCSP_R_UNKNOWN_NID); 115 OCSPerr(OCSP_F_OCSP_CERT_ID_NEW, OCSP_R_UNKNOWN_NID);
116 goto err; 116 goto err;
117 } 117 }
118 if (!(alg->algorithm=OBJ_nid2obj(nid))) 118 if (!(alg->algorithm = OBJ_nid2obj(nid)))
119 goto err; 119 goto err;
120 if ((alg->parameter=ASN1_TYPE_new()) == NULL) 120 if ((alg->parameter = ASN1_TYPE_new()) == NULL)
121 goto err; 121 goto err;
122 alg->parameter->type=V_ASN1_NULL; 122 alg->parameter->type = V_ASN1_NULL;
123 123
124 if (!X509_NAME_digest(issuerName, dgst, md, &i)) 124 if (!X509_NAME_digest(issuerName, dgst, md, &i))
125 goto digerr; 125 goto digerr;
@@ -139,6 +139,7 @@ OCSP_cert_id_new(const EVP_MD *dgst, X509_NAME *issuerName,
139 goto err; 139 goto err;
140 } 140 }
141 return cid; 141 return cid;
142
142digerr: 143digerr:
143 OCSPerr(OCSP_F_OCSP_CERT_ID_NEW, OCSP_R_DIGEST_ERR); 144 OCSPerr(OCSP_F_OCSP_CERT_ID_NEW, OCSP_R_DIGEST_ERR);
144err: 145err:
@@ -216,7 +217,7 @@ OCSP_parse_url(char *url, char **phost, char **pport, char **ppath, int *pssl)
216 217
217 /* Check for trailing part of path */ 218 /* Check for trailing part of path */
218 p = strchr(p, '/'); 219 p = strchr(p, '/');
219 if (!p) 220 if (!p)
220 *ppath = BUF_strdup("/"); 221 *ppath = BUF_strdup("/");
221 else { 222 else {
222 *ppath = BUF_strdup(p); 223 *ppath = BUF_strdup(p);