cpp_dummy_build.cpp 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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 The Mbed TLS Contributors
  6. * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
  7. *
  8. * This file is provided under the Apache License 2.0, or the
  9. * GNU General Public License v2.0 or later.
  10. *
  11. * **********
  12. * Apache License 2.0:
  13. *
  14. * Licensed under the Apache License, Version 2.0 (the "License"); you may
  15. * not use this file except in compliance with the License.
  16. * You may obtain a copy of the License at
  17. *
  18. * http://www.apache.org/licenses/LICENSE-2.0
  19. *
  20. * Unless required by applicable law or agreed to in writing, software
  21. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  22. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  23. * See the License for the specific language governing permissions and
  24. * limitations under the License.
  25. *
  26. * **********
  27. *
  28. * **********
  29. * GNU General Public License v2.0 or later:
  30. *
  31. * This program is free software; you can redistribute it and/or modify
  32. * it under the terms of the GNU General Public License as published by
  33. * the Free Software Foundation; either version 2 of the License, or
  34. * (at your option) any later version.
  35. *
  36. * This program is distributed in the hope that it will be useful,
  37. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  38. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  39. * GNU General Public License for more details.
  40. *
  41. * You should have received a copy of the GNU General Public License along
  42. * with this program; if not, write to the Free Software Foundation, Inc.,
  43. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  44. *
  45. * **********
  46. */
  47. #if !defined(MBEDTLS_CONFIG_FILE)
  48. #include "mbedtls/config.h"
  49. #else
  50. #include MBEDTLS_CONFIG_FILE
  51. #endif
  52. #include "mbedtls/aes.h"
  53. #include "mbedtls/aesni.h"
  54. #include "mbedtls/arc4.h"
  55. #include "mbedtls/aria.h"
  56. #include "mbedtls/asn1.h"
  57. #include "mbedtls/asn1write.h"
  58. #include "mbedtls/base64.h"
  59. #include "mbedtls/bignum.h"
  60. #include "mbedtls/blowfish.h"
  61. #include "mbedtls/bn_mul.h"
  62. #include "mbedtls/camellia.h"
  63. #include "mbedtls/ccm.h"
  64. #include "mbedtls/certs.h"
  65. #include "mbedtls/chacha20.h"
  66. #include "mbedtls/chachapoly.h"
  67. #include "mbedtls/check_config.h"
  68. #include "mbedtls/cipher.h"
  69. #include "mbedtls/cipher_internal.h"
  70. #include "mbedtls/cmac.h"
  71. #include "mbedtls/compat-1.3.h"
  72. #include "mbedtls/ctr_drbg.h"
  73. #include "mbedtls/debug.h"
  74. #include "mbedtls/des.h"
  75. #include "mbedtls/dhm.h"
  76. #include "mbedtls/ecdh.h"
  77. #include "mbedtls/ecdsa.h"
  78. #include "mbedtls/ecjpake.h"
  79. #include "mbedtls/ecp.h"
  80. #include "mbedtls/ecp_internal.h"
  81. #include "mbedtls/entropy.h"
  82. #include "mbedtls/entropy_poll.h"
  83. #include "mbedtls/error.h"
  84. #include "mbedtls/gcm.h"
  85. #include "mbedtls/havege.h"
  86. #include "mbedtls/hkdf.h"
  87. #include "mbedtls/hmac_drbg.h"
  88. #include "mbedtls/md.h"
  89. #include "mbedtls/md2.h"
  90. #include "mbedtls/md4.h"
  91. #include "mbedtls/md5.h"
  92. #include "mbedtls/md_internal.h"
  93. #include "mbedtls/net.h"
  94. #include "mbedtls/net_sockets.h"
  95. #include "mbedtls/nist_kw.h"
  96. #include "mbedtls/oid.h"
  97. #include "mbedtls/padlock.h"
  98. #include "mbedtls/pem.h"
  99. #include "mbedtls/pk.h"
  100. #include "mbedtls/pk_internal.h"
  101. #include "mbedtls/pkcs11.h"
  102. #include "mbedtls/pkcs12.h"
  103. #include "mbedtls/pkcs5.h"
  104. #include "mbedtls/platform_time.h"
  105. #include "mbedtls/platform_util.h"
  106. #include "mbedtls/poly1305.h"
  107. #include "mbedtls/ripemd160.h"
  108. #include "mbedtls/rsa.h"
  109. #include "mbedtls/rsa_internal.h"
  110. #include "mbedtls/sha1.h"
  111. #include "mbedtls/sha256.h"
  112. #include "mbedtls/sha512.h"
  113. #include "mbedtls/ssl.h"
  114. #include "mbedtls/ssl_cache.h"
  115. #include "mbedtls/ssl_ciphersuites.h"
  116. #include "mbedtls/ssl_cookie.h"
  117. #include "mbedtls/ssl_internal.h"
  118. #include "mbedtls/ssl_ticket.h"
  119. #include "mbedtls/threading.h"
  120. #include "mbedtls/timing.h"
  121. #include "mbedtls/version.h"
  122. #include "mbedtls/x509.h"
  123. #include "mbedtls/x509_crl.h"
  124. #include "mbedtls/x509_crt.h"
  125. #include "mbedtls/x509_csr.h"
  126. #include "mbedtls/xtea.h"
  127. #if defined(MBEDTLS_PLATFORM_C)
  128. #include "mbedtls/platform.h"
  129. #endif
  130. #if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
  131. #include "mbedtls/memory_buffer_alloc.h"
  132. #endif
  133. int main()
  134. {
  135. mbedtls_platform_context *ctx = NULL;
  136. mbedtls_platform_setup(ctx);
  137. mbedtls_printf("CPP Build test\n");
  138. mbedtls_platform_teardown(ctx);
  139. }