blob: c65288404631c498afdb7aab5f47031d1009d4cb [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"
41#include "mbedtls/certs.h"
42#include "mbedtls/chacha20.h"
43#include "mbedtls/chachapoly.h"
Andrzej Kurek991f9fe2018-07-02 09:08:21 -040044#include "mbedtls/check_config.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040045#include "mbedtls/cipher.h"
46#include "mbedtls/cipher_internal.h"
47#include "mbedtls/cmac.h"
48#include "mbedtls/compat-1.3.h"
49#include "mbedtls/ctr_drbg.h"
50#include "mbedtls/debug.h"
51#include "mbedtls/des.h"
52#include "mbedtls/dhm.h"
53#include "mbedtls/ecdh.h"
54#include "mbedtls/ecdsa.h"
55#include "mbedtls/ecjpake.h"
56#include "mbedtls/ecp.h"
57#include "mbedtls/ecp_internal.h"
58#include "mbedtls/entropy.h"
59#include "mbedtls/entropy_poll.h"
60#include "mbedtls/error.h"
61#include "mbedtls/gcm.h"
62#include "mbedtls/havege.h"
63#include "mbedtls/hkdf.h"
64#include "mbedtls/hmac_drbg.h"
Andrzej Kurek991f9fe2018-07-02 09:08:21 -040065#include "mbedtls/md.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040066#include "mbedtls/md2.h"
67#include "mbedtls/md4.h"
68#include "mbedtls/md5.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040069#include "mbedtls/md_internal.h"
70#include "mbedtls/net.h"
71#include "mbedtls/net_sockets.h"
Jaeden Amero4ed32d02018-07-24 16:51:09 +010072#include "mbedtls/nist_kw.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040073#include "mbedtls/oid.h"
74#include "mbedtls/padlock.h"
75#include "mbedtls/pem.h"
Andrzej Kurek991f9fe2018-07-02 09:08:21 -040076#include "mbedtls/pk.h"
77#include "mbedtls/pk_internal.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040078#include "mbedtls/pkcs11.h"
79#include "mbedtls/pkcs12.h"
80#include "mbedtls/pkcs5.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040081#include "mbedtls/platform_time.h"
82#include "mbedtls/platform_util.h"
83#include "mbedtls/poly1305.h"
84#include "mbedtls/ripemd160.h"
85#include "mbedtls/rsa.h"
86#include "mbedtls/rsa_internal.h"
87#include "mbedtls/sha1.h"
88#include "mbedtls/sha256.h"
89#include "mbedtls/sha512.h"
Andrzej Kurek991f9fe2018-07-02 09:08:21 -040090#include "mbedtls/ssl.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040091#include "mbedtls/ssl_cache.h"
92#include "mbedtls/ssl_ciphersuites.h"
93#include "mbedtls/ssl_cookie.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -040094#include "mbedtls/ssl_internal.h"
95#include "mbedtls/ssl_ticket.h"
96#include "mbedtls/threading.h"
97#include "mbedtls/timing.h"
98#include "mbedtls/version.h"
Andrzej Kurek991f9fe2018-07-02 09:08:21 -040099#include "mbedtls/x509.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -0400100#include "mbedtls/x509_crl.h"
101#include "mbedtls/x509_crt.h"
102#include "mbedtls/x509_csr.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -0400103#include "mbedtls/xtea.h"
104
105#if defined(MBEDTLS_PLATFORM_C)
106#include "mbedtls/platform.h"
Andrzej Kurek40741f82018-03-14 17:24:01 -0400107#endif
108
109#if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
110#include "mbedtls/memory_buffer_alloc.h"
111#endif
112
Andrzej Kurek89c048c2018-03-16 07:37:44 -0400113int main()
Andrzej Kurek40741f82018-03-14 17:24:01 -0400114{
Andrzej Kurek89c048c2018-03-16 07:37:44 -0400115 mbedtls_platform_context *ctx = NULL;
116 mbedtls_platform_setup(ctx);
117 mbedtls_printf("CPP Build test\n");
118 mbedtls_platform_teardown(ctx);
Andrzej Kurek40741f82018-03-14 17:24:01 -0400119}