eXosip_tls_ctx_s(3)

πŸ“¦ version 5.3.0, in epel 9

✨ eXosip_tls_ctx_s ✨

okay so bestie, this page is from libeXosip2 and it's all about the struct eXosip_tls_ctx_s β€” literally the whole TLS vibe in one lil bundle πŸ’…


🌸 SYNOPSIS 🌸

#include <eX_setup.h>

πŸŽ€ Data Fields

  • char random_file [1024]
  • char dh_param [1024]
  • char root_ca_cert [1024]
  • char cipher_list [2048]
  • unsigned long tls_flags
  • unsigned long dtls_flags
  • eXosip_tls_credentials_t client
  • eXosip_tls_credentials_t server

πŸ¦‹ Detailed Description πŸ¦‹

so this struct is the whole TLS-context situation for eXosip, and it's made of three besties that always show up together: a certificate, a corresponding private key, and its password πŸ”‘

when a client connects to a server and you're like "hmm actually I want to verify that certificate", you literally just point the root_ca_cert parameter at a file holding all your trusted CA. iconic. (there's an example file over at https://pki.google.com/roots.pem if you need one ✨)

🫢 on Windows & Macosx the trusted certificates from the store are loaded automatically β€” no cap, you don't have to do anything.

πŸ’– Field Documentation πŸ’–

🌈 char eXosip_tls_ctx_s::random_file[1024]

absolute path to a file with random(!) data β€” yes, actually random, that's the whole point πŸ™ˆ

πŸ“ char eXosip_tls_ctx_s::dh_param[1024]

absolute path to a file that's necessary for diffie hellman key exchange πŸ”₯

🧚 char eXosip_tls_ctx_s::root_ca_cert[1024]

absolute path to the file with known rootCAs πŸ‘‘

⭐ char eXosip_tls_ctx_s::cipher_list[2048]

openssl cipher list, and the default is HIGH:!COMPLEMENTOFDEFAULT:!kRSA:!PSK:!SRP β€” write it exactly like that, bestie, every character matters πŸ’€

πŸ’œ char eXosip_tls_ctx_s::tls_flags (unsigned long)

openssl additionnal flag (example: SSL_OP_NO_TLSv1, SSL_OP_NO_TLSv1_1) 🌸

πŸŽ€ char eXosip_tls_ctx_s::dtls_flags (unsigned long)

openssl additionnal flag (example: SSL_OP_NO_DTLSv1) 🌸

πŸ’… eXosip_tls_credentials_t eXosip_tls_ctx_s::client

credential of the client β€” main character energy 🫢

🌟 eXosip_tls_credentials_t eXosip_tls_ctx_s::server

credential of the server β€” also main character energy 🫢


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libeXosip2 from the source code. slay, Doxygen, doing the work so nobody had to ✨


πŸ¦‹ and that's the whole page! brought to you by libeXosip2, Version 5.3.0, dated Thu May 18 2023 β€” mwah, go configure your TLS context, bestie πŸ’–
πŸ“¦ where this page comes from