summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-04-17 10:17:57 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-04-17 10:17:57 +0000
commit4e4b778d491cf08ef9571ed759549d030d2703d4 (patch)
tree929cc5bc318ef78cf2c8ab563605ca836bc80b66
parent915e3333ad8d3d780820552a29195cfbb3d33c30 (diff)
minimal fix for ', ' issue in jsing's indent script
-rw-r--r--lib/libssl/src/apps/ca.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/libssl/src/apps/ca.c b/lib/libssl/src/apps/ca.c
index 7a68552c62e..cf6015b73cc 100644
--- a/lib/libssl/src/apps/ca.c
+++ b/lib/libssl/src/apps/ca.c
@@ -2127,12 +2127,13 @@ certify_spkac(X509 **xret, char *infile, EVP_PKEY *pkey, X509 *x509,
/* Skip past any leading X. X: X, etc to allow for
* multiple instances
*/
- for (buf = cv->name; *buf; buf++)
- if ((*buf == ':') || (*buf == ', ') || (*buf == '.')) {
- buf++;
- if (*buf)
- type = buf;
- break;
+ for (buf = cv->name; *buf; buf++) {
+ if ((*buf == ':') || (*buf == ',') || (*buf == '.')) {
+ buf++;
+ if (*buf)
+ type = buf;
+ break;
+ }
}
buf = cv->value;
@@ -2667,7 +2668,7 @@ unpack_revinfo(ASN1_TIME **prevtm, int *preason, ASN1_OBJECT **phold,
ASN1_GENERALIZEDTIME *comp_time = NULL;
tmp = BUF_strdup(str);
- p = strchr(tmp, ', ');
+ p = strchr(tmp, ',');
rtime_str = tmp;
@@ -2675,7 +2676,7 @@ unpack_revinfo(ASN1_TIME **prevtm, int *preason, ASN1_OBJECT **phold,
*p = '\0';
p++;
reason_str = p;
- p = strchr(p, ', ');
+ p = strchr(p, ',');
if (p) {
*p = '\0';
arg_str = p + 1;