Andrzej Kurek | 40741f8 | 2018-03-14 17:24:01 -0400 | [diff] [blame^] | 1 | /* |
| 2 | * A C++ program that includes all of the mbed TLS header files, in order to |
| 3 | * test if no errors are raised in the process. |
| 4 | * |
| 5 | * Copyright (C) 2018, ARM Limited, All Rights Reserved |
| 6 | * SPDX-License-Identifier: Apache-2.0 |
| 7 | * |
| 8 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 9 | * not use this file except in compliance with the License. |
| 10 | * You may obtain a copy of the License at |
| 11 | * |
| 12 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | * |
| 14 | * Unless required by applicable law or agreed to in writing, software |
| 15 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 16 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | * See the License for the specific language governing permissions and |
| 18 | * limitations under the License. |
| 19 | * |
| 20 | * This file is part of mbed TLS (https://tls.mbed.org) |
| 21 | */ |
| 22 | |
| 23 | #if !defined(MBEDTLS_CONFIG_FILE) |
| 24 | #include "mbedtls/config.h" |
| 25 | #else |
| 26 | #include MBEDTLS_CONFIG_FILE |
| 27 | #endif |
| 28 | |
| 29 | #include "mbedtls/aes.h" |
| 30 | #include "mbedtls/aesni.h" |
| 31 | #include "mbedtls/arc4.h" |
| 32 | #include "mbedtls/aria.h" |
| 33 | #include "mbedtls/asn1.h" |
| 34 | #include "mbedtls/asn1write.h" |
| 35 | #include "mbedtls/base64.h" |
| 36 | #include "mbedtls/bignum.h" |
| 37 | #include "mbedtls/blowfish.h" |
| 38 | #include "mbedtls/bn_mul.h" |
| 39 | #include "mbedtls/camellia.h" |
| 40 | #include "mbedtls/ccm.h" |
| 41 | #include "mbedtls/certs.h" |
| 42 | #include "mbedtls/chacha20.h" |
| 43 | #include "mbedtls/chachapoly.h" |
| 44 | #include "mbedtls/cipher.h" |
| 45 | #include "mbedtls/cipher_internal.h" |
| 46 | #include "mbedtls/cmac.h" |
| 47 | #include "mbedtls/compat-1.3.h" |
| 48 | #include "mbedtls/ctr_drbg.h" |
| 49 | #include "mbedtls/debug.h" |
| 50 | #include "mbedtls/des.h" |
| 51 | #include "mbedtls/dhm.h" |
| 52 | #include "mbedtls/ecdh.h" |
| 53 | #include "mbedtls/ecdsa.h" |
| 54 | #include "mbedtls/ecjpake.h" |
| 55 | #include "mbedtls/ecp.h" |
| 56 | #include "mbedtls/ecp_internal.h" |
| 57 | #include "mbedtls/entropy.h" |
| 58 | #include "mbedtls/entropy_poll.h" |
| 59 | #include "mbedtls/error.h" |
| 60 | #include "mbedtls/gcm.h" |
| 61 | #include "mbedtls/havege.h" |
| 62 | #include "mbedtls/hkdf.h" |
| 63 | #include "mbedtls/hmac_drbg.h" |
| 64 | #include "mbedtls/md2.h" |
| 65 | #include "mbedtls/md4.h" |
| 66 | #include "mbedtls/md5.h" |
| 67 | #include "mbedtls/md.h" |
| 68 | #include "mbedtls/md_internal.h" |
| 69 | #include "mbedtls/net.h" |
| 70 | #include "mbedtls/net_sockets.h" |
| 71 | #include "mbedtls/oid.h" |
| 72 | #include "mbedtls/padlock.h" |
| 73 | #include "mbedtls/pem.h" |
| 74 | #include "mbedtls/pkcs11.h" |
| 75 | #include "mbedtls/pkcs12.h" |
| 76 | #include "mbedtls/pkcs5.h" |
| 77 | #include "mbedtls/pk.h" |
| 78 | #include "mbedtls/pk_internal.h" |
| 79 | #include "mbedtls/platform_time.h" |
| 80 | #include "mbedtls/platform_util.h" |
| 81 | #include "mbedtls/poly1305.h" |
| 82 | #include "mbedtls/ripemd160.h" |
| 83 | #include "mbedtls/rsa.h" |
| 84 | #include "mbedtls/rsa_internal.h" |
| 85 | #include "mbedtls/sha1.h" |
| 86 | #include "mbedtls/sha256.h" |
| 87 | #include "mbedtls/sha512.h" |
| 88 | #include "mbedtls/ssl_cache.h" |
| 89 | #include "mbedtls/ssl_ciphersuites.h" |
| 90 | #include "mbedtls/ssl_cookie.h" |
| 91 | #include "mbedtls/ssl.h" |
| 92 | #include "mbedtls/ssl_internal.h" |
| 93 | #include "mbedtls/ssl_ticket.h" |
| 94 | #include "mbedtls/threading.h" |
| 95 | #include "mbedtls/timing.h" |
| 96 | #include "mbedtls/version.h" |
| 97 | #include "mbedtls/x509_crl.h" |
| 98 | #include "mbedtls/x509_crt.h" |
| 99 | #include "mbedtls/x509_csr.h" |
| 100 | #include "mbedtls/x509.h" |
| 101 | #include "mbedtls/xtea.h" |
| 102 | |
| 103 | #if defined(MBEDTLS_PLATFORM_C) |
| 104 | #include "mbedtls/platform.h" |
| 105 | #else |
| 106 | #include <stdio.h> |
| 107 | #include <stdlib.h> |
| 108 | #define mbedtls_printf printf |
| 109 | #define mbedtls_snprintf snprintf |
| 110 | #define mbedtls_exit exit |
| 111 | #define MBEDTLS_EXIT_SUCCESS EXIT_SUCCESS |
| 112 | #define MBEDTLS_EXIT_FAILURE EXIT_FAILURE |
| 113 | #endif |
| 114 | |
| 115 | #if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C) |
| 116 | #include "mbedtls/memory_buffer_alloc.h" |
| 117 | #endif |
| 118 | |
| 119 | int main( int argc, char *argv[] ) |
| 120 | { |
| 121 | (void) argc; |
| 122 | (void) argv; |
| 123 | } |