diff options
| author | jsg <> | 2025-06-02 12:18:22 +0000 |
|---|---|---|
| committer | jsg <> | 2025-06-02 12:18:22 +0000 |
| commit | 0a9ae15841c7f994ec48b5317b89dbfe586ddcc7 (patch) | |
| tree | ce9d0de641519c3a435112363e783cc094829596 /src/lib/libcrypto/x509 | |
| parent | 660732fe44b595572e8605f5855d894ff2fa2a04 (diff) | |
| download | openbsd-0a9ae15841c7f994ec48b5317b89dbfe586ddcc7.tar.gz openbsd-0a9ae15841c7f994ec48b5317b89dbfe586ddcc7.tar.bz2 openbsd-0a9ae15841c7f994ec48b5317b89dbfe586ddcc7.zip | |
correct indentation, no functional change
found with smatch, ok tb@
Diffstat (limited to 'src/lib/libcrypto/x509')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_conf.c | 7 | ||||
| -rw-r--r-- | src/lib/libcrypto/x509/x509_prn.c | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/lib/libcrypto/x509/x509_conf.c b/src/lib/libcrypto/x509/x509_conf.c index 19f771c466..2089f72bc7 100644 --- a/src/lib/libcrypto/x509/x509_conf.c +++ b/src/lib/libcrypto/x509/x509_conf.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_conf.c,v 1.30 2025/05/10 05:54:39 tb Exp $ */ | 1 | /* $OpenBSD: x509_conf.c,v 1.31 2025/06/02 12:18:21 jsg Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 1999. | 3 | * project 1999. |
| 4 | */ | 4 | */ |
| @@ -242,8 +242,9 @@ v3_check_critical(const char **value) | |||
| 242 | if ((strlen(p) < 9) || strncmp(p, "critical,", 9)) | 242 | if ((strlen(p) < 9) || strncmp(p, "critical,", 9)) |
| 243 | return 0; | 243 | return 0; |
| 244 | p += 9; | 244 | p += 9; |
| 245 | while (isspace((unsigned char)*p)) p++; | 245 | while (isspace((unsigned char)*p)) |
| 246 | *value = p; | 246 | p++; |
| 247 | *value = p; | ||
| 247 | return 1; | 248 | return 1; |
| 248 | } | 249 | } |
| 249 | 250 | ||
diff --git a/src/lib/libcrypto/x509/x509_prn.c b/src/lib/libcrypto/x509/x509_prn.c index 3bf7c803e5..23c649a7b9 100644 --- a/src/lib/libcrypto/x509/x509_prn.c +++ b/src/lib/libcrypto/x509/x509_prn.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_prn.c,v 1.6 2023/05/08 05:30:38 tb Exp $ */ | 1 | /* $OpenBSD: x509_prn.c,v 1.7 2025/06/02 12:18:22 jsg Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 1999. | 3 | * project 1999. |
| 4 | */ | 4 | */ |
| @@ -87,8 +87,9 @@ X509V3_EXT_val_prn(BIO *out, STACK_OF(CONF_VALUE) *val, int indent, int ml) | |||
| 87 | for (i = 0; i < sk_CONF_VALUE_num(val); i++) { | 87 | for (i = 0; i < sk_CONF_VALUE_num(val); i++) { |
| 88 | if (ml) | 88 | if (ml) |
| 89 | BIO_printf(out, "%*s", indent, ""); | 89 | BIO_printf(out, "%*s", indent, ""); |
| 90 | else if (i > 0) BIO_printf(out, ", "); | 90 | else if (i > 0) |
| 91 | nval = sk_CONF_VALUE_value(val, i); | 91 | BIO_printf(out, ", "); |
| 92 | nval = sk_CONF_VALUE_value(val, i); | ||
| 92 | if (!nval->name) | 93 | if (!nval->name) |
| 93 | BIO_puts(out, nval->value); | 94 | BIO_puts(out, nval->value); |
| 94 | else if (!nval->value) | 95 | else if (!nval->value) |
