mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-05 09:22:54 +03:00
Currently OpenSSL and MBedTLS do not support RFC7250. See https://en.wikipedia.org/wiki/Comparison_of_TLS_implementations#Extensions last column. GnuTLS >= 3.6.6 required. TinyDTLS update required. New option is_rpk_not_cert added to PKI setup structure which is enabled in coap-client and coap-server by the -M option and the use of a PUBLIC KEY instead of a CERTIFICATE in the cert file. If file is EC PRIVATE KEY, then it can be used for both the public and private key files. man/coap-client.txt.in: man/coap-server.txt.in: Document -M option. man/coap_encryption.txt.in: man/coap-server.txt.in: man/coap_context.txt.in: Add in documentation for RPK. examples/client.c: examples/coap-server.c: Add in support for is_rpk_not_cert and -M option. Stop sending ::1 for SNI - use localhost instead. include/coap2/coap_dtls.h: Add in is_rpk_not_cert option. include/coap2/str.h: src/str.c: libcoap-2.map: libcoap-2.sym: Add in coap_new_binary() and coap_delete_binary() functions. src/coap_openssl.c: Report RPK is not supported if invoked. Check that all received data is used up for error recovery. src/coap_mbedtls.c: Report RPK is not supported if invoked. Handle more MbedTLS generated errors. Check that all received data is used up for error recovery. src/coap_gnutls.c: Add in support for RPK. Add in sending Hello Verify if not cookie match in Client Hello Check that all received data is used up for error recovery. src/coap_tinydtls.c: Add in support for RPK. HOWTO.pkcs11: Update for use with RPK. Use .der file for '-C ca_file' definitions as later GnuTLS needs CA to be trusted in HSM.