Skip to content

ssl: add ability to control kex groups and sig algs#17

Open
huwcbjones wants to merge 3 commits into
masterfrom
huw/ssl-ctx-options
Open

ssl: add ability to control kex groups and sig algs#17
huwcbjones wants to merge 3 commits into
masterfrom
huw/ssl-ctx-options

Conversation

@huwcbjones

Copy link
Copy Markdown
Contributor
  • rtmpserver: add kex-groups prop
  • rtmpserver: add tls-sig-algs prop

@huwcbjones huwcbjones force-pushed the huw/ssl-ctx-options branch 3 times, most recently from 26e0060 to 560603d Compare June 18, 2026 14:22
@havardgraff havardgraff requested a review from Copilot June 21, 2026 13:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds configurability for TLS key exchange groups and TLS signature algorithms in PexRTMPServer by introducing new GObject properties and plumbing them through client/server SSL context creation.

Changes:

  • Extend SSL helper APIs (ssl_add_incoming / ssl_add_outgoing) to accept kex_groups and sig_algs.
  • Add new server properties/fields to carry these TLS settings and pass them into client SSL setup.
  • Apply the configured groups/signature algorithms to OpenSSL SSL_CTX for incoming/outgoing connections (OpenSSL 3+).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
utils/ssl.h Updates SSL helper function prototypes to accept kex groups and sig alg lists.
utils/ssl.c Attempts to set OpenSSL SSL_CTX kex groups and signature algorithm lists based on new parameters.
src/pexrtmpserver.c Adds new GObject properties/fields and passes them into client SSL creation paths.
src/client.h Updates client SSL helper prototypes to accept and forward new TLS config parameters.
src/client.c Forwards new TLS config parameters to SSL helper functions when creating SSL contexts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread utils/ssl.c Outdated
Comment thread utils/ssl.c Outdated
Comment thread utils/ssl.c Outdated
Comment thread utils/ssl.c Outdated
Comment thread src/pexrtmpserver.c
Comment thread src/pexrtmpserver.c Outdated
Comment thread src/pexrtmpserver.c
Comment thread src/pexrtmpserver.c
Comment thread utils/ssl.h

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.

Comment thread utils/ssl.c Outdated
Comment thread utils/ssl.c
Comment thread utils/ssl.c Outdated
Comment thread utils/ssl.c Outdated
Comment thread src/pexrtmpserver.c
Comment thread src/pexrtmpserver.c
Comment thread src/pexrtmpserver.c
Comment on lines +1274 to +1277
g_object_class_install_property (gobject_class, PROP_TLS_SIG_ALGS,
g_param_spec_string ("tls-sig-algs", "TLS Sig Algs",
"List of enabled TLS signature algorithms", DEFAULT_SIG_ALGS,
G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add some coverage for this properties?

@huwcbjones huwcbjones force-pushed the huw/ssl-ctx-options branch from 52abd77 to 50fa0fe Compare June 22, 2026 16:51
@huwcbjones huwcbjones marked this pull request as ready for review June 22, 2026 16:51
@huwcbjones huwcbjones requested a review from camilo-celis June 22, 2026 16:52
Comment thread src/pexrtmpserver.c
Comment on lines +1274 to +1277
g_object_class_install_property (gobject_class, PROP_TLS_SIG_ALGS,
g_param_spec_string ("tls-sig-algs", "TLS Sig Algs",
"List of enabled TLS signature algorithms", DEFAULT_SIG_ALGS,
G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add some coverage for this properties?

Comment thread utils/ssl.c
@huwcbjones huwcbjones force-pushed the huw/ssl-ctx-options branch from 50fa0fe to 5f53585 Compare June 23, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants