I am writing a small CoAP client/server program, over DTLS, in C, using the libcoap library. Analyzing the traffic with Wireshark reveals that the server chooses the TLS_DHE_PSK_WITH_CHACHA20_POLY1305_SHA256.
I want to change cipher suite, for evaluation purposes. How do I do this? There doesn't seem to be an option anywhere for specifying the suite. Also, I compiled libcoap with OpenSSL as backend.
If libcoap does not support this, is there a way of setting up DTLS myself and use libcoap to just handle the CoAP packets?