diff options
| author | tb <> | 2023-12-13 07:19:37 +0000 |
|---|---|---|
| committer | tb <> | 2023-12-13 07:19:37 +0000 |
| commit | 6754a5670621a3f0b1bd0eda9d4f1a191a4cd016 (patch) | |
| tree | 6d5fe010e87f29be6cd4703008f0117edf785d0d /src | |
| parent | b526604c84220e8165b966dbbc996260e8b8b3c8 (diff) | |
| download | openbsd-6754a5670621a3f0b1bd0eda9d4f1a191a4cd016.tar.gz openbsd-6754a5670621a3f0b1bd0eda9d4f1a191a4cd016.tar.bz2 openbsd-6754a5670621a3f0b1bd0eda9d4f1a191a4cd016.zip | |
rfc3779: remove redundant const.
This is already included in the typedef (yuck) and makes some Windows
compilers unhappy.
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/x509/rfc3779/rfc3779.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/regress/lib/libcrypto/x509/rfc3779/rfc3779.c b/src/regress/lib/libcrypto/x509/rfc3779/rfc3779.c index 33808d43e3..1274df7455 100644 --- a/src/regress/lib/libcrypto/x509/rfc3779/rfc3779.c +++ b/src/regress/lib/libcrypto/x509/rfc3779/rfc3779.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rfc3779.c,v 1.9 2023/04/20 07:39:17 tb Exp $ */ | 1 | /* $OpenBSD: rfc3779.c,v 1.10 2023/12/13 07:19:37 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2021 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2021 Theo Buehler <tb@openbsd.org> |
| 4 | * | 4 | * |
| @@ -361,10 +361,10 @@ IPAddrBlocks_free(IPAddrBlocks *addr) | |||
| 361 | * extensions on each call. | 361 | * extensions on each call. |
| 362 | */ | 362 | */ |
| 363 | 363 | ||
| 364 | static const ASN1_ITEM_EXP * | 364 | static ASN1_ITEM_EXP * |
| 365 | get_IPAddrBlocks_it(void) | 365 | get_IPAddrBlocks_it(void) |
| 366 | { | 366 | { |
| 367 | static const ASN1_ITEM_EXP *my_IPAddrBlocks_it; | 367 | static ASN1_ITEM_EXP *my_IPAddrBlocks_it; |
| 368 | const X509V3_EXT_METHOD *v3_addr; | 368 | const X509V3_EXT_METHOD *v3_addr; |
| 369 | 369 | ||
| 370 | if (my_IPAddrBlocks_it != NULL) | 370 | if (my_IPAddrBlocks_it != NULL) |
| @@ -383,7 +383,7 @@ get_IPAddrBlocks_it(void) | |||
| 383 | static IPAddrBlocks * | 383 | static IPAddrBlocks * |
| 384 | d2i_IPAddrBlocks(IPAddrBlocks **addrs, const unsigned char **in, long len) | 384 | d2i_IPAddrBlocks(IPAddrBlocks **addrs, const unsigned char **in, long len) |
| 385 | { | 385 | { |
| 386 | const ASN1_ITEM_EXP *my_IPAddrBlocks_it; | 386 | ASN1_ITEM_EXP *my_IPAddrBlocks_it; |
| 387 | 387 | ||
| 388 | if ((my_IPAddrBlocks_it = get_IPAddrBlocks_it()) == NULL) | 388 | if ((my_IPAddrBlocks_it = get_IPAddrBlocks_it()) == NULL) |
| 389 | return NULL; | 389 | return NULL; |
| @@ -395,7 +395,7 @@ d2i_IPAddrBlocks(IPAddrBlocks **addrs, const unsigned char **in, long len) | |||
| 395 | static int | 395 | static int |
| 396 | i2d_IPAddrBlocks(IPAddrBlocks *addrs, unsigned char **out) | 396 | i2d_IPAddrBlocks(IPAddrBlocks *addrs, unsigned char **out) |
| 397 | { | 397 | { |
| 398 | const ASN1_ITEM_EXP *my_IPAddrBlocks_it; | 398 | ASN1_ITEM_EXP *my_IPAddrBlocks_it; |
| 399 | 399 | ||
| 400 | if ((my_IPAddrBlocks_it = get_IPAddrBlocks_it()) == NULL) | 400 | if ((my_IPAddrBlocks_it = get_IPAddrBlocks_it()) == NULL) |
| 401 | return -1; | 401 | return -1; |
