Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcoap_dtls: Selecting transport at run time is not possible #16674

Closed
miri64 opened this issue Jul 22, 2021 · 0 comments · Fixed by #16688
Closed

gcoap_dtls: Selecting transport at run time is not possible #16674

miri64 opened this issue Jul 22, 2021 · 0 comments · Fixed by #16688
Assignees
Labels
Area: security Area: Security-related libraries and subsystems Process: API change Integration Process: PR contains or issue proposes an API change. Should be handled with care. Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Comments

@miri64
Copy link
Member

miri64 commented Jul 22, 2021

Description

Say I have a user interface where a URL is provided: coap://example.org/sensor or coaps://example.org/sensor. Currently, when gcoap_dtls is compiled in gcoap_req_send() does not provide me any capability to honor that URL input. It just selects DTLS (so always assumes coaps://, as far as I can tell).

Steps to reproduce the issue

Try to send an unencryptet CoAP request using gcoap_req_send() with gcoap_dtls compiled in.

Expected results

The CoAP request is unencrypted and sent over a UDP sock.

Actual results

The CoAP request is always encrypted and sent over a DTLS sock.

Versions

Any RIOT version after 23a8659.

@miri64 miri64 added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Process: API change Integration Process: PR contains or issue proposes an API change. Should be handled with care. Area: security Area: Security-related libraries and subsystems labels Jul 22, 2021
@miri64 miri64 added this to the Release 2021.10 milestone Jul 22, 2021
@benpicco benpicco removed this from the Release 2021.10 milestone Sep 16, 2021
@benpicco benpicco linked a pull request Sep 16, 2021 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: security Area: Security-related libraries and subsystems Process: API change Integration Process: PR contains or issue proposes an API change. Should be handled with care. Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants