From: Alberto Leiva Popper Date: Wed, 13 Feb 2019 23:13:00 +0000 (-0600) Subject: Bugfix: policy was not being initialized X-Git-Tag: v0.0.2~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97f066388517c6124f1084495db854ed94e31a8a;p=thirdparty%2FFORT-validator.git Bugfix: policy was not being initialized --- diff --git a/deconf.sh b/deconf.sh index 6b3dba9e..5bfc806f 100755 --- a/deconf.sh +++ b/deconf.sh @@ -1,13 +1,6 @@ -make distclean -rm -frv \ - Makefile.in \ - aclocal.m4 \ - autom4te.cache \ - compile \ - configure \ - depcomp \ - install-sh \ - missing \ - man/Makefile.in \ - src/Makefile.in - +git clean -dfx \ + -e .cproject \ + -e .project \ + -e .settings \ + -e .metadata \ + -e Debug/ diff --git a/src/asn1/signed_data.c b/src/asn1/signed_data.c index 1a0517b8..4d0b7f06 100644 --- a/src/asn1/signed_data.c +++ b/src/asn1/signed_data.c @@ -376,6 +376,10 @@ validate(struct SignedData *sdata, struct signed_object_args *args) * > encountered. * * So, nothing to do for now. + * + * TODO "In the certificate, the OID appears in the signature and + * signatureAlgorithm fields [RFC4055]." So it has to be the same as + * some other field? */ /* rfc6488#section-2.1.6.6 */ diff --git a/src/object/certificate.c b/src/object/certificate.c index 461457cb..4d4fe435 100644 --- a/src/object/certificate.c +++ b/src/object/certificate.c @@ -1081,7 +1081,7 @@ certificate_validate_extensions_ta(X509 *cert, struct rpki_uri *mft, { ext_aki(), false, handle_aki_ta, cert }, { ext_ku(), true, handle_ku_ca, }, { ext_sia(), true, handle_sia_ca, mft }, - { ext_cp(), true, handle_cp, }, + { ext_cp(), true, handle_cp, policy }, { ext_ir(), false, handle_ir, }, { ext_ar(), false, handle_ar, }, { ext_ir2(), false, handle_ir, }, @@ -1105,7 +1105,7 @@ certificate_validate_extensions_ca(X509 *cert, struct rpki_uri *mft, { ext_cdp(), true, handle_cdp, refs }, { ext_aia(), true, handle_aia, refs }, { ext_sia(), true, handle_sia_ca, mft }, - { ext_cp(), true, handle_cp, }, + { ext_cp(), true, handle_cp, policy }, { ext_ir(), false, handle_ir, }, { ext_ar(), false, handle_ar, }, { ext_ir2(), false, handle_ir, },