diff options
-rw-r--r-- | rcynic/rcynic.c | 2 | ||||
-rw-r--r-- | utils/find_roa/find_roa.c | 2 | ||||
-rw-r--r-- | utils/print_roa/print_roa.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/rcynic/rcynic.c b/rcynic/rcynic.c index 966e8b69..ed9a4d1b 100644 --- a/rcynic/rcynic.c +++ b/rcynic/rcynic.c @@ -399,7 +399,7 @@ DECLARE_STACK_OF(ROAIPAddress) ASN1_SEQUENCE(ROAIPAddress) = { ASN1_SIMPLE(ROAIPAddress, IPAddress, ASN1_BIT_STRING), - ASN1_EXP_OPT(ROAIPAddress, maxLength, ASN1_INTEGER, 0) + ASN1_OPT(ROAIPAddress, maxLength, ASN1_INTEGER) } ASN1_SEQUENCE_END(ROAIPAddress) typedef struct ROAIPAddressFamily_st { diff --git a/utils/find_roa/find_roa.c b/utils/find_roa/find_roa.c index 90c6167d..3e1b488c 100644 --- a/utils/find_roa/find_roa.c +++ b/utils/find_roa/find_roa.c @@ -63,7 +63,7 @@ DECLARE_STACK_OF(ROAIPAddress) ASN1_SEQUENCE(ROAIPAddress) = { ASN1_SIMPLE(ROAIPAddress, IPAddress, ASN1_BIT_STRING), - ASN1_EXP_OPT(ROAIPAddress, maxLength, ASN1_INTEGER, 0) + ASN1_OPT(ROAIPAddress, maxLength, ASN1_INTEGER) } ASN1_SEQUENCE_END(ROAIPAddress) typedef struct ROAIPAddressFamily_st { diff --git a/utils/print_roa/print_roa.c b/utils/print_roa/print_roa.c index de189ee2..42f03c8f 100644 --- a/utils/print_roa/print_roa.c +++ b/utils/print_roa/print_roa.c @@ -64,7 +64,7 @@ DECLARE_STACK_OF(ROAIPAddress) ASN1_SEQUENCE(ROAIPAddress) = { ASN1_SIMPLE(ROAIPAddress, IPAddress, ASN1_BIT_STRING), - ASN1_EXP_OPT(ROAIPAddress, maxLength, ASN1_INTEGER, 0) + ASN1_OPT(ROAIPAddress, maxLength, ASN1_INTEGER) } ASN1_SEQUENCE_END(ROAIPAddress) typedef struct ROAIPAddressFamily_st { @@ -279,7 +279,7 @@ static const ROA *read_roa(const char *filename, const int print_cms, const int } - printf("/%u\n", addr_prefixlen(a->IPAddress)); + printf("/%u", addr_prefixlen(a->IPAddress)); if (a->maxLength) printf("-%ld", ASN1_INTEGER_get(a->maxLength)); |