blob: 81ca32c8febbb6edb8a57d1ae12ca2bf3a2702b7 [file] [log] [blame]
Andrzej Kurek40741f82018-03-14 17:24:01 -04001/*
Andrzej Kurek89c048c2018-03-16 07:37:44 -04002 * This program is a dummy C++ program to ensure Mbed TLS library header files
3 * can be included and built with a C++ compiler.
Andrzej Kurek40741f82018-03-14 17:24:01 -04004 *
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"
Andrzej Kurek40741f82018-03-14 17:24:01 -040041#include "mbedtls/chacha20.h"
42#include "mbedtls/chachapoly.h"
Andrzej Kurek991f9fe2018-07-02 09:08:21 -040043#include "mbedtls/check_config.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040044#include "mbedtls/cipher.h"
45#include "mbedtls/cipher_internal.h"
46#include "mbedtls/cmac.h"
Jaeden Amero3a0f08d2019-06-27 17:32:49 +010047#include "mbedtls/compat-1.3.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040048#include "mbedtls/ctr_drbg.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040049#include "mbedtls/des.h"
50#include "mbedtls/dhm.h"
51#include "mbedtls/ecdh.h"
52#include "mbedtls/ecdsa.h"
53#include "mbedtls/ecjpake.h"
54#include "mbedtls/ecp.h"
55#include "mbedtls/ecp_internal.h"
56#include "mbedtls/entropy.h"
57#include "mbedtls/entropy_poll.h"
58#include "mbedtls/error.h"
59#include "mbedtls/gcm.h"
60#include "mbedtls/havege.h"
61#include "mbedtls/hkdf.h"
62#include "mbedtls/hmac_drbg.h"
Andrzej Kurek991f9fe2018-07-02 09:08:21 -040063#include "mbedtls/md.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040064#include "mbedtls/md2.h"
65#include "mbedtls/md4.h"
66#include "mbedtls/md5.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040067#include "mbedtls/md_internal.h"
Jaeden Amero4ed32d02018-07-24 16:51:09 +010068#include "mbedtls/nist_kw.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040069#include "mbedtls/oid.h"
70#include "mbedtls/padlock.h"
71#include "mbedtls/pem.h"
Andrzej Kurek991f9fe2018-07-02 09:08:21 -040072#include "mbedtls/pk.h"
73#include "mbedtls/pk_internal.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040074#include "mbedtls/pkcs12.h"
75#include "mbedtls/pkcs5.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040076#include "mbedtls/platform_time.h"
77#include "mbedtls/platform_util.h"
78#include "mbedtls/poly1305.h"
Peter Kolbus2ae29ba2019-04-14 14:01:13 -050079#include "mbedtls/psa_util.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040080#include "mbedtls/ripemd160.h"
81#include "mbedtls/rsa.h"
82#include "mbedtls/rsa_internal.h"
83#include "mbedtls/sha1.h"
84#include "mbedtls/sha256.h"
85#include "mbedtls/sha512.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040086#include "mbedtls/threading.h"
87#include "mbedtls/timing.h"
88#include "mbedtls/version.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040089#include "mbedtls/xtea.h"
90
91#if defined(MBEDTLS_PLATFORM_C)
92#include "mbedtls/platform.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040093#endif
94
95#if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
96#include "mbedtls/memory_buffer_alloc.h"
97#endif
98
Andrzej Kurek89c048c2018-03-16 07:37:44 -040099int main()
Andrzej Kurek40741f82018-03-14 17:24:01 -0400100{
Andrzej Kurek89c048c2018-03-16 07:37:44 -0400101 mbedtls_platform_context *ctx = NULL;
102 mbedtls_platform_setup(ctx);
103 mbedtls_printf("CPP Build test\n");
104 mbedtls_platform_teardown(ctx);
Andrzej Kurek40741f82018-03-14 17:24:01 -0400105}