#include <openssl/x509.h>
#include "asn1/asn1c/AlgorithmIdentifier.h"
-#include "asn1/asn1c/OBJECT_IDENTIFIER.h"
/**
* This file is an implementation of RFC 7935 (previously 6485) plus RFC 8608
#define ASN_TYPE_ANY_H
#include "asn1/asn1c/OCTET_STRING.h"
-#include "asn1/asn1c/constraints.h"
typedef struct ANY {
uint8_t *buf; /* BER-encoded ANY contents */
#define _ASId_H_
#include "asn1/asn1c/INTEGER.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* ASId */
typedef INTEGER_t ASId_t;
#ifndef _ASIdOrRange_H_
#define _ASIdOrRange_H_
-#include "asn1/asn1c/ASId.h"
#include "asn1/asn1c/ASRange.h"
#include "asn1/asn1c/constr_CHOICE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* Dependencies */
typedef enum ASIdOrRange_PR {
#include "asn1/asn1c/ASIdentifierChoice.h"
+#include "asn1/asn1c/constr_SEQUENCE_OF.h"
+
static asn_TYPE_member_t asn_MBR_asIdsOrRanges_3[] = {
{ ATF_POINTER, 0, 0,
-1 /* Ambiguous tag (CHOICE?) */,
#include "asn1/asn1c/ASIdOrRange.h"
#include "asn1/asn1c/NULL.h"
#include "asn1/asn1c/asn_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_CHOICE.h"
-#include "asn1/asn1c/constr_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* Dependencies */
typedef enum ASIdentifierChoice_PR {
ASIdentifierChoice_PR_asIdsOrRanges
} ASIdentifierChoice_PR;
-/* Forward declarations */
-struct ASIdOrRange;
-
/* ASIdentifierChoice */
typedef struct ASIdentifierChoice {
ASIdentifierChoice_PR present;
#define _ASIdentifiers_H_
#include "asn1/asn1c/ASIdentifierChoice.h"
-#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
-
-/* Forward declarations */
-struct ASIdentifierChoice;
/* ASIdentifiers */
typedef struct ASIdentifiers {
#include "asn1/asn1c/ASId.h"
#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* ASRange */
typedef struct ASRange {
#include "asn1/asn1c/ANY.h"
#include "asn1/asn1c/OBJECT_IDENTIFIER.h"
#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* AlgorithmIdentifier */
typedef struct AlgorithmIdentifier {
#define _AttributeType_H_
#include "asn1/asn1c/OBJECT_IDENTIFIER.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* AttributeType */
typedef OBJECT_IDENTIFIER_t AttributeType_t;
#include "asn1/asn1c/AttributeType.h"
#include "asn1/asn1c/AttributeValue.h"
#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* AttributeTypeAndValue */
typedef struct AttributeTypeAndValue {
#define _AttributeValue_H_
#include "asn1/asn1c/ANY.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* AttributeValue */
typedef ANY_t AttributeValue_t;
*/
#include "asn1/asn1c/BOOLEAN.h"
-#include "asn1/asn1c/asn_codecs_prim.h"
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/ber_decoder.h"
-#include "asn1/asn1c/constraints.h"
#include "asn1/asn1c/der_encoder.h"
/*
#ifndef _BOOLEAN_H_
#define _BOOLEAN_H_
-#include "asn1/asn1c/constr_TYPE.h"
+#include "asn1/asn1c/constraints.h"
/*
* The underlying integer may contain various values, but everything
#define _BinarySigningTime_H_
#include "asn1/asn1c/BinaryTime.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* BinarySigningTime */
typedef BinaryTime_t BinarySigningTime_t;
#define _BinaryTime_H_
#include "asn1/asn1c/INTEGER.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* BinaryTime */
typedef INTEGER_t BinaryTime_t;
#include "asn1/asn1c/ContentType.h"
#include "asn1/asn1c/MessageDigest.h"
#include "asn1/asn1c/SigningTime.h"
+#include "asn1/asn1c/constr_SET_OF.h"
#include "json_util.h"
static json_t *
#include "asn1/asn1c/OBJECT_IDENTIFIER.h"
#include "asn1/asn1c/asn_SET_OF.h"
#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_SET_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* CMSAttribute */
typedef struct CMSAttribute {
#define _CMSAttributeValue_H_
#include "asn1/asn1c/ANY.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* CMSAttributeValue */
typedef ANY_t CMSAttributeValue_t;
#define _CMSSubjectKeyIdentifier_H_
#include "asn1/asn1c/OCTET_STRING.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* CMSSubjectKeyIdentifier */
typedef OCTET_STRING_t CMSSubjectKeyIdentifier_t;
#define _CMSVersion_H_
#include "asn1/asn1c/INTEGER.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* Dependencies */
typedef enum CMSVersion {
#include <openssl/objects.h>
-#include "extension.h"
#include "json_util.h"
#include "libcrypto_util.h"
#include <openssl/objects.h>
-#include "extension.h"
#include "json_util.h"
#include "libcrypto_util.h"
#include "log.h"
#ifndef _CertificateList_H_
#define _CertificateList_H_
-#include "asn1/asn1c/AlgorithmIdentifier.h"
#include "asn1/asn1c/BIT_STRING.h"
#include "asn1/asn1c/TBSCertList.h"
-#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* CertificateList */
typedef struct CertificateList {
#define _CertificateSerialNumber_H_
#include "asn1/asn1c/INTEGER.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* CertificateSerialNumber */
typedef INTEGER_t CertificateSerialNumber_t;
#include "asn1/asn1c/ANY.h"
#include "asn1/asn1c/asn_SET_OF.h"
#include "asn1/asn1c/constr_SET_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* CertificateSet */
typedef struct CertificateSet {
#include "asn1/asn1c/ANY.h"
#include "asn1/asn1c/ContentType.h"
-#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* ContentInfo */
typedef struct ContentInfo {
#define _ContentType_H_
#include "asn1/asn1c/OBJECT_IDENTIFIER.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* ContentType */
typedef OBJECT_IDENTIFIER_t ContentType_t;
#define _ContentTypePKCS7_H_
#include "asn1/asn1c/OCTET_STRING.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* ContentTypePKCS7 */
typedef OCTET_STRING_t ContentTypePKCS7_t;
#define _Countersignature_H_
#include "asn1/asn1c/SignerInfo.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* Countersignature */
typedef SignerInfo_t Countersignature_t;
#define _DigestAlgorithmIdentifier_H_
#include "asn1/asn1c/AlgorithmIdentifier.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* DigestAlgorithmIdentifier */
typedef AlgorithmIdentifier_t DigestAlgorithmIdentifier_t;
#include "asn1/asn1c/DigestAlgorithmIdentifiers.h"
+#include "asn1/asn1c/DigestAlgorithmIdentifier.h"
+
asn_TYPE_member_t asn_MBR_DigestAlgorithmIdentifiers_1[] = {
{ ATF_POINTER, 0, 0,
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
#ifndef _DigestAlgorithmIdentifiers_H_
#define _DigestAlgorithmIdentifiers_H_
-#include "asn1/asn1c/DigestAlgorithmIdentifier.h"
#include "asn1/asn1c/asn_SET_OF.h"
#include "asn1/asn1c/constr_SET_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* Forward declarations */
struct DigestAlgorithmIdentifier;
#include "asn1/asn1c/DistinguishedName.h"
+#include "asn1/asn1c/constr_SEQUENCE_OF.h"
+
/*
* This type is implemented using RDNSequence,
* so here we adjust the DEF accordingly.
#define _DistinguishedName_H_
#include "asn1/asn1c/RDNSequence.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* DistinguishedName */
typedef RDNSequence_t DistinguishedName_t;
#define _EncapsulatedContentInfo_H_
#include "asn1/asn1c/ContentType.h"
-#include "asn1/asn1c/OCTET_STRING.h"
#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* EncapsulatedContentInfo */
typedef struct EncapsulatedContentInfo {
#include "asn1/asn1c/ANY.h"
#include "asn1/asn1c/ContentType.h"
#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* EncapsulatedContentInfoPKCS7 */
typedef struct EncapsulatedContentInfoPKCS7 {
#include "asn1/asn1c/BOOLEAN.h"
#include "asn1/asn1c/OBJECT_IDENTIFIER.h"
-#include "asn1/asn1c/OCTET_STRING.h"
#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* Extension */
typedef struct Extension {
#include "asn1/asn1c/Extensions.h"
+#include "asn1/asn1c/constr_SEQUENCE_OF.h"
+
asn_TYPE_member_t asn_MBR_Extensions_1[] = {
{ ATF_POINTER, 0, 0,
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
#include "asn1/asn1c/Extension.h"
#include "asn1/asn1c/asn_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
-
-/* Forward declarations */
-struct Extension;
+#include "asn1/asn1c/constr_SET_OF.h"
/* Extensions */
typedef struct Extensions {
#include "asn1/asn1c/BIT_STRING.h"
#include "asn1/asn1c/IA5String.h"
#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* FileAndHash */
typedef struct FileAndHash {
#include <assert.h>
#include <errno.h>
-#include "asn1/asn1c/asn_codecs_prim.h"
#include "asn1/asn1c/asn_internal.h"
#include "json_util.h"
#define _INTEGER_H_
#include "asn1/asn1c/asn_codecs_prim.h"
-#include "asn1/asn1c/constr_TYPE.h"
#include "asn1/asn1c/constraints.h"
typedef ASN__PRIMITIVE_TYPE_t INTEGER_t;
#include "asn1/asn1c/IPAddrBlocks.h"
+#include "asn1/asn1c/constr_SEQUENCE_OF.h"
+
static asn_TYPE_member_t asn_MBR_IPAddrBlocks_1[] = {
{ ATF_POINTER, 0, 0,
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
#define _IPAddrBlocks_H_
#include "asn1/asn1c/IPAddressFamily.h"
-#include "asn1/asn1c/asn_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
-
-/* Forward declarations */
-struct IPAddressFamily;
/* IPAddrBlocks */
typedef struct IPAddrBlocks {
#define _IPAddress_H_
#include "asn1/asn1c/BIT_STRING.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* IPAddress */
typedef BIT_STRING_t IPAddress_t;
#include "asn1/asn1c/IPAddressChoice.h"
+#include "asn1/asn1c/constr_SEQUENCE_OF.h"
+
static asn_TYPE_member_t asn_MBR_addressesOrRanges_3[] = {
{ ATF_POINTER, 0, 0,
-1 /* Ambiguous tag (CHOICE?) */,
#include "asn1/asn1c/IPAddressOrRange.h"
#include "asn1/asn1c/NULL.h"
#include "asn1/asn1c/asn_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_CHOICE.h"
-#include "asn1/asn1c/constr_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* Dependencies */
typedef enum IPAddressChoice_PR {
IPAddressChoice_PR_addressesOrRanges
} IPAddressChoice_PR;
-/* Forward declarations */
-struct IPAddressOrRange;
-
/* IPAddressChoice */
typedef struct IPAddressChoice {
IPAddressChoice_PR present;
#define _IPAddressFamily_H_
#include "asn1/asn1c/IPAddressChoice.h"
-#include "asn1/asn1c/OCTET_STRING.h"
-#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* IPAddressFamily */
typedef struct IPAddressFamily {
#ifndef _IPAddressOrRange_H_
#define _IPAddressOrRange_H_
-#include "asn1/asn1c/IPAddress.h"
#include "asn1/asn1c/IPAddressRange.h"
#include "asn1/asn1c/constr_CHOICE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* Dependencies */
typedef enum IPAddressOrRange_PR {
#include "asn1/asn1c/IPAddress.h"
#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* IPAddressRange */
typedef struct IPAddressRange {
#include "asn1/asn1c/CertificateSerialNumber.h"
#include "asn1/asn1c/Name.h"
-#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* IssuerAndSerialNumber */
typedef struct IssuerAndSerialNumber {
#include "asn1/asn1c/Manifest.h"
#include "asn1/asn1c/asn_internal.h"
+#include "asn1/asn1c/constr_SEQUENCE_OF.h"
static int
memb_manifestNumber_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
#include "asn1/asn1c/INTEGER.h"
#include "asn1/asn1c/OBJECT_IDENTIFIER.h"
#include "asn1/asn1c/asn_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
-
-/* Forward declarations */
-struct FileAndHash;
/* Manifest */
typedef struct Manifest {
#define _MessageDigest_H_
#include "asn1/asn1c/OCTET_STRING.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* MessageDigest */
typedef OCTET_STRING_t MessageDigest_t;
*/
#include "asn1/asn1c/NULL.h"
-#include "asn1/asn1c/asn_codecs_prim.h"
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/ber_decoder.h"
-#include "asn1/asn1c/constraints.h"
#include "asn1/asn1c/der_encoder.h"
/*
#ifndef ASN_TYPE_NULL_H
#define ASN_TYPE_NULL_H
-#include "asn1/asn1c/constr_TYPE.h"
+#include "asn1/asn1c/constraints.h"
/*
* The value of the NULL type is meaningless.
#include "asn1/asn1c/RDNSequence.h"
#include "asn1/asn1c/constr_CHOICE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* Dependencies */
typedef enum Name_PR {
#include <openssl/objects.h>
#include "asn1/asn1c/INTEGER.h"
-#include "asn1/asn1c/OCTET_STRING.h"
#include "asn1/asn1c/asn_internal.h"
#include "json_util.h"
#include "asn1/asn1c/OCTET_STRING.h"
#include "asn1/asn1c/asn_codecs_prim.h"
-#include "asn1/asn1c/constr_TYPE.h"
typedef uint32_t asn_oid_arc_t;
#define ASN_OID_ARC_MAX (~((asn_oid_arc_t)0))
#ifndef _OCTET_STRING_H_
#define _OCTET_STRING_H_
-#include "asn1/asn1c/constr_TYPE.h"
#include "asn1/asn1c/constraints.h"
/*
#include "asn1/asn1c/OPEN_TYPE.h"
#include "asn1/asn1c/asn_internal.h"
-#include "asn1/asn1c/constr_CHOICE.h"
asn_TYPE_operation_t asn_OP_OPEN_TYPE = {
OPEN_TYPE_free,
#ifndef ASN_OPEN_TYPE_H
#define ASN_OPEN_TYPE_H
-#include "asn1/asn1c/constr_TYPE.h"
+#include "asn1/asn1c/constr_CHOICE.h"
#define OPEN_TYPE_free CHOICE_free
#define OPEN_TYPE_print CHOICE_print
#include "asn1/asn1c/ANY.h"
#include "asn1/asn1c/OBJECT_IDENTIFIER.h"
#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* OtherRevocationInfoFormat */
typedef struct OtherRevocationInfoFormat {
#include "asn1/asn1c/RDNSequence.h"
+#include "asn1/asn1c/constr_SEQUENCE_OF.h"
+
asn_TYPE_member_t asn_MBR_RDNSequence_1[] = {
{ ATF_POINTER, 0, 0,
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
#include "asn1/asn1c/RelativeDistinguishedName.h"
#include "asn1/asn1c/asn_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
-
-/* Forward declarations */
-struct RelativeDistinguishedName;
/* RDNSequence */
typedef struct RDNSequence {
#include "asn1/asn1c/INTEGER.h"
#include "asn1/asn1c/IPAddress.h"
#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* ROAIPAddress */
typedef struct ROAIPAddress {
#include "asn1/asn1c/ROAIPAddressFamily.h"
+#include "asn1/asn1c/constr_SEQUENCE_OF.h"
#include "json_util.h"
#include "types/address.h"
#ifndef _ROAIPAddressFamily_H_
#define _ROAIPAddressFamily_H_
-#include "asn1/asn1c/OCTET_STRING.h"
#include "asn1/asn1c/ROAIPAddress.h"
#include "asn1/asn1c/asn_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
-
-/* Forward declarations */
-struct ROAIPAddress;
/* ROAIPAddressFamily */
typedef struct ROAIPAddressFamily {
#include "asn1/asn1c/AttributeTypeAndValue.h"
#include "asn1/asn1c/asn_SET_OF.h"
#include "asn1/asn1c/constr_SET_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
-
-/* Forward declarations */
-struct AttributeTypeAndValue;
/* RelativeDistinguishedName */
typedef struct RelativeDistinguishedName {
#include "asn1/asn1c/CertificateList.h"
#include "asn1/asn1c/OtherRevocationInfoFormat.h"
-#include "asn1/asn1c/constr_CHOICE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* Dependencies */
typedef enum RevocationInfoChoice_PR {
#define _RevocationInfoChoices_H_
#include "asn1/asn1c/RevocationInfoChoice.h"
-#include "asn1/asn1c/asn_SET_OF.h"
-#include "asn1/asn1c/constr_SET_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
-
-/* Forward declarations */
-struct RevocationInfoChoice;
/* RevocationInfoChoices */
typedef struct RevocationInfoChoices {
#include "asn1/asn1c/RouteOriginAttestation.h"
#include "asn1/asn1c/asn_internal.h"
+#include "asn1/asn1c/constr_SEQUENCE_OF.h"
static int
memb_ipAddrBlocks_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
#define _RouteOriginAttestation_H_
#include "asn1/asn1c/ASId.h"
-#include "asn1/asn1c/INTEGER.h"
#include "asn1/asn1c/ROAIPAddressFamily.h"
-#include "asn1/asn1c/asn_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
-
-/* Forward declarations */
-struct ROAIPAddressFamily;
/* RouteOriginAttestation */
typedef struct RouteOriginAttestation {
#define _SignatureAlgorithmIdentifier_H_
#include "asn1/asn1c/AlgorithmIdentifier.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* SignatureAlgorithmIdentifier */
typedef AlgorithmIdentifier_t SignatureAlgorithmIdentifier_t;
#define _SignatureValue_H_
#include "asn1/asn1c/OCTET_STRING.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* SignatureValue */
typedef OCTET_STRING_t SignatureValue_t;
#define _SignedAttributes_H_
#include "asn1/asn1c/CMSAttribute.h"
-#include "asn1/asn1c/asn_SET_OF.h"
#include "asn1/asn1c/constr_SET_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
-
-/* Forward declarations */
-struct CMSAttribute;
/* SignedAttributes */
typedef struct SignedAttributes {
#ifndef _SignedData_H_
#define _SignedData_H_
-#include "asn1/asn1c/CMSVersion.h"
#include "asn1/asn1c/CertificateSet.h"
#include "asn1/asn1c/DigestAlgorithmIdentifiers.h"
#include "asn1/asn1c/EncapsulatedContentInfo.h"
#include "asn1/asn1c/RevocationInfoChoices.h"
#include "asn1/asn1c/SignerInfos.h"
-#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
-
-/* Forward declarations */
-struct CertificateSet;
-struct RevocationInfoChoices;
/* SignedData */
typedef struct SignedData {
#ifndef _SignedDataPKCS7_H_
#define _SignedDataPKCS7_H_
-#include "asn1/asn1c/CMSVersion.h"
#include "asn1/asn1c/CertificateSet.h"
#include "asn1/asn1c/DigestAlgorithmIdentifiers.h"
#include "asn1/asn1c/EncapsulatedContentInfoPKCS7.h"
#include "asn1/asn1c/RevocationInfoChoices.h"
#include "asn1/asn1c/SignerInfos.h"
-#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
-
-/* Forward declarations */
-struct CertificateSet;
-struct RevocationInfoChoices;
/* SignedDataPKCS7 */
typedef struct SignedDataPKCS7 {
#include "asn1/asn1c/CMSSubjectKeyIdentifier.h"
#include "asn1/asn1c/IssuerAndSerialNumber.h"
-#include "asn1/asn1c/constr_CHOICE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* Dependencies */
typedef enum SignerIdentifier_PR {
#include "asn1/asn1c/SignedAttributes.h"
#include "asn1/asn1c/SignerIdentifier.h"
#include "asn1/asn1c/UnsignedAttributes.h"
-#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_TYPE.h"
-
-/* Forward declarations */
-struct SignedAttributes;
-struct UnsignedAttributes;
/* SignerInfo */
typedef struct SignerInfo {
#define _SignerInfos_H_
#include "asn1/asn1c/SignerInfo.h"
-#include "asn1/asn1c/asn_SET_OF.h"
-#include "asn1/asn1c/constr_SET_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
-
-/* Forward declarations */
-struct SignerInfo;
/* SignerInfos */
typedef struct SignerInfos {
#define _SigningTime_H_
#include "asn1/asn1c/Time.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* SigningTime */
typedef Time_t SigningTime_t;
#include "asn1/asn1c/TBSCertList.h"
+#include "asn1/asn1c/constr_SEQUENCE_OF.h"
+
static asn_TYPE_member_t asn_MBR_Member_8[] = {
{ ATF_NOFLAGS, 0, offsetof(struct TBSCertList__revokedCertificates__Member, userCertificate),
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
#include "asn1/asn1c/Name.h"
#include "asn1/asn1c/Time.h"
#include "asn1/asn1c/Version.h"
-#include "asn1/asn1c/asn_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_SEQUENCE.h"
-#include "asn1/asn1c/constr_SEQUENCE_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
-
-/* Forward declarations */
-struct Time;
-struct Extensions;
/* Forward definitions */
typedef struct TBSCertList__revokedCertificates__Member {
#include "asn1/asn1c/GeneralizedTime.h"
#include "asn1/asn1c/UTCTime.h"
#include "asn1/asn1c/constr_CHOICE.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* Dependencies */
typedef enum Time_PR {
#define _UnsignedAttributes_H_
#include "asn1/asn1c/CMSAttribute.h"
-#include "asn1/asn1c/asn_SET_OF.h"
#include "asn1/asn1c/constr_SET_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
-
-/* Forward declarations */
-struct CMSAttribute;
/* UnsignedAttributes */
typedef struct UnsignedAttributes {
#define _Version_H_
#include "asn1/asn1c/INTEGER.h"
-#include "asn1/asn1c/constr_TYPE.h"
/* Dependencies */
typedef enum Version {
#include "asn1/asn1c/asn_SEQUENCE_OF.h"
#include <stddef.h>
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
typedef A_SEQUENCE_OF(void) asn_sequence;
#ifndef __EXTENSIONS__
#define __EXTENSIONS__ /* for Sun */
#endif
-#include "asn1/asn1c/constr_TYPE.h"
+#include "asn1/asn1c/asn_codecs.h"
+#include "asn1/asn1c/asn_system.h"
/* Environment version might be used to avoid running with the old library */
#define ASN1C_ENVIRONMENT_VERSION 923 /* Compile-time version */
#ifndef ASN_IOC_H
#define ASN_IOC_H
-#include "asn1/asn1c/asn_system.h"
+#include "asn1/asn1c/constr_TYPE.h"
-struct asn_TYPE_descriptor_s;
struct asn_ioc_cell_s;
/*
#include "asn1/asn1c/constr_TYPE.h"
-struct asn_TYPE_descriptor_s; /* Forward declaration */
-struct asn_codec_ctx_s; /* Forward declaration */
-
/*
* The BER decoder of any type.
* This function may be invoked directly from the application.
* Return the 1-based choice variant presence index.
* Returns 0 in case of error.
*/
-unsigned
+unsigned int
CHOICE_variant_get_presence(const asn_TYPE_descriptor_t *td, const void *sptr) {
const asn_CHOICE_specifics_t *specs =
(const asn_CHOICE_specifics_t *)td->specifics;
* Return the 1-based choice variant presence index.
* Returns 0 in case of error.
*/
-unsigned CHOICE_variant_get_presence(const asn_TYPE_descriptor_t *td,
+unsigned int CHOICE_variant_get_presence(const asn_TYPE_descriptor_t *td,
const void *structure_ptr);
/*
#define _CONSTR_SEQUENCE_OF_H_
#include "asn1/asn1c/constr_SET_OF.h"
-#include "asn1/asn1c/constr_TYPE.h"
/*
* A set specialized functions dealing with the SEQUENCE OF type.
#include "asn1/asn1c/ber_tlv_length.h"
#include "asn1/asn1c/ber_tlv_tag.h"
-struct asn_TYPE_descriptor_s; /* Forward declaration */
struct asn_TYPE_member_s; /* Forward declaration */
/*
#ifndef ASN1_CONSTRAINTS_VALIDATOR_H
#define ASN1_CONSTRAINTS_VALIDATOR_H
-#include "asn1/asn1c/asn_system.h"
#include "asn1/asn1c/constr_TYPE.h"
-struct asn_TYPE_descriptor_s; /* Forward declaration */
-
/*
* Validate the structure according to the ASN.1 constraints.
* If errbuf and errlen are given, they shall be pointing to the appropriate
#include "asn1/asn1c/constr_TYPE.h"
-struct asn_TYPE_descriptor_s; /* Forward declaration */
-
/*
* The DER encoder of any type. May be invoked by the application.
* Produces DER- and BER-compliant encoding. (DER is a subset of BER).
#ifndef SRC_ASN1_ASN1C_JSON_ENCODER_H_
#define SRC_ASN1_ASN1C_JSON_ENCODER_H_
-#include <jansson.h>
-#include <netinet/in.h>
-#include <stddef.h>
-#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <strings.h>
-#include <sys/types.h>
-#include <unistd.h>
-
-struct asn_TYPE_descriptor_s; /* Forward declaration */
+#include "asn1/asn1c/constr_TYPE.h"
json_t *json_encode(
const struct asn_TYPE_descriptor_s *type_descriptor,
#include "asn1/asn1c/constr_TYPE.h"
-struct asn_TYPE_descriptor_s; /* Forward declaration */
-
/* Flags used by the xer_encode() and (*xer_type_encoder_f), defined below */
enum xer_encoder_flags_e {
/* Mode of encoding */
#include "asn1/content_info.h"
-#include "asn1/asn1c/ContentType.h"
#include "asn1/decode.h"
#include "asn1/oid.h"
-#include "file.h"
#include "log.h"
static int
#include "asn1/decode.h"
#include "asn1/asn1c/ber_decoder.h"
-#include "asn1/asn1c/constraints.h"
-#include "common.h"
-#include "incidence.h"
#include "log.h"
#define COND_LOG(log, pr) (log ? pr : -EINVAL)
#ifndef SRC_ASN1_DECODE_H_
#define SRC_ASN1_DECODE_H_
-#include <stdbool.h>
-
#include "asn1/asn1c/ANY.h"
-#include "asn1/asn1c/constr_TYPE.h"
#include "file.h"
int asn1_decode(const void *, size_t, asn_TYPE_descriptor_t const *, void **,
#include "asn1/oid.h"
+#include <errno.h>
+
#include "alloc.h"
-#include "asn1/decode.h"
-#include "common.h"
#include "log.h"
void
#ifndef SRC_ASN1_OID_H_
#define SRC_ASN1_OID_H_
-#include "asn1/asn1c/ANY.h"
+#include <stdbool.h>
+
#include "asn1/asn1c/OBJECT_IDENTIFIER.h"
-#include "common.h"
#include "types/array.h"
/* These objects are expected to live on the stack. */
#include "algorithm.h"
#include "alloc.h"
-#include "asn1/asn1c/ContentType.h"
#include "asn1/asn1c/ContentTypePKCS7.h"
#include "asn1/asn1c/MessageDigest.h"
#include "asn1/asn1c/SignedDataPKCS7.h"
#include "asn1/decode.h"
#include "asn1/oid.h"
-#include "config.h"
#include "hash.h"
#include "log.h"
#include "object/certificate.h"
-#include "thread_var.h"
+#include "types/name.h"
static const OID oid_cta = OID_CONTENT_TYPE_ATTR;
static const OID oid_mda = OID_MESSAGE_DIGEST_ATTR;
/* Some wrappers for asn1/asn1c/SignedData.h. */
#include "asn1/asn1c/SignedData.h"
-#include "object/certificate.h"
+#include "certificate_refs.h"
#include "resource.h"
struct ee_cert {
#include "base64.h"
+#include <openssl/bio.h>
#include <openssl/buffer.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include "cache.h"
#include <ftw.h>
-#include <time.h>
-#include "alloc.h"
#include "cachent.h"
#include "cachetmp.h"
#include "common.h"
#include "config.h"
#include "configure_ac.h"
#include "file.h"
-#include "json_util.h"
-#include "log.h"
#include "http.h"
-#include "rrdp.h"
+#include "log.h"
+#include "rpp.h"
#include "rsync.h"
-#include "types/arraylist.h"
-#include "types/str.h"
#include "types/path.h"
-#include "types/url.h"
-#include "types/uthash.h"
/* XXX force RRDP if one RPP fails to validate by rsync? */
/* CACHE ENTity, CACHE elemENT, CACHE componENT */
#include <stdbool.h>
-#include "types/uthash.h"
+#include <sys/stat.h>
+
#include "rrdp.h"
+#include "types/uthash.h"
/* XXX rename "touched" and "validated" into "preserve"? */
#include "cachetmp.h"
#include <stdatomic.h>
+
#include "types/path.h"
static atomic_uint file_counter;
#include <errno.h>
#include <sys/queue.h>
-#include "alloc.h"
#include "log.h"
-#include "resource.h"
#include "thread_var.h"
-#include "types/arraylist.h"
-#include "types/name.h"
#include "types/str.h"
enum defer_node_type {
#include <openssl/bn.h>
#include "object/certificate.h"
-#include "resource.h"
-#include "types/map.h"
#include "types/name.h"
/*
#include "certificate_refs.h"
+#include <stddef.h>
+#include <stdlib.h>
+#include <string.h>
+
#include "log.h"
-#include "thread_var.h"
void
refs_init(struct certificate_refs *refs)
#include "config.h"
+#include <errno.h>
#include <getopt.h>
-#include <limits.h>
-#include <sys/socket.h>
#include <syslog.h>
#include "alloc.h"
#include "config/work_offline.h"
#include "configure_ac.h"
#include "daemon.h"
-#include "file.h"
#include "init.h"
#include "json_handler.h"
#include "log.h"
+#include "state.h"
+#include "thread_pool.h"
#include "types/array.h"
/**
#include <netdb.h>
#include <netinet/in.h>
#include <stdint.h>
+#include <sys/stat.h>
#include "config/file_type.h"
#include "config/filename_format.h"
#include "config/mode.h"
#include "config/output_format.h"
#include "config/string_array.h"
-#include "config/types.h"
/* Init/destroy */
int handle_flags_config(int , char **);
#include <getopt.h>
-#include "alloc.h"
#include "config/str.h"
#include "log.h"
+#include "types/path.h"
#include "types/str.h"
void
extern const struct global_type gt_work_offline;
#endif /* SRC_CONFIG_WORK_OFFLINE_H_ */
+#include "config/types.h"
+
#include <openssl/obj_mac.h>
#include <openssl/objects.h>
-#include "cert_stack.h"
-#include "common.h"
#include "hash.h"
#include "json_util.h"
#include "libcrypto_util.h"
#include <fcntl.h>
#include <ftw.h>
-#include <sys/stat.h>
#include "alloc.h"
#include "common.h"
+#include "config/mode.h"
#include "log.h"
#include "types/path.h"
-#include "types/uthash.h"
int
file_open(char const *file_name, FILE **result, struct stat *stat)
#include "hash.h"
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
#include <openssl/evp.h>
#include "alloc.h"
#ifndef SRC_HASH_H_
#define SRC_HASH_H_
-#include <openssl/evp.h>
+#include <stddef.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include <sys/types.h>
+#include <unistd.h>
struct hash_algorithm;
#include "http.h"
#include "alloc.h"
-#include "cache.h"
#include "common.h"
#include "config.h"
#include "file.h"
#include "log.h"
#include "types/url.h"
-#include "types/uthash.h"
struct http_handler {
CURL *curl;
#ifndef SRC_HTTP_H_
#define SRC_HTTP_H_
-#include <stdbool.h>
#include <curl/curl.h>
+#include <stdbool.h>
int http_init(void);
void http_cleanup(void);
#include "config.h"
#include "http.h"
-#include "log.h"
#include "types/path.h"
static int
#include "alloc.h"
#include "config.h"
-#include "config/types.h"
#include "log.h"
static json_t *
#include <openssl/pem.h>
#include <time.h>
-#include "alloc.h"
#include "asn1/asn1c/OBJECT_IDENTIFIER.h"
#include "extension.h"
#include "json_util.h"
#include <pthread.h>
#include <signal.h>
#include <stdarg.h>
-#include <sys/stat.h>
#include <syslog.h>
#include <time.h>
#include "extension.h"
#include "hash.h"
#include "http.h"
-#include "incidence.h"
#include "log.h"
#include "nid.h"
#include "print_file.h"
#include "relax_ng.h"
-#include "rtr/db/vrps.h"
#include "rtr/rtr.h"
#include "thread_var.h"
#include <openssl/rsa.h>
#include <openssl/x509v3.h>
#include <syslog.h>
+#include <time.h>
#include "algorithm.h"
-#include "alloc.h"
#include "asn1/asn1c/IPAddrBlocks.h"
#include "asn1/decode.h"
-#include "asn1/oid.h"
#include "cache.h"
-#include "cert_stack.h"
+#include "common.h"
#include "config.h"
-#include "hash.h"
-#include "types/str.h"
#include "extension.h"
-#include "incidence.h"
#include "log.h"
#include "nid.h"
-#include "object/bgpsec.h"
#include "object/manifest.h"
-#include "object/signed_object.h"
-#include "rrdp.h"
#include "thread_var.h"
-#include "types/name.h"
#include "types/path.h"
-#include "types/str.h"
/*
* The X509V3_EXT_METHOD that references NID_sinfo_access uses the AIA item.
#include "asn1/asn1c/SignatureValue.h"
#include "certificate_refs.h"
#include "resource.h"
-#include "rpp.h"
-#include "types/map.h"
/* Certificate types in the RPKI */
enum cert_type {
#include "algorithm.h"
#include "extension.h"
#include "log.h"
-#include "thread_var.h"
#include "types/name.h"
static int
#include <errno.h>
-#include "asn1/oid.h"
#include "log.h"
#include "object/signed_object.h"
#include "object/vcard.h"
#define SRC_OBJECT_GHOSTBUSTERS_H_
#include "rpp.h"
-#include "types/map.h"
int ghostbusters_traverse(struct cache_mapping *, struct rpp *);
#include "object/manifest.h"
-#include "alloc.h"
#include "algorithm.h"
-#include "asn1/asn1c/GeneralizedTime.h"
#include "asn1/asn1c/Manifest.h"
#include "asn1/decode.h"
-#include "asn1/oid.h"
#include "common.h"
#include "hash.h"
#include "log.h"
-#include "object/certificate.h"
-#include "object/crl.h"
-#include "object/roa.h"
#include "object/signed_object.h"
#include "thread_var.h"
#include "types/path.h"
#define SRC_OBJECT_MANIFEST_H_
#include "rpp.h"
-#include "types/map.h"
int handle_manifest(struct cache_mapping *map, struct rpp **);
#include "asn1/asn1c/RouteOriginAttestation.h"
#include "asn1/decode.h"
-#include "asn1/oid.h"
-#include "config.h"
#include "log.h"
#include "object/signed_object.h"
#include "thread_var.h"
#define SRC_OBJECT_ROA_H_
#include "rpp.h"
-#include "types/map.h"
int roa_traverse(struct cache_mapping *, struct rpp *);
#ifndef SRC_OBJECT_SIGNED_OBJECT_H_
#define SRC_OBJECT_SIGNED_OBJECT_H_
+#include "asn1/asn1c/ContentInfo.h"
#include "asn1/oid.h"
#include "asn1/signed_data.h"
#include "object/tal.h"
#include <ctype.h>
-#include <errno.h>
-#include <openssl/evp.h>
#include <sys/queue.h>
#include <time.h>
-#include "alloc.h"
#include "base64.h"
#include "cache.h"
-#include "cert_stack.h"
#include "common.h"
#include "config.h"
#include "file.h"
#include "log.h"
-#include "object/certificate.h"
-#include "rtr/db/vrps.h"
-#include "state.h"
#include "thread_var.h"
-#include "types/str.h"
-#include "validation_handler.h"
struct tal {
char const *file_name;
/* This is RFC 8630. */
#include "rtr/db/db_table.h"
-#include "types/map.h"
struct tal;
#include "output_printer.h"
#include "base64.h"
-#include "common.h"
#include "config.h"
#include "file.h"
#include "log.h"
-#include "types/vrp.h"
typedef struct json_out {
FILE *file;
#include "print_file.h"
+#include <errno.h>
+
#include "asn1/asn1c/CRL.h"
#include "asn1/asn1c/Certificate.h"
+#include "asn1/asn1c/ContentInfo.h"
#include "asn1/asn1c/ber_decoder.h"
#include "asn1/asn1c/json_encoder.h"
-#include "asn1/content_info.h"
#include "common.h"
#include "config.h"
-#include "file.h"
#include "log.h"
#include "rsync.h"
#include "types/bio_seq.h"
-#include "types/map.h"
#include "types/path.h"
#define HDRSIZE 32
#include <stdarg.h>
#include <stddef.h>
-#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include "log.h"
#define SRC_XML_RELAX_NG_H_
#include <libxml/xmlreader.h>
-#include <string.h>
/*
* Schema obtained from RFC 8182, converted using the tool rnc2rng
#include <errno.h>
#include "alloc.h"
-#include "cert_stack.h"
#include "log.h"
#include "resource/ip4.h"
#include "resource/ip6.h"
#include "thread_var.h"
-#include "types/address.h"
#include "types/sorted_array.h"
/* The resources we extracted from one certificate. */
#include "resource/asn.h"
-#include "log.h"
#include "types/sorted_array.h"
struct asn_cb {
#include <stdbool.h>
-#include "asn1/asn1c/ASId.h"
#include "types/asn.h"
/*
#include "rpp.h"
-#include "alloc.h"
-#include "cert_stack.h"
#include "common.h"
#include "log.h"
-#include "object/certificate.h"
#include "object/crl.h"
#include "object/ghostbusters.h"
#include "object/roa.h"
#include "thread_var.h"
-#include "types/str.h"
+#include "types/arraylist.h"
STATIC_ARRAY_LIST(filelist, struct cache_mapping)
#include "rrdp.h"
-#include <ctype.h>
-#include <openssl/evp.h>
-
-#include "alloc.h"
#include "base64.h"
-#include "cache.h"
#include "cachent.h"
#include "cachetmp.h"
#include "common.h"
#include "log.h"
#include "relax_ng.h"
#include "thread_var.h"
+#include "types/arraylist.h"
#include "types/url.h"
/* RRDP's XML namespace */
#include "rtr/db/delta.h"
#include "types/address.h"
-#include "types/vrp.h"
struct db_table;
#include <stdatomic.h>
-#include "alloc.h"
#include "log.h"
#include "types/address.h"
#include "types/arraylist.h"
#include "alloc.h"
#include "config.h"
-#include "log.h"
struct deltas_array {
struct deltas **array; /* It's a circular array. */
#include "log.h"
#include "object/tal.h"
#include "output_printer.h"
-#include "rtr/db/db_table.h"
-#include "rtr/rtr.h"
+#include "rtr/db/deltas_array.h"
+#include "rtr/pdu.h"
#include "slurm/slurm_loader.h"
-#include "types/router_key.h"
-#include "validation_handler.h"
struct vrp_node {
struct delta_vrp delta;
* This module stores VRPs and their serials.
*/
-#include "rtr/db/deltas_array.h"
#include "types/address.h"
#include "types/asn.h"
+#include "types/delta.h"
+#include "types/serial.h"
int vrps_init(void);
void vrps_destroy(void);
#include <errno.h>
#include "alloc.h"
-#include "log.h"
#include "rtr/pdu_sender.h"
typedef enum rtr_error_code {
#ifndef SRC_RTR_PDU_H_
#define SRC_RTR_PDU_H_
+#include <arpa/inet.h>
+#include <netdb.h>
+#include <netinet/in.h>
#include <stddef.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
+#include <sys/types.h>
#include <unistd.h>
-#include "common.h"
-#include "rtr/rtr.h"
-#include "types/router_key.h"
-
enum rtr_version {
RTR_V0 = 0,
RTR_V1 = 1,
#include <errno.h>
#include "log.h"
+#include "rtr/db/vrps.h"
#include "rtr/err_pdu.h"
#include "rtr/pdu_sender.h"
-#include "rtr/pdu_stream.h"
struct send_delta_args {
int fd;
#include <poll.h>
#include "alloc.h"
-#include "common.h"
#include "config.h"
#include "log.h"
#include "rtr/db/vrps.h"
#ifndef SRC_RTR_PDU_SENDER_H_
#define SRC_RTR_PDU_SENDER_H_
-#include "rtr/db/vrps.h"
#include "rtr/pdu.h"
#include "types/router_key.h"
+#include "types/serial.h"
+#include "types/vrp.h"
int send_serial_notify_pdu(int, uint8_t, serial_t);
int send_cache_reset_pdu(int, uint8_t);
#include "alloc.h"
#include "log.h"
#include "rtr/err_pdu.h"
-#include "rtr/pdu.h"
enum buffer_state {
/* We've read all available bytes for now. */
#ifndef SRC_RTR_PDU_STREAM_H_
#define SRC_RTR_PDU_STREAM_H_
+#include <stdbool.h>
+
#include "rtr/pdu.h"
-#include "rtr/rtr.h"
struct pdu_stream; /* It's an *input* stream. */
#include <fcntl.h>
#include <poll.h>
-#include "alloc.h"
+#include "common.h"
#include "config.h"
#include "log.h"
#include "rtr/db/vrps.h"
-#include "rtr/err_pdu.h"
-#include "rtr/pdu.h"
#include "rtr/pdu_handler.h"
#include "rtr/pdu_sender.h"
-#include "rtr/pdu_stream.h"
#include "thread_pool.h"
-#include "types/address.h"
#include "types/arraylist.h"
-#include "types/serial.h"
struct rtr_server {
int fd;
#include <errno.h>
#include <time.h>
-#include "alloc.h"
#include "base64.h"
#include "common.h"
#include "log.h"
#include "types/arraylist.h"
-#include "types/router_key.h"
struct slurm_prefix_wrap {
struct slurm_prefix element;
#define SRC_SLURM_DB_SLURM_H_
#include <openssl/evp.h>
+#include <stddef.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
#include <sys/queue.h>
+#include <sys/types.h>
+#include <unistd.h>
#include "types/router_key.h"
#include "types/vrp.h"
#include <openssl/sha.h>
#include "alloc.h"
-#include "log.h"
-#include "config.h"
#include "common.h"
+#include "config.h"
#include "hash.h"
+#include "log.h"
#include "slurm/slurm_parser.h"
#define SLURM_FILE_EXTENSION ".slurm"
#include "log.h"
#include "slurm/db_slurm.h"
#include "types/address.h"
-#include "types/router_key.h"
/* JSON members */
#define SLURM_VERSION "slurmVersion"
#include "state.h"
#include "alloc.h"
-#include "cache.h"
-#include "cert_stack.h"
#include "log.h"
#include "thread_var.h"
#ifndef SRC_STATE_H_
#define SRC_STATE_H_
+#include "cert_stack.h"
#include "object/tal.h"
#include "validation_handler.h"
#include <pthread.h>
#include "alloc.h"
-#include "config.h"
#include "log.h"
static pthread_key_t state_key;
#define SRC_THREAD_VAR_H_
#include "state.h"
-#include "types/map.h"
int thvar_init(void); /* This function does not need cleanup. */
#include <stdbool.h>
#include <sys/socket.h>
-#include "asn1/asn1c/IPAddress.h"
#include "asn1/asn1c/IPAddressRange.h"
struct ipv4_prefix {
#ifndef SRC_TYPES_ARRAYLIST_H_
#define SRC_TYPES_ARRAYLIST_H_
+#include "alloc.h"
#include "types/array.h"
#define DEFINE_ARRAY_LIST_STRUCT(name, elem_type) \
#include "types/map.h"
-#include <string.h>
-
#include "alloc.h"
#include "config.h"
#include "log.h"
#include <syslog.h>
#include "alloc.h"
-#include "cert_stack.h"
#include "log.h"
#include "thread_var.h"
#include "alloc.h"
#include "config.h"
-#include "hash.h"
#include "log.h"
/* These are arbitrary; feel free to change them. */
#ifndef SRC_TYPES_PATH_H_
#define SRC_TYPES_PATH_H_
-#include <stdbool.h>
+#include <arpa/inet.h>
#include <netdb.h>
+#include <netinet/in.h>
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include <sys/types.h>
+#include <unistd.h>
// XXX rename
struct tokenizer {
#include "types/str.h"
#include <openssl/bio.h>
-#include <stdint.h>
-#include "alloc.h"
#include "log.h"
+#include "types/path.h"
/**
* Does not assume that @string is NULL-terminated.
#include <openssl/asn1.h>
#include <openssl/bn.h>
#include <stdbool.h>
-#include <stddef.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <strings.h>
-#include <sys/types.h>
-#include <unistd.h>
#include "types/arraylist.h"
#ifndef SRC_VALIDATION_HANDLER_H_
#define SRC_VALIDATION_HANDLER_H_
-#include "types/address.h"
-#include "types/asn.h"
-#include "types/name.h"
-#include "types/router_key.h"
+#include "rtr/db/vrps.h"
/**
* Functions that handle validation results.