NICMx / FORT-validator

RPKI cache validator
MIT License
47 stars 23 forks source link

LibreSSL has some NIDs #48

Closed job closed 3 years ago

job commented 3 years ago

There seems to be a clash, possibly related to https://github.com/openbsd/src/commit/8d85952c766295619ff208c0b0ea6f20ee45c643#diff-d64bddeabb929c29c96fb6e422d4f623b3ea8bd4e1ac006706c3f658252075d3

vurt$ make
Making all in src
make  all-am
clang -DHAVE_CONFIG_H -I.    -Wall -Wno-cpp -std=gnu11 -O2 -g   -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -MT fort-nid.o -MD -MP -MF .deps/fort-nid.Tpo -c -o fort-nid.o `test -f 'nid.c' || echo './'`nid.c
nid.c:8:12: error: expected identifier or '('
static int NID_rpkiManifest;
           ^
/usr/include/openssl/obj_mac.h:1908:27: note: expanded from macro 'NID_rpkiManifest'
#define NID_rpkiManifest                1010
                                        ^
nid.c:9:12: error: expected identifier or '('
static int NID_signedObject;
           ^
/usr/include/openssl/obj_mac.h:1913:27: note: expanded from macro 'NID_signedObject'
#define NID_signedObject                1011
                                        ^
nid.c:10:12: error: expected identifier or '('
static int NID_rpkiNotify;
           ^
/usr/include/openssl/obj_mac.h:1918:25: note: expanded from macro 'NID_rpkiNotify'
#define NID_rpkiNotify          1012
                                ^
nid.c:37:19: error: expression is not assignable
        NID_rpkiManifest = register_oid("1.3.6.1.5.5.7.48.10",
        ~~~~~~~~~~~~~~~~ ^
nid.c:43:19: error: expression is not assignable
        NID_signedObject = register_oid("1.3.6.1.5.5.7.48.11",
        ~~~~~~~~~~~~~~~~ ^
nid.c:49:17: error: expression is not assignable
        NID_rpkiNotify = register_oid("1.3.6.1.5.5.7.48.13",
        ~~~~~~~~~~~~~~ ^
6 errors generated.
*** Error 1 in src (Makefile:1914 'fort-nid.o')
*** Error 2 in src (Makefile:860 'all')
*** Error 1 in /home/job/source/FORT-validator (Makefile:389 'all-recursive': @fail=;  if (target_option=k; case ${target_option-} in  ?) ;;...)
job commented 3 years ago
vurt$ sysctl kern.version
kern.version=OpenBSD 6.9-beta (GENERIC.MP) #344: Fri Feb 19 10:01:51 MST 2021
    deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
ydahhrk commented 3 years ago

New commit works for me.

Can you test it?

job commented 3 years ago

works for me!