#include "algorithm.h"
-#include <stdbool.h>
+#include <openssl/asn1.h>
#include <openssl/obj_mac.h>
#include <openssl/objects.h>
#include "alloc.h"
-#include <string.h>
#include "log.h"
void *
#ifndef SRC_ALLOC_H_
#define SRC_ALLOC_H_
+#include <stddef.h>
+#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include <sys/types.h>
+#include <unistd.h>
/* malloc(), but panic on allocation failure. */
void *pmalloc(size_t size);
#ifndef SRC_AS_NUMBER_H_
#define SRC_AS_NUMBER_H_
+#include <arpa/inet.h>
+#include <netdb.h>
+#include <netinet/in.h>
#include <stdint.h>
struct asn_range {
*/
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/ANY.h"
+#include <assert.h>
#include <errno.h>
asn_OCTET_STRING_specifics_t asn_SPC_ANY_specs = {
}
#endif /* ASN_DISABLE_PER_SUPPORT */
-
0, 0, /* No members */
0 /* No specifics */
};
-
2, /* Elements count */
&asn_SPC_ASIdOrRange_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_ASIdentifierChoice_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_ASIdentifiers_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_ASRange_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_AlgorithmIdentifier_specs_1 /* Additional specs */
};
-
0, 0, /* No members */
0 /* No specifics */
};
-
2, /* Elements count */
&asn_SPC_AttributeTypeAndValue_specs_1 /* Additional specs */
};
-
0, 0, /* No members */
&asn_SPC_ANY_specs /* Additional specs */
};
-
* Copyright (c) 2003, 2004 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
+
+#include <assert.h>
+
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/BIT_STRING.h"
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/BIT_STRING.h"
-#include <errno.h>
asn_dec_rval_t
BIT_STRING_decode_oer(const asn_codec_ctx_t *opt_codec_ctx,
0, 0, /* No members */
0 /* No specifics */
};
-
0, 0, /* No members */
0 /* No specifics */
};
-
2, /* Elements count */
&asn_SPC_CMSAttribute_specs_1 /* Additional specs */
};
-
0, 0, /* No members */
&asn_SPC_ANY_specs /* Additional specs */
};
-
0, 0, /* No members */
&asn_SPC_OCTET_STRING_specs /* Additional specs */
};
-
0, 0, /* Defined elsewhere */
0 /* No specifics */
};
-
3, /* Elements count */
&asn_SPC_CertificateList_specs_1 /* Additional specs */
};
-
0, 0, /* No members */
0 /* No specifics */
};
-
1, /* Single element */
&asn_SPC_CertificateSet_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_ContentInfo_specs_1 /* Additional specs */
};
-
0, 0, /* No members */
0 /* No specifics */
};
-
0, 0, /* No members */
&asn_SPC_OCTET_STRING_specs /* Additional specs */
};
-
7, /* Elements count */
&asn_SPC_SignerInfo_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_AlgorithmIdentifier_specs_1 /* Additional specs */
};
-
1, /* Single element */
&asn_SPC_DigestAlgorithmIdentifiers_specs_1 /* Additional specs */
};
-
1, /* Single element */
&asn_SPC_RDNSequence_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_EncapsulatedContentInfo_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_EncapsulatedContentInfoPKCS7_specs_1 /* Additional specs */
};
-
3, /* Elements count */
&asn_SPC_Extension_specs_1 /* Additional specs */
};
-
1, /* Single element */
&asn_SPC_Extensions_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_FileAndHash_specs_1 /* Additional specs */
};
-
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/GeneralizedTime.h"
-#include <time.h>
-#include <stdio.h>
+#include <assert.h>
#include <errno.h>
#if defined(sun) || defined(__sun) || defined(__solaris__)
#ifndef HAVE_TIMEGM
#ifdef _EMULATE_TIMEGM
-#include <stdlib.h>
static time_t timegm(struct tm *tm) {
time_t tloc;
ATZVARS;
}
}
-
#define _GeneralizedTime_H_
#include "asn1/asn1c/OCTET_STRING.h"
+#include <sys/stat.h>
+#include <time.h>
#ifdef __cplusplus
extern "C" {
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/INTEGER.h"
#include "asn1/asn1c/asn_codecs_prim.h" /* Encoder and decoder of a primitive type */
+#include <assert.h>
#include <errno.h>
/*
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/INTEGER.h"
-#include <errno.h>
asn_dec_rval_t
INTEGER_decode_oer(const asn_codec_ctx_t *opt_codec_ctx,
1, /* Single element */
&asn_SPC_IPAddrBlocks_specs_1 /* Additional specs */
};
-
0, 0, /* No members */
&asn_SPC_BIT_STRING_specs /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_IPAddressChoice_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_IPAddressFamily_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_IPAddressOrRange_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_IPAddressRange_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_IssuerAndSerialNumber_specs_1 /* Additional specs */
};
-
6, /* Elements count */
&asn_SPC_Manifest_specs_1 /* Additional specs */
};
-
0, 0, /* No members */
&asn_SPC_OCTET_STRING_specs /* Additional specs */
};
-
1, /* Elements count */
&asn_SPC_Name_specs_1 /* Additional specs */
};
-
#include "asn1/asn1c/INTEGER.h"
#include "asn1/asn1c/OBJECT_IDENTIFIER.h"
#include "asn1/asn1c/OCTET_STRING.h"
-#include <limits.h> /* for CHAR_BIT */
+#include <assert.h>
#include <errno.h>
/*
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/OCTET_STRING.h"
#include "asn1/asn1c/BIT_STRING.h" /* for .bits_unused member */
+#include <assert.h>
#include <errno.h>
/*
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/OCTET_STRING.h"
-#include <errno.h>
asn_dec_rval_t
OCTET_STRING_decode_oer(const asn_codec_ctx_t *opt_codec_ctx,
#include "asn1/asn1c/OPEN_TYPE.h"
#include "asn1/asn1c/constr_CHOICE.h"
#include "asn1/asn1c/per_opentype.h"
-#include <errno.h>
+#include <assert.h>
asn_TYPE_operation_t asn_OP_OPEN_TYPE = {
OPEN_TYPE_free,
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/OPEN_TYPE.h"
#include "asn1/asn1c/constr_CHOICE.h"
-#include <errno.h>
asn_dec_rval_t
OPEN_TYPE_oer_get(const asn_codec_ctx_t *opt_codec_ctx,
2, /* Elements count */
&asn_SPC_OtherRevocationInfoFormat_specs_1 /* Additional specs */
};
-
1, /* Single element */
&asn_SPC_RDNSequence_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_ROAIPAddress_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_ROAIPAddressFamily_specs_1 /* Additional specs */
};
-
1, /* Single element */
&asn_SPC_RelativeDistinguishedName_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_RevocationInfoChoice_specs_1 /* Additional specs */
};
-
1, /* Single element */
&asn_SPC_RevocationInfoChoices_specs_1 /* Additional specs */
};
-
3, /* Elements count */
&asn_SPC_RouteOriginAttestation_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_AlgorithmIdentifier_specs_1 /* Additional specs */
};
-
0, 0, /* No members */
&asn_SPC_OCTET_STRING_specs /* Additional specs */
};
-
1, /* Single element */
&asn_SPC_SignedAttributes_specs_1 /* Additional specs */
};
-
6, /* Elements count */
&asn_SPC_SignedData_specs_1 /* Additional specs */
};
-
6, /* Elements count */
&asn_SPC_SignedDataPKCS7_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_SignerIdentifier_specs_1 /* Additional specs */
};
-
7, /* Elements count */
&asn_SPC_SignerInfo_specs_1 /* Additional specs */
};
-
1, /* Single element */
&asn_SPC_SignerInfos_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_Time_specs_1 /* Additional specs */
};
-
7, /* Elements count */
&asn_SPC_TBSCertList_specs_1 /* Additional specs */
};
-
2, /* Elements count */
&asn_SPC_Time_specs_1 /* Additional specs */
};
-
#include "asn1/asn1c/UTCTime.h"
#include "asn1/asn1c/GeneralizedTime.h"
+#include <assert.h>
#include <errno.h>
-#include <time.h>
#ifndef ASN___INTERNAL_TEST_MODE
return 1;
}
}
-
#define _UTCTime_H_
#include "asn1/asn1c/OCTET_STRING.h"
+#include <sys/stat.h>
+#include <time.h>
#ifdef __cplusplus
extern "C" {
1, /* Single element */
&asn_SPC_UnsignedAttributes_specs_1 /* Additional specs */
};
-
0, 0, /* Defined elsewhere */
0 /* No specifics */
};
-
if(ptr) as->free(ptr);
}
}
-
*/
#ifndef ASN_SET_OF_H
#define ASN_SET_OF_H
+#include <stdlib.h>
#ifdef __cplusplus
#define A_SET_OF(type) \
*/
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/asn_application.h"
+#include <assert.h>
#include <errno.h>
static asn_enc_rval_t asn_encode_internal(const asn_codec_ctx_t *opt_codec_ctx,
return xer_decode(opt_codec_ctx, td, sptr, buffer, size);
}
}
-
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
+
+#include <assert.h>
+
#include "asn1/asn1c/asn_system.h"
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/asn_bit_data.h"
return 0;
}
}
-
#define ASN_BIT_DATA
#include "asn1/asn1c/asn_system.h" /* Platform-specific types */
+#include <netdb.h>
+#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#ifndef ASN_CODECS_H
#define ASN_CODECS_H
+#include <stddef.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include <sys/types.h>
+#include <unistd.h>
+
#ifdef __cplusplus
extern "C" {
#endif
*/
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/asn_codecs_prim.h"
-#include <errno.h>
+#include <assert.h>
/*
* Decode an always-primitive type.
}
return rc;
}
-
#include "asn1/asn1c/asn_internal.h"
+#include <stdarg.h>
+
ssize_t
asn__format_to_callback(int (*cb)(const void *, size_t, void *key), void *key,
const char *fmt, ...) {
return wrote;
}
-
#endif
#include "asn1/asn1c/asn_application.h" /* Application-visible API */
-#ifndef __NO_ASSERT_H__ /* Include assert.h only for internal use. */
-#include <assert.h> /* for assert() macro */
-#endif
-
#ifdef __cplusplus
extern "C" {
#endif
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
+
+#include <assert.h>
+
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/asn_random_fill.h"
#include "asn1/asn1c/constr_TYPE.h"
#ifndef ASN_RANDOM_FILL
#define ASN_RANDOM_FILL
+#include <stddef.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include <sys/types.h>
+#include <unistd.h>
+
/* Forward declarations */
struct asn_TYPE_descriptor_s;
struct asn_encoding_constraints_s;
#ifndef ASN_SYSTEM_H
#define ASN_SYSTEM_H
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE 1
#endif
#define _BSD_SOURCE /* for snprintf() on some linux systems */
#endif
-#include <stdio.h> /* For snprintf(3) */
-#include <stdlib.h> /* For *alloc(3) */
-#include <string.h> /* For memcpy(3) */
-#include <sys/types.h> /* For size_t */
-#include <limits.h> /* For LONG_MAX */
-#include <stdarg.h> /* For va_start */
-#include <stddef.h> /* for offsetof and ptrdiff_t */
-
-#if defined(__vxworks)
-#include <types/vxTypes.h>
-#else /* !defined(__vxworks) */
+#include <arpa/inet.h>
+#include <inttypes.h>
+#include <limits.h>
+#include <netinet/in.h>
+#include <stddef.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include <sys/types.h>
+#include <unistd.h>
-#include <inttypes.h> /* C99 specifies this file */
-#include <netinet/in.h> /* for ntohl() */
#define sys_ntohl(foo) ntohl(foo)
-#endif /* defined(__vxworks) */
#if __GNUC__ >= 3 || defined(__clang__)
#define CC_ATTRIBUTE(attr) __attribute__((attr))
* Copyright (c) 2003, 2004 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
+
+#include <assert.h>
+
#include "asn1/asn1c/asn_internal.h"
#undef ADVANCE
return required_size + 1;
}
-
#ifndef _BER_TLV_LENGTH_H_
#define _BER_TLV_LENGTH_H_
+#include <stddef.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include <sys/types.h>
+#include <unistd.h>
+
#ifdef __cplusplus
extern "C" {
#endif
return required_size + 1;
}
-
#ifndef _BER_TLV_TAG_H_
#define _BER_TLV_TAG_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>
+
#ifdef __cplusplus
extern "C" {
#endif
* Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
+
+#include <assert.h>
+
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/constr_CHOICE.h"
#include "asn1/asn1c/per_opentype.h"
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/constr_CHOICE.h"
-#include <errno.h>
/*
* Return a standardized complex structure.
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
+
+#include <assert.h>
+
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/constr_SEQUENCE.h"
#include "asn1/asn1c/OPEN_TYPE.h"
return result_ok;
}
-
SEQUENCE_OF_random_fill,
0 /* Use generic outmost tag fetcher */
};
-
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/constr_SEQUENCE.h"
#include "asn1/asn1c/OPEN_TYPE.h"
-#include <errno.h>
+#include <assert.h>
/*
* This macro "eats" the part of the buffer which is definitely "consumed",
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
+
+#include <assert.h>
+
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/constr_SET_OF.h"
#include "asn1/asn1c/asn_SET_OF.h"
return res_ok;
}
-
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/constr_SET_OF.h"
#include "asn1/asn1c/asn_SET_OF.h"
-#include <errno.h>
+#include <assert.h>
/*
* This macro "eats" the part of the buffer which is definitely "consumed",
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/constr_TYPE.h"
#include <errno.h>
+#include <stdarg.h>
/*
* Version of the ASN.1 infrastructure shipped with compiler.
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/constraints.h"
+#include <stdarg.h>
int
asn_generic_no_constraint(const asn_TYPE_descriptor_t *type_descriptor,
return ret;
}
-
* Redistribution and modifications are permitted subject to BSD license.
*/
#include "asn1/asn1c/asn_internal.h"
-#include <errno.h>
+#include <assert.h>
static ssize_t der_write_TL(ber_tlv_tag_t tag, ber_tlv_len_t len,
asn_app_consume_bytes_f *cb, void *app_key, int constructed);
* Copyright (c) 2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
+
+#include <assert.h>
+
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/asn_codecs_prim.h"
return len_len + er.encoded;
}
-
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
+
+#include <assert.h>
+
#include "asn1/asn1c/asn_system.h"
#include "asn1/asn1c/asn_internal.h"
return sp - scratch;
}
-
+#include <assert.h>
+
#include "asn1/asn1c/asn_application.h"
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/per_decoder.h"
}
return rval;
}
-
return po->output(po->tmpspace, buf - po->tmpspace, po->op_key);
}
-
* Copyright (c) 2007 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
+
+#include <assert.h>
+
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/per_support.h"
#include "asn1/asn1c/constr_TYPE.h"
* Copyright (c) 2005-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
+
+#include <assert.h>
+
#include "asn1/asn1c/asn_system.h"
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/per_support.h"
* Copyright (c) 2004-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
+
+#include <assert.h>
+
#include "asn1/asn1c/asn_application.h"
#include "asn1/asn1c/asn_internal.h"
#include "asn1/asn1c/xer_support.h" /* XER/XML parsing support */
* Redistribution and modifications are permitted subject to BSD license.
*/
#include "asn1/asn1c/asn_internal.h"
-#include <stdio.h>
-#include <errno.h>
/*
* The XER encoder of any type. May be invoked by the application.
FREEMEM(xb2.buffer);
return XEQ_SUCCESS;
}
-
*stateContext = (int)state;
return chunk_start - (const char *)xmlbuf;
}
-
#include "asn1/content_info.h"
-#include <errno.h>
#include "file.h"
#include "log.h"
#include "asn1/oid.h"
#include "asn1/decode.h"
-#include <errno.h>
#include "common.h"
#include "config.h"
#include "log.h"
#ifndef SRC_ASN1_DECODE_H_
#define SRC_ASN1_DECODE_H_
-#include <stdbool.h>
#include "file.h"
#include "asn1/asn1c/ANY.h"
#include "asn1/asn1c/constr_TYPE.h"
#include "asn1/oid.h"
-#include <errno.h>
#include "alloc.h"
#include "common.h"
#include "log.h"
#ifndef SRC_OID_H_
#define SRC_OID_H_
-#include <stdbool.h>
#include "common.h"
#include "asn1/asn1c/ANY.h"
#include "asn1/asn1c/OBJECT_IDENTIFIER.h"
#include "asn1/signed_data.h"
-#include <errno.h>
-
#include "algorithm.h"
#include "alloc.h"
#include "config.h"
/* Some wrappers for asn1/asn1c/SignedData.h. */
-#include <openssl/x509.h>
#include "resource.h"
#include "asn1/asn1c/SignedData.h"
#include "object/certificate.h"
#include "cache/local_cache.h"
-#include <dirent.h> /* opendir(), readdir(), closedir() */
-#include <jansson.h>
-#include <strings.h> /* strcasecmp */
-#include <sys/types.h> /* opendir(), closedir(), stat() */
-#include <sys/stat.h> /* stat() */
-#include <sys/queue.h> /* STAILQ */
#include <time.h>
-#include <unistd.h> /* stat() */
#include "alloc.h"
+#include "config.h"
#include "file.h"
#include "log.h"
#include "data_structure/path_builder.h"
#ifndef SRC_CACHE_LOCAL_CACHE_H_
#define SRC_CACHE_LOCAL_CACHE_H_
-#include <stdbool.h>
#include "types/uri.h"
/* Warms up cache for new validation run */
#include "cache/tmp.h"
#include <stdatomic.h>
+
#include "config.h"
#include "data_structure/path_builder.h"
#include "cert_stack.h"
+#include <errno.h>
#include <sys/queue.h>
#include "alloc.h"
#ifndef SRC_CERT_STACK_H_
#define SRC_CERT_STACK_H_
-#include <openssl/x509.h>
-#include <stdbool.h>
+#include <openssl/bn.h>
#include "resource.h"
#include "object/certificate.h"
#include "object/name.h"
#include "certificate_refs.h"
-#include <errno.h>
#include "log.h"
#include "thread_var.h"
#include "common.h"
-#include <dirent.h> /* readdir(), closedir() */
-#include <limits.h> /* realpath() */
-#include <stdlib.h> /* free(), realpath() */
-#include <stdio.h> /* remove() */
-#include <string.h> /* strrchr(), strcmp(), strcat(), etc */
-#include <unistd.h> /* stat(), rmdir() */
-#include <sys/stat.h> /* stat(), mkdir() */
-#include <sys/types.h> /* stat(), closedir(), mkdir() */
+#include <dirent.h>
+#include <errno.h>
+#include <time.h>
#include "alloc.h"
#include "config.h"
return process_dir_files(location, file_ext, empty_err, cb, arg);
}
-
bool
valid_file_or_dir(char const *location, bool check_file, bool check_dir,
int (*error_fn)(const char *format, ...))
#include <pthread.h>
#include <stdbool.h>
-#include <time.h>
+#include <sys/stat.h>
+#include <sys/types.h>
/* "I think that this is not supposed to be implemented." */
#define ENOTSUPPORTED 3172
#include "config.h"
-#include <limits.h>
-#include <stdlib.h>
-#include <string.h>
-#include <errno.h>
#include <getopt.h>
+#include <limits.h>
#include <sys/socket.h>
#include <syslog.h>
}
}
-
static int
handle_opt(int opt)
{
#ifndef SRC_CONFIG_H_
#define SRC_CONFIG_H_
-#include <stdbool.h>
+#include <arpa/inet.h>
+#include <netdb.h>
+#include <netinet/in.h>
#include <stdint.h>
#include "config/filename_format.h"
#include "config/boolean.h"
#include <getopt.h>
-#include <stdbool.h>
-#include <string.h>
#include "log.h"
#define DEREFERENCE(void_value) (*((bool *) void_value))
#include "config/filename_format.h"
#include <getopt.h>
-#include <stdlib.h>
-#include <string.h>
#include "log.h"
#include "config/str.h"
#include "config/incidences.h"
-#include <getopt.h>
#include "incidence/incidence.h"
static void
#include "config/log_conf.h"
+#include <arpa/inet.h>
#include <getopt.h>
-#include <stdlib.h>
-#include <string.h>
+#include <netdb.h>
+#include <netinet/in.h>
+#include <stdint.h>
#include <syslog.h>
#include "log.h"
#include "config/mode.h"
#include <getopt.h>
-#include <stdlib.h>
-#include <string.h>
#include "log.h"
#include "config/str.h"
#include "config/output_format.h"
#include <getopt.h>
-#include <stdlib.h>
-#include <string.h>
#include "log.h"
#include "config/str.h"
#include "config/str.h"
#include <getopt.h>
-#include <stdlib.h>
-#include <string.h>
#include "alloc.h"
#include "log.h"
#include "config/string_array.h"
-#include <errno.h>
#include <getopt.h>
-#include <stdlib.h>
-#include <string.h>
#include "alloc.h"
#include "log.h"
#ifndef SRC_CONFIG_STRING_ARRAY_H_
#define SRC_CONFIG_STRING_ARRAY_H_
-#include <stddef.h>
#include "config/types.h"
struct string_array {
#include <jansson.h>
#include <stdbool.h>
-#include <stdint.h>
+#include <stddef.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include <sys/types.h>
+#include <unistd.h>
struct option_field;
struct group_fields;
#include "config/uint.h"
-#include <getopt.h>
#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
+#include <getopt.h>
#include "log.h"
static void
#include "config/work_offline.h"
#include <getopt.h>
-#include <stdbool.h>
#include "config.h"
#include "config/boolean.h"
#include "crypto/base64.h"
+#include <errno.h>
+#include <openssl/buffer.h>
#include <openssl/err.h>
#include <openssl/evp.h>
-#include <openssl/buffer.h>
-#include <errno.h>
-#include <string.h>
#include "alloc.h"
#include "log.h"
#ifndef SRC_BASE64_H_
#define SRC_BASE64_H_
+#include <openssl/bio.h>
#include <stdbool.h>
#include <stddef.h>
-#include <openssl/bio.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include <sys/types.h>
+#include <unistd.h>
int base64_decode(BIO *, unsigned char *, bool, size_t, size_t *);
int base64url_decode(char const *, unsigned char **, size_t *);
#include "crypto/hash.h"
-#include <errno.h>
#include <openssl/evp.h>
-#include <sys/stat.h>
-#include <sys/types.h> /* For blksize_t */
#include "alloc.h"
#include "common.h"
#ifndef SRC_HASH_H_
#define SRC_HASH_H_
-#include <stdbool.h>
-#include <stddef.h>
#include "types/uri.h"
#include "asn1/asn1c/BIT_STRING.h"
#include "daemon.h"
-#include <sys/stat.h>
-#include <sys/types.h>
#include <errno.h>
+#include <fcntl.h>
#include <signal.h>
+#include <stddef.h>
#include <stdlib.h>
+#include <string.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <sys/wait.h>
#include <unistd.h>
#include "log.h"
#ifndef SRC_DATA_STRUCTURE_ARRAY_LIST_H_
#define SRC_DATA_STRUCTURE_ARRAY_LIST_H_
-#include <errno.h>
-#include <stdlib.h>
#include "log.h"
#include "data_structure/common.h"
#define SRC_DATA_STRUCTURE_COMMON_H_
#include <stddef.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include <sys/types.h>
+#include <unistd.h>
typedef size_t array_index;
#include "data_structure/path_builder.h"
-#include <openssl/evp.h>
+#include <errno.h>
#include "alloc.h"
#include "log.h"
#ifndef SRC_DATA_STRUCTURE_PATH_BUILDER_H_
#define SRC_DATA_STRUCTURE_PATH_BUILDER_H_
-#include <stdbool.h>
-#include <stddef.h>
#include "types/uri.h"
struct path_builder {
#define UTHASH_VERSION 2.1.0
-#include <string.h> /* memcmp, memset, strlen */
-#include <stddef.h> /* ptrdiff_t */
-#include <stdlib.h> /* exit */
+#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>
/* These macros use decltype or the earlier __typeof GNU extension.
As decltype is only available in newer compilers (VS2010 or gcc 4.3+
} while (0)
#endif
-#include <stdint.h>
#ifndef uthash_malloc
#define uthash_malloc(sz) malloc(sz) /* malloc fcn */
#include "extension.h"
-#include <errno.h>
+#include <openssl/asn1t.h>
+#include <openssl/objects.h>
+#include <openssl/x509v3.h>
#include "cert_stack.h"
#include "common.h"
#include "log.h"
#ifndef SRC_EXTENSION_H_
#define SRC_EXTENSION_H_
-#include <stdbool.h>
+#include <openssl/asn1.h>
+#include <openssl/safestack.h>
#include <openssl/x509.h>
+#include <stdbool.h>
struct extension_metadata {
char const *name;
#include "file.h"
-#include <errno.h>
-#include <stdlib.h>
-#include <ftw.h> /* nftw() */
-#include <sys/types.h> /* opendir(), closedir() */
-#include <dirent.h> /* opendir(), readdir(), closedir() */
-
+#include <ftw.h>
#include "alloc.h"
#include "log.h"
#ifndef SRC_FILE_H_
#define SRC_FILE_H_
+#include <dirent.h>
+#include <errno.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
#include <sys/stat.h>
+#include <sys/types.h>
+#include <unistd.h>
/*
* The entire contents of the file, loaded into a buffer.
#include "http/http.h"
-#include <errno.h>
-#include <stdio.h>
-#include <unistd.h>
#include <curl/curl.h>
#include "alloc.h"
#include "incidence/incidence.h"
#include <assert.h>
-#include <stdbool.h>
-#include <string.h>
#include "common.h"
#include "json_parser.h"
#include "log.h"
#include "init.h"
-#include <errno.h>
-#include <stdio.h>
-#include <stdbool.h>
-#include <unistd.h>
-
#include "alloc.h"
+#include "config.h"
#include "log.h"
#include "http/http.h"
#include "json_handler.h"
#include <errno.h>
-#include <string.h>
#include "alloc.h"
#include "config.h"
#include <jansson.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>
int json_get_string(json_t *, char const *, char const **);
int json_get_int(json_t *, char const *, json_int_t *);
#include "line_file.h"
-#include <err.h>
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-
#include "alloc.h"
#include "file.h"
#include "log.h"
#include <stddef.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include <sys/types.h>
+#include <unistd.h>
struct line_file;
#include <execinfo.h>
#endif
-#include <openssl/bio.h>
+#include <errno.h>
#include <openssl/err.h>
#include <pthread.h>
#include <signal.h>
+#include <stdarg.h>
+#include <sys/stat.h>
#include <syslog.h>
#include <time.h>
-#include <unistd.h>
#include "config.h"
#include "thread_var.h"
#ifndef SRC_LOG_H_
#define SRC_LOG_H_
-#include <errno.h>
-#include <string.h>
#include <stdbool.h>
+#include <stdio.h>
#include "incidence/incidence.h"
/*
#include "notify.h"
-#include <err.h>
-#include <stddef.h>
#include "log.h"
#include "rtr/rtr.h"
#include "rtr/pdu_sender.h"
#ifndef SRC_OBJECT_BGPSEC_H_
#define SRC_OBJECT_BGPSEC_H_
-#include <openssl/x509.h>
#include "resource.h"
#include "rpp.h"
#include "object/certificate.h"
-#include <errno.h>
-#include <stdint.h> /* SIZE_MAX */
+#include <openssl/asn1t.h>
+#include <openssl/bio.h>
+#include <openssl/evp.h>
+#include <openssl/objects.h>
+#include <openssl/rsa.h>
+#include <openssl/x509v3.h>
#include <syslog.h>
-#include <time.h>
-#include <openssl/asn1.h>
-#include <openssl/opensslv.h>
#if OPENSSL_VERSION_MAJOR >= 3
#include <openssl/core_names.h>
#endif
-#include <sys/socket.h>
-
#include "algorithm.h"
#include "alloc.h"
#include "cert_stack.h"
#ifndef SRC_OBJECT_CERTIFICATE_H_
#define SRC_OBJECT_CERTIFICATE_H_
-#include <stdbool.h>
-#include <openssl/x509.h>
#include "certificate_refs.h"
#include "resource.h"
#include "rpp.h"
#include "object/crl.h"
-#include <errno.h>
+#include <openssl/bio.h>
+#include <openssl/bn.h>
#include <syslog.h>
#include "algorithm.h"
#include "extension.h"
#include "object/manifest.h"
-#include <errno.h>
-
#include "algorithm.h"
#include "common.h"
#include "log.h"
#include "object/name.h"
-#include <errno.h>
-#include <stdbool.h>
-#include <string.h>
+#include <openssl/asn1.h>
+#include <openssl/objects.h>
#include <syslog.h>
#include "alloc.h"
#ifndef SRC_OBJECT_NAME_H_
#define SRC_OBJECT_NAME_H_
-#include <stdbool.h>
#include <openssl/x509.h>
+#include <stdbool.h>
struct rfc5280_name;
#include "object/roa.h"
-#include <errno.h>
-#include <arpa/inet.h>
-#include <sys/socket.h>
-
#include "config.h"
#include "log.h"
#include "thread_var.h"
#include "object/signed_object.h"
-#include <errno.h>
#include "log.h"
#include "asn1/content_info.h"
#include "object/tal.h"
#include <errno.h>
-#include <pthread.h>
-#include <stdbool.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/queue.h>
-#include <sys/stat.h>
#include <openssl/evp.h>
+#include <sys/queue.h>
#include "alloc.h"
#include "cert_stack.h"
/* This is RFC 8630. */
-#include <stddef.h>
#include "types/uri.h"
#include "rtr/db/db_table.h"
#include "thread/thread_pool.h"
#include "object/vcard.h"
#include <errno.h>
-#include <stdbool.h>
#include "alloc.h"
#include "log.h"
#include "output_printer.h"
-#include <arpa/inet.h>
#include "common.h"
#include "config.h"
#include "file.h"
#include "resource.h"
#include <errno.h>
-#include <stdint.h> /* UINT32_MAX */
#include "alloc.h"
#include "cert_stack.h"
#include "types/address.h"
#include "resource/ip4.h"
#include "resource/ip6.h"
-#include <sys/socket.h>
-
/* The resources we extracted from one certificate. */
struct resources {
#ifndef SRC_RESOURCE_H_
#define SRC_RESOURCE_H_
-#include <stdbool.h>
#include "resource/asn.h"
#include "types/address.h"
#include "asn1/asn1c/ASIdentifiers.h"
#include "resource/asn.h"
-#include <errno.h>
-#include <limits.h>
-
#include "log.h"
#include "sorted_array.h"
#ifndef SRC_RESOURCE_IP4_H_
#define SRC_RESOURCE_IP4_H_
-#include <stdbool.h>
#include "types/address.h"
struct resources_ipv4;
#include "resource/ip6.h"
-#include <string.h>
#include "sorted_array.h"
static int
#ifndef SRC_RESOURCE_IP6_H_
#define SRC_RESOURCE_IP6_H_
-#include <stdbool.h>
#include "types/address.h"
struct resources_ipv6;
#ifndef SRC_RPP_H_
#define SRC_RPP_H_
+#include <openssl/safestack.h>
#include <openssl/x509.h>
#include "types/uri.h"
#include "rrdp/rrdp_loader.h"
-#include <sys/types.h>
+#include <errno.h>
#include <sys/stat.h>
-#include <unistd.h>
#include "log.h"
#include "thread_var.h"
#include "rrdp/rrdp_objects.h"
#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
#include "alloc.h"
#include "log.h"
#include "types/uri.h"
#ifndef SRC_RRDP_RRDP_OBJECTS_H_
#define SRC_RRDP_RRDP_OBJECTS_H_
-#include <stddef.h>
-#include <stdbool.h>
#include "data_structure/array_list.h"
/* Global RRDP files data */
#include "rrdp/rrdp_parser.h"
-#include <libxml/xmlreader.h>
-#include <openssl/evp.h>
-#include <sys/stat.h>
#include <ctype.h>
-#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
+#include <openssl/evp.h>
#include "crypto/base64.h"
#include "crypto/hash.h"
#ifndef SRC_RRDP_RRDP_PARSER_H_
#define SRC_RRDP_RRDP_PARSER_H_
-#include <stdbool.h>
#include "types/uri.h"
#include "rrdp/rrdp_objects.h"
#include "rsync/rsync.h"
#include <errno.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <signal.h> /* SIGINT, SIGQUIT, etc */
-#include <syslog.h>
-#include <sys/queue.h>
-#include <sys/stat.h>
+#include <fcntl.h>
+#include <signal.h>
#include <sys/wait.h>
+#include <syslog.h>
#include "alloc.h"
#include "common.h"
#include "rtr/db/db_table.h"
-#include <sys/types.h> /* AF_INET, AF_INET6 (needed in OpenBSD) */
-#include <sys/socket.h> /* AF_INET, AF_INET6 (needed in OpenBSD) */
+#include <errno.h>
#include "alloc.h"
#include "log.h"
#include "rtr/db/delta.h"
#include <stdatomic.h>
-#include <sys/types.h> /* AF_INET, AF_INET6 (needed in OpenBSD) */
-#include <sys/socket.h> /* AF_INET, AF_INET6 (needed in OpenBSD) */
#include "alloc.h"
#include "types/address.h"
#include "data_structure/array_list.h"
#include "rtr/db/deltas_array.h"
-#include <limits.h>
#include <errno.h>
+#include <limits.h>
+
#include "alloc.h"
#include "config.h"
#include "log.h"
#include "rtr/db/vrps.h"
-#include <pthread.h>
-#include <string.h>
-#include <syslog.h>
+#include <errno.h>
#include <time.h>
-#include <sys/queue.h>
#include "alloc.h"
#include "common.h"
+#include "config.h"
#include "output_printer.h"
#include "validation_handler.h"
#include "types/router_key.h"
* This module stores VRPs and their serials.
*/
-#include <stdbool.h>
#include "as_number.h"
#include "types/address.h"
#include "rtr/db/deltas_array.h"
#include "rtr/err_pdu.h"
-#include <unistd.h>
+#include <errno.h>
#include "alloc.h"
#include "rtr/pdu_sender.h"
#include "log.h"
#ifndef SRC_RTR_ERR_PDU_H_
#define SRC_RTR_ERR_PDU_H_
-#include <stdbool.h>
-#include <stdint.h>
-
#include "rtr/pdu.h"
/*
#include "rtr/pdu.h"
#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
-#include <syslog.h>
#include "alloc.h"
#include "common.h"
#ifndef RTR_PDU_H_
#define RTR_PDU_H_
-#include <sys/socket.h>
-#include <netinet/in.h>
-
#include "common.h"
#include "types/router_key.h"
#include "rtr/primitive_reader.h"
#include "rtr/pdu_handler.h"
#include <errno.h>
-#include <stddef.h>
-#include <unistd.h>
#include "rtr/err_pdu.h"
#include "log.h"
return send_prefix_pdu(args->fd, args->version, vrp, FLAG_ANNOUNCEMENT);
}
-
-
static int
send_base_router_key(struct router_key const *key, void *arg)
{
#include <errno.h>
#include <poll.h>
-#include <stdbool.h>
-#include <stdlib.h>
-#include <string.h>
#include <syslog.h>
-#include <unistd.h>
-#include <arpa/inet.h> /* INET_ADDRSTRLEN */
#include "alloc.h"
#include "common.h"
int send_error_report_pdu(int, uint8_t, uint16_t, struct rtr_request const *,
char *);
-
#endif /* SRC_RTR_PDU_SENDER_H_ */
#include "rtr/pdu_serializer.h"
-#include <stdlib.h>
-#include <string.h>
#include "rtr/primitive_writer.h"
static size_t
#include "rtr/primitive_reader.h"
-#include <err.h>
#include <errno.h>
-#include <stdlib.h>
-#include <stdint.h>
-#include <string.h>
-#include <unistd.h>
-#include <netinet/in.h>
#include "alloc.h"
#include "log.h"
#ifndef RTR_PRIMITIVE_READER_H_
#define RTR_PRIMITIVE_READER_H_
-#include <netinet/in.h> /* in_addr, in6_addr */
+#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 <unistd.h>
#include "common.h"
#ifndef RTR_PRIMITIVE_WRITER_H_
#define RTR_PRIMITIVE_WRITER_H_
+#include <arpa/inet.h>
+#include <netdb.h>
#include <netinet/in.h>
+#include <stdint.h>
unsigned char *write_int8(unsigned char *, uint8_t);
unsigned char *write_int16(unsigned char *, uint16_t);
#include <errno.h>
#include <fcntl.h>
-#include <limits.h>
-#include <log.h>
#include <poll.h>
-#include <pthread.h>
-#include <stdbool.h>
-#include <unistd.h>
-#include <netdb.h>
-#include <sys/types.h>
-#include <sys/socket.h>
#include "alloc.h"
#include "config.h"
#define RTR_RTR_H_
#include <arpa/inet.h>
+#include <netinet/in.h>
struct rtr_server {
int fd;
#include "slurm/db_slurm.h"
-#include <string.h>
+#include <errno.h>
#include <time.h>
-#include <arpa/inet.h>
#include "alloc.h"
#include "common.h"
result->list_size = db->csum_list.list_size;
result->slh_first = db->csum_list.slh_first;
}
-
#ifndef SRC_SLURM_db_slurm_H_
#define SRC_SLURM_db_slurm_H_
-#include <stdbool.h>
-#include <sys/queue.h>
#include <openssl/evp.h>
+#include <sys/queue.h>
#include "types/vrp.h"
#include "types/router_key.h"
unsigned char *router_public_key;
};
-
struct slurm_file_csum {
unsigned char csum[EVP_MAX_MD_SIZE];
unsigned int csum_len;
#include "slurm/slurm_loader.h"
-#include <stdlib.h>
-#include <stdbool.h>
-#include <sys/types.h> /* AF_INET, AF_INET6 (needed in OpenBSD) */
-#include <sys/socket.h> /* AF_INET, AF_INET6 (needed in OpenBSD) */
-
#include "alloc.h"
#include "log.h"
#include "config.h"
#include "slurm/slurm_parser.h"
#include <errno.h>
-#include <stdint.h>
-#include <string.h>
-#include <openssl/evp.h>
-#include <openssl/x509.h>
-#include <sys/types.h> /* AF_INET, AF_INET6 (needed in OpenBSD) */
-#include <sys/socket.h> /* AF_INET, AF_INET6 (needed in OpenBSD) */
+#include <openssl/asn1.h>
#include "crypto/base64.h"
#include "algorithm.h"
#include "sorted_array.h"
-#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
-
#include "alloc.h"
#include "log.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>
/*
* This implementation is not a generic sorted array; It's intended to store RFC
#include "state.h"
-#include <errno.h>
#include "alloc.h"
#include "cert_stack.h"
#include "log.h"
#ifndef SRC_STATE_H_
#define SRC_STATE_H_
-#include <openssl/x509.h>
#include "validation_handler.h"
#include "object/tal.h"
#include "str_token.h"
-#include <errno.h>
-#include <string.h>
+#include <openssl/bio.h>
+#include <stdint.h>
#include "alloc.h"
#include "log.h"
#ifndef SRC_STR_TOKEN_H_
#define SRC_STR_TOKEN_H_
+#include <openssl/asn1.h>
+#include <openssl/bn.h>
#include <stdbool.h>
#include <stddef.h>
-#include <openssl/asn1.h>
-#include <openssl/x509.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include <sys/types.h>
+#include <unistd.h>
int ia5s2string(ASN1_IA5STRING *, char **);
int BN2string(BIGNUM *, char **);
#include "thread/thread_pool.h"
#include <sys/queue.h>
-#include <pthread.h>
-#include <stdlib.h>
-#include <string.h>
#include "alloc.h"
#include "common.h"
#include "log.h"
#include "thread_var.h"
-#include <errno.h>
#include <pthread.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <arpa/inet.h>
-#include <sys/socket.h>
#include "alloc.h"
#include "config.h"
#include "types/address.h"
-#include <stdlib.h> /* strtoul() */
-#include <string.h> /* memset(), memcpy() */
-#include <arpa/inet.h> /* inet_ntop(), htonl() */
+#include <errno.h>
#include "log.h"
#include "thread_var.h"
if (str == NULL)
strcpy(buffer, "(unprintable address)");
}
-
#define SRC_TYPES_ADDRESS_H_
#include <stdbool.h>
-#include <netinet/in.h>
#include <sys/socket.h>
#include "asn1/asn1c/IPAddress.h"
#include "asn1/asn1c/IPAddressRange.h"
#ifndef SRC_TYPES_ROUTER_KEY_H_
#define SRC_TYPES_ROUTER_KEY_H_
+#include <arpa/inet.h>
+#include <netdb.h>
+#include <netinet/in.h>
#include <stdint.h>
-#include <stdlib.h>
/*
* SKI is always 20 bytes long rfc6487#section-4.8.2:
#ifndef SRC_TYPES_SERIAL_H_
#define SRC_TYPES_SERIAL_H_
+#include <arpa/inet.h>
+#include <netdb.h>
+#include <netinet/in.h>
#include <stdbool.h>
#include <stdint.h>
#include "types/uri.h"
-#include <errno.h>
-#include <strings.h>
#include "alloc.h"
#include "common.h"
+#include "config.h"
#include "log.h"
#include "state.h"
#include "str_token.h"
#include "thread_var.h"
+#include "config/filename_format.h"
#include "data_structure/path_builder.h"
/**
#include "types/vrp.h"
-#include <arpa/inet.h>
#include "log.h"
#include "types/address.h"
#ifndef SRC_TYPES_VRP_H_
#define SRC_TYPES_VRP_H_
+#include <arpa/inet.h>
+#include <netdb.h>
+#include <netinet/in.h>
#include <stdbool.h>
#include <stdint.h>
-#include <netinet/in.h>
/*
* A ROA.
#include "validation_handler.h"
-#include <errno.h>
#include "log.h"
#include "thread_var.h"
#include "validation_run.h"
-#include <stdbool.h>
-#include <unistd.h>
+#include <errno.h>
#include "config.h"
#include "log.h"
#include "xml/relax_ng.h"
-#include <libxml/parser.h>
-#include <libxml/relaxng.h>
-#include <libxml/xmlmemory.h>
-#include <errno.h>
+#include <stdarg.h>
+#include <stddef.h>
#include <stdlib.h>
+#include <unistd.h>
#include "log.h"