# Files we're sorta contractually obligated to exclude.
# Can't include ARIN's TAL because of their Relying Party Agreement
# (https://www.arin.net/resources/manage/rpki/tal/)
-tal/arin.tal
+examples/tal/arin.tal
+examples/tal/arin-rfc7730.tal
# Unwanted manure shat by imbecile OSs
.DS_Store*
#include "common.h"
#include "config.h"
#include "log.h"
+#include "incidence/incidence.h"
#define COND_LOG(log, pr) (log ? pr : -EINVAL)
return 0;
}
+/*
+ * FIXME (next iteration) This isn't efficient, consider implement DER decoding
+ * or something better.
+ */
static int
validate_der(size_t ber_consumed, asn_TYPE_descriptor_t const *descriptor,
const void *original, void *result)
rval.code, rval.consumed));
}
- /* Validate DER encoding */
- if (dec_as_der) {
+ /* Validate DER encoding, only if wanted and incidence isn't ignored */
+ if (dec_as_der &&
+ incidence_get_action(INID_OBJ_NOT_DER) != INAC_IGNORE) {
error = validate_der(rval.consumed, descriptor, buffer,
*result);
if (error) {