/ssl_c_example

ssl_c_example

Primary LanguageCApache License 2.0Apache-2.0

English:

ssl_c_example is a "C" code example to implement the encrypted communication.

In this example,I use the simple code to how to use C programming language and Openssl library finished the encrypted communication.

I use Openssl to communicate in a encrypted way and I also show how to communicate use the TCP socket at the same time.

The project was compiled by VS2022 on Windows 10 and gcc12 on Debian.

This project use OpenSSL by using (https://github.com/janbar/openssl-cmake);

The project(https://github.com/orid2004/ZipCloudC/tree/master/client) give me a good idea about how to write the simple code.

中文版本:

ssl_c_example 是一个使用openssl进行加密通讯的C语言示例。 在这个示例中,我使用最基本的代码演示了如何使用C语言和Openssl库进行加密通信。 同时也演示了在使用OpenSSL的过程中,使用原始的TCP socket进行通讯。

代码在Windows 10上使用VS2022编译,在Debian 平台上,使用gcc12编译。

代码中使用的OpenSSL库来自(https://github.com/janbar/openssl-cmake).

示例代码参考了(https://github.com/orid2004/ZipCloudC/tree/master/client).