aboutsummaryrefslogtreecommitdiff
path: root/utils/print_roa/print_roa.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2008-07-08 07:24:29 +0000
committerRob Austein <sra@hactrn.net>2008-07-08 07:24:29 +0000
commitc2996a1ae1446670c9a3b7335c30c2d1b585d59c (patch)
treed373ab757950909de02ab176d3c76413f18b6d16 /utils/print_roa/print_roa.c
parent6b8ec3e9d28aef5024b6d9b3d066048044016aae (diff)
Get ASN.1 template right for ROA maxLength field
svn path=/rcynic/rcynic.c; revision=1980
Diffstat (limited to 'utils/print_roa/print_roa.c')
-rw-r--r--utils/print_roa/print_roa.c4
1 files changed, 2 insertions, 2 deletions
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));