Add regress for geofeed
authorjob <job@openbsd.org>
Sat, 26 Nov 2022 12:09:34 +0000 (12:09 +0000)
committerjob <job@openbsd.org>
Sat, 26 Nov 2022 12:09:34 +0000 (12:09 +0000)
regress/usr.sbin/rpki-client/Makefile.inc
regress/usr.sbin/rpki-client/geofeed/geofeed-rfc9092.csv [new file with mode: 0644]
regress/usr.sbin/rpki-client/geofeed/geofeed.csv [new file with mode: 0644]
regress/usr.sbin/rpki-client/openssl11/Makefile

index 9a690df..efa3433 100644 (file)
@@ -1,10 +1,11 @@
-# $OpenBSD: Makefile.inc,v 1.26 2022/11/02 12:56:38 job Exp $
+# $OpenBSD: Makefile.inc,v 1.27 2022/11/26 12:09:34 job Exp $
 
 .PATH:         ${.CURDIR}/../../../../usr.sbin/rpki-client
 
 PROGS += test-ip
 PROGS += test-cert
 PROGS += test-gbr
+PROGS += test-geofeed
 PROGS += test-mft
 PROGS += test-roa
 PROGS += test-rsc
@@ -56,6 +57,11 @@ SRCS_test-gbr+=      test-gbr.c gbr.c cms.c x509.c ip.c io.c log.c \
 run-regress-test-gbr: test-gbr
        ./test-gbr -v ${.CURDIR}/../gbr/*.gbr
 
+SRCS_test-geofeed+=    test-geofeed.c geofeed.c cms.c x509.c ip.c io.c log.c \
+               encoding.c print.c validate.c as.c cert.c mft.c
+run-regress-test-geofeed: test-geofeed
+       ./test-geofeed -v ${.CURDIR}/../geofeed/*.csv
+
 SRCS_test-tal+=        test-tal.c tal.c ip.c io.c log.c validate.c \
                encoding.c print.c dummy.c x509.c
 run-regress-test-tal: test-tal
diff --git a/regress/usr.sbin/rpki-client/geofeed/geofeed-rfc9092.csv b/regress/usr.sbin/rpki-client/geofeed/geofeed-rfc9092.csv
new file mode 100644 (file)
index 0000000..4e31e2e
--- /dev/null
@@ -0,0 +1,39 @@
+192.0.2.0/24,US,WA,Seattle,\r
+# RPKI Signature: 192.0.2.0 - 192.0.2.255\r
+# MIIGjwYJKoZIhvcNAQcCoIIGgDCCBnwCAQMxDTALBgl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+# o84q5pf9pTQXx3hbsm51ilpOip/TKVMqzE42s6OPox3M0+6eKH3/vBKnw1s1ayM\r
+# 0MUnPDTBfZL3JJEGPWfIZHEcrypevbqR7Jjsz5vp0qyF2D9v+w+nyhZOPmuePm7\r
+# YqLyOw/E99PVBs9uI+hmBiCz/BK2Z3VRjrrlrUU+49eldSTkZ2sJyhCbbV2Ufgi\r
+# S2FOquAgJzjilyN3BDQLV8Rp9cGh0PpVslKH2na\r
+# End Signature: 192.0.2.0 - 192.0.2.255\r
diff --git a/regress/usr.sbin/rpki-client/geofeed/geofeed.csv b/regress/usr.sbin/rpki-client/geofeed/geofeed.csv
new file mode 100644 (file)
index 0000000..85df4f2
--- /dev/null
@@ -0,0 +1,36 @@
+2001:67c:208c::/48,NL,NL-NH,Amsterdam,\r
+# RPKI Signature: 2001:67c:208c::/48\r
+# MIIGBQYJKoZIhvcNAQcCoIIF9jCCBfICAQMxDTALBglghkgBZQMEAgEwDQYLKoZI\r
+# hvcNAQkQAS+gggQfMIIEGzCCAwOgAwIBAgIBBjANBgkqhkiG9w0BAQsFADAzMTEw\r
+# LwYDVQQDEyhjYWE4MDVkYmFjMzY0NzQ5YjliMTE1NTkwYWI2ZWYwZjk3MGNkYmQ4\r
+# MB4XDTIyMTEyNTE2MzQ1MloXDTIzMTEyNTE2MzQ1MlowDTELMAkGA1UEAwwCRUUw\r
+# ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDgZwc2RJ+SHPC7F5YCwgGw\r
+# k8vrLmdqiWBSjFGsXAPBaT6tfApYOn9yBu8d220TjjxDcA2phJBWWo+XqJhXHTDP\r
+# VmU6I6AakU3GTWAK/eGg1B3RykAlHgbJqMu5xC3WzrF8SEy+tWGZ1A7RjNi+RLfE\r
+# y2bnoLMp0mqHFfeB02oYJYdTxD4H5tCPnElSf5VumQDXYgtjjI68tTvCNn+7/GWp\r
+# qzFiFWFKJkJC/3ME3K98oPOB+9dvkKrY8t6ulE7n3N7ov3oxn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YIZIAWUDBAIBoGswGgYJKoZIhvcNAQkDMQ0GCyqGSIb3DQEJEAEvMBwGCSqGSIb3\r
+# DQEJBTEPFw0yMjExMjUxNjM0NTVaMC8GCSqGSIb3DQEJBDEiBCCY9XhRYzvj+pM/\r
+# b0lZoc+ZapOfmX5IuOFoPcym0ogh6DANBgkqhkiG9w0BAQEFAASCAQBBXMygxOhJ\r
+# 3vNbzXAhO1V+SOufTEaQFI7yQgCdcejOGGz+KtuDuYJ6ztRE1zxozZohIfiSNi3F\r
+# P16CGIYenhriv/+cz99XEMO5lkDf4HshcNrQ7dK0Lpjizl7jAvSwBgAefBB5SSvl\r
+# FscUsZtU4z45O1JmgQjBWxOej/7RE3dUsUUWuty+iv8rd/fhq7oJOyCyg8OIbJry\r
+# PCp+TEPKOfBRjhoHrVKvh/NZ+MdWOHK1DqvIt9w7usbgbV8oykLiR3bWSnPsDScA\r
+# dtA7GD/yDwqWgpSZsYyMK5axs/96/Np6S3sl3qwF197RLQk1l9Vw6O87cwupUYqY\r
+# IH26+87V6d29\r
+# End Signature: 2001:67c:208c::/48\r
index 0888d93..1eff1fd 100644 (file)
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.15 2022/11/08 13:01:53 tb Exp $
+# $OpenBSD: Makefile,v 1.16 2022/11/26 12:09:34 job Exp $
 
 LDADD +=       -Wl,-rpath,/usr/local/lib/eopenssl11 -L/usr/local/lib/eopenssl11
 CFLAGS +=      -I${.CURDIR}/ -I/usr/local/include/eopenssl11/
@@ -24,6 +24,7 @@ SRCS_test-mft =               ${LIBCRYPTO_COMPAT}
 SRCS_test-roa =                ${LIBCRYPTO_COMPAT}
 SRCS_test-cert =       ${LIBCRYPTO_COMPAT}
 SRCS_test-gbr =                ${LIBCRYPTO_COMPAT}
+SRCS_test-geofeed=     ${LIBCRYPTO_COMPAT}
 SRCS_test-tal =                ${LIBCRYPTO_COMPAT}
 SRCS_test-bgpsec =     ${LIBCRYPTO_COMPAT}
 SRCS_test-rrdp =       ${LIBCRYPTO_COMPAT}