diff options
| author | tb <> | 2021-12-25 23:35:25 +0000 |
|---|---|---|
| committer | tb <> | 2021-12-25 23:35:25 +0000 |
| commit | ca0dbd1df183dd0f2281ea9987b2a94316d32050 (patch) | |
| tree | 5152761cbab981aa9dc28cd7f558e919f1ae5a2b /src | |
| parent | d94589eb0190e1aba72a9fa874671e7c418b4cf1 (diff) | |
| download | openbsd-ca0dbd1df183dd0f2281ea9987b2a94316d32050.tar.gz openbsd-ca0dbd1df183dd0f2281ea9987b2a94316d32050.tar.bz2 openbsd-ca0dbd1df183dd0f2281ea9987b2a94316d32050.zip | |
Fix some weird line wrapping and a minor KNF nit
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_addr.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/lib/libcrypto/x509/x509_addr.c b/src/lib/libcrypto/x509/x509_addr.c index 8c35cf6e8a..bb2e9e5867 100644 --- a/src/lib/libcrypto/x509/x509_addr.c +++ b/src/lib/libcrypto/x509/x509_addr.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_addr.c,v 1.27 2021/12/25 15:43:13 tb Exp $ */ | 1 | /* $OpenBSD: x509_addr.c,v 1.28 2021/12/25 23:35:25 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Contributed to the OpenSSL Project by the American Registry for | 3 | * Contributed to the OpenSSL Project by the American Registry for |
| 4 | * Internet Numbers ("ARIN"). | 4 | * Internet Numbers ("ARIN"). |
| @@ -508,10 +508,8 @@ i2r_IPAddrBlocks(const X509V3_EXT_METHOD *method, void *ext, BIO *out, | |||
| 508 | break; | 508 | break; |
| 509 | case IPAddressChoice_addressesOrRanges: | 509 | case IPAddressChoice_addressesOrRanges: |
| 510 | BIO_puts(out, ":\n"); | 510 | BIO_puts(out, ":\n"); |
| 511 | if (!i2r_IPAddressOrRanges(out, | 511 | if (!i2r_IPAddressOrRanges(out, indent + 2, |
| 512 | indent + 2, | 512 | f->ipAddressChoice->u.addressesOrRanges, afi)) |
| 513 | f->ipAddressChoice-> | ||
| 514 | u.addressesOrRanges, afi)) | ||
| 515 | return 0; | 513 | return 0; |
| 516 | break; | 514 | break; |
| 517 | } | 515 | } |
| @@ -834,12 +832,10 @@ make_prefix_or_range(IPAddrBlocks *addr, const unsigned afi, | |||
| 834 | return NULL; | 832 | return NULL; |
| 835 | switch (afi) { | 833 | switch (afi) { |
| 836 | case IANA_AFI_IPV4: | 834 | case IANA_AFI_IPV4: |
| 837 | (void)sk_IPAddressOrRange_set_cmp_func(aors, | 835 | sk_IPAddressOrRange_set_cmp_func(aors, v4IPAddressOrRange_cmp); |
| 838 | v4IPAddressOrRange_cmp); | ||
| 839 | break; | 836 | break; |
| 840 | case IANA_AFI_IPV6: | 837 | case IANA_AFI_IPV6: |
| 841 | (void)sk_IPAddressOrRange_set_cmp_func(aors, | 838 | sk_IPAddressOrRange_set_cmp_func(aors, v6IPAddressOrRange_cmp); |
| 842 | v6IPAddressOrRange_cmp); | ||
| 843 | break; | 839 | break; |
| 844 | } | 840 | } |
| 845 | f->ipAddressChoice->type = IPAddressChoice_addressesOrRanges; | 841 | f->ipAddressChoice->type = IPAddressChoice_addressesOrRanges; |
| @@ -1492,7 +1488,7 @@ X509v3_addr_subset(IPAddrBlocks *a, IPAddrBlocks *b) | |||
| 1492 | * X509_V_OK. | 1488 | * X509_V_OK. |
| 1493 | */ | 1489 | */ |
| 1494 | static int | 1490 | static int |
| 1495 | addr_validate_path_internal(X509_STORE_CTX *ctx, STACK_OF(X509)*chain, | 1491 | addr_validate_path_internal(X509_STORE_CTX *ctx, STACK_OF(X509) *chain, |
| 1496 | IPAddrBlocks *ext) | 1492 | IPAddrBlocks *ext) |
| 1497 | { | 1493 | { |
| 1498 | IPAddrBlocks *child = NULL; | 1494 | IPAddrBlocks *child = NULL; |
