2
0

tls_client_main.adb 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. -- tls_client_main.adb
  2. --
  3. -- Copyright (C) 2006-2023 wolfSSL Inc.
  4. --
  5. -- This file is part of wolfSSL.
  6. --
  7. -- wolfSSL is free software; you can redistribute it and/or modify
  8. -- it under the terms of the GNU General Public License as published by
  9. -- the Free Software Foundation; either version 2 of the License, or
  10. -- (at your option) any later version.
  11. --
  12. -- wolfSSL is distributed in the hope that it will be useful,
  13. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. -- GNU General Public License for more details.
  16. --
  17. -- You should have received a copy of the GNU General Public License
  18. -- along with this program; if not, write to the Free Software
  19. -- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
  20. --
  21. with Tls_Client; pragma Elaborate_All (Tls_Client);
  22. with SPARK_Sockets; pragma Elaborate_All (SPARK_Sockets);
  23. with WolfSSL; pragma Elaborate_All (WolfSSL);
  24. -- Application entry point for the Ada translation of the
  25. -- tls client v1.3 example in C.
  26. procedure Tls_Client_Main is
  27. Ssl : WolfSSL.WolfSSL_Type;
  28. Ctx : WolfSSL.Context_Type;
  29. C : SPARK_Sockets.Optional_Socket;
  30. begin
  31. Tls_Client.Run (Ssl, Ctx, Client => C);
  32. end Tls_Client_Main;