1 /* 2 * This program is a dummy C++ program to ensure Mbed TLS library header files 3 * can be included and built with a C++ compiler. 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/check_config.h" 45 #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" 65 #include "mbedtls/md.h" 66 #include "mbedtls/md2.h" 67 #include "mbedtls/md4.h" 68 #include "mbedtls/md5.h" 69 #include "mbedtls/md_internal.h" 70 #include "mbedtls/net.h" 71 #include "mbedtls/net_sockets.h" 72 #include "mbedtls/nist_kw.h" 73 #include "mbedtls/oid.h" 74 #include "mbedtls/padlock.h" 75 #include "mbedtls/pem.h" 76 #include "mbedtls/pk.h" 77 #include "mbedtls/pk_internal.h" 78 #include "mbedtls/pkcs11.h" 79 #include "mbedtls/pkcs12.h" 80 #include "mbedtls/pkcs5.h" 81 #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" 90 #include "mbedtls/ssl.h" 91 #include "mbedtls/ssl_cache.h" 92 #include "mbedtls/ssl_ciphersuites.h" 93 #include "mbedtls/ssl_cookie.h" 94 #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" 99 #include "mbedtls/x509.h" 100 #include "mbedtls/x509_crl.h" 101 #include "mbedtls/x509_crt.h" 102 #include "mbedtls/x509_csr.h" 103 #include "mbedtls/xtea.h" 104 105 #if defined(MBEDTLS_PLATFORM_C) 106 #include "mbedtls/platform.h" 107 #endif 108 109 #if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C) 110 #include "mbedtls/memory_buffer_alloc.h" 111 #endif 112 main()113int main() 114 { 115 mbedtls_platform_context *ctx = NULL; 116 mbedtls_platform_setup(ctx); 117 mbedtls_printf("CPP Build test\n"); 118 mbedtls_platform_teardown(ctx); 119 } 120