Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps/ca.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-10-23 17:14:10 +0400
committerBodo Möller <bodo@openssl.org>2002-10-23 17:14:10 +0400
commit27f08d6d4819b80196e9b5bff082a5fc1e68451d (patch)
treefeba4a93a0c73eb5ee781100d273c886f8bdaafe /apps/ca.c
parenta9e0953900da7dfb79db3b41a79ad99ac4f24738 (diff)
fix warnings, and harmonize indentation
Diffstat (limited to 'apps/ca.c')
-rw-r--r--apps/ca.c32
1 files changed, 18 insertions, 14 deletions
diff --git a/apps/ca.c b/apps/ca.c
index 05a1e7c1e9..32fcae833b 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -3053,55 +3053,59 @@ X509_NAME *do_subject(char *subject, long chtype)
sp++; /* skip leading / */
while (*sp)
- {
+ {
/* collect type */
ne_types[ne_num] = bp;
while (*sp)
- {
+ {
if (*sp == '\\') /* is there anything to escape in the type...? */
+ {
if (*++sp)
*bp++ = *sp++;
else
- {
+ {
BIO_printf(bio_err, "escape character at end of string\n");
goto error;
+ }
}
else if (*sp == '=')
- {
+ {
sp++;
*bp++ = '\0';
break;
- }
+ }
else
*bp++ = *sp++;
- }
+ }
if (!*sp)
- {
+ {
BIO_printf(bio_err, "end of string encountered while processing type of subject name element #%d\n", ne_num);
goto error;
- }
+ }
ne_values[ne_num] = bp;
while (*sp)
- {
+ {
if (*sp == '\\')
+ {
if (*++sp)
*bp++ = *sp++;
else
- {
+ {
BIO_printf(bio_err, "escape character at end of string\n");
goto error;
+ }
}
else if (*sp == '/')
- {
+ {
sp++;
break;
- }
+ }
else
*bp++ = *sp++;
- }
+ }
*bp++ = '\0';
ne_num++;
- }
+ }
if (!(n = X509_NAME_new()))
goto error;