TLS/SSL プロトコルを使用して websocket サーバーに接続するための次のソースがあります。
struct sessionTLS {
int sid;
SSL_CTX *ctx;
SSL *ssl;
};
sessionTLS tls ;
tls.ctx = SSL_CTX_new(TLS_client_method());
libressl マニュアルによると: https://man.openbsd.org/SSL_CTX_new.3
TLS_method(), TLS_server_method(), TLS_client_method()
These are the general-purpose version-flexible SSL/TLS methods.
The actual protocol version used will be negotiated to the highest version
mutually supported by the client and the server. The supported protocols are
TLSv1, TLSv1.1, TLSv1.2, and TLSv1.3. Applications should use these methods
and avoid the version-specific methods described below.
次に、実際のプロトコルを知る方法を知りたいですか?! サーバーとクライアントの間でネゴシエーションが行われた後、SSLV3 がプロトコルである、TLSV1 がプロトコルであるなどのメッセージが表示されるはずです。
私は TLS/SSL の初心者です。提案や情報をいただければ幸いです。