Olaf Bergmann
2991da5547
doc/Makefile.am: Fix target dist
...
Ensure that EXTRA_DIST contents are included in make dist even
if configured without documentation. CLEANFILES is also set
outside the conditional area to enable proper cleanup.
2021-05-20 17:27:02 +02:00
obgm
425704599b
Merge pull request #679 from mrdeep1/coap_rd
...
coap-rd: Remove requirement for uthash.h
2021-05-20 17:24:13 +02:00
Jon Shallow
939f7d4380
examples/Makefile.am: Revert commit f6eede8077
...
It is no longer needed now that uthash.h is no longer required by coap_rd.
2021-05-20 13:28:44 +01:00
Jon Shallow
b694c4f5e5
coap-rd: Fix coap_str_const_t deallocate errors
...
Fix calls to coap_resource_init() and coap_add_attr() where proper
coap_str_const_t * were not being passed in that were safe to free off.
2021-05-20 13:28:44 +01:00
Jon Shallow
fb40a231a4
coap-rd: Remove requirement for uthash.h
...
Add rd_t information as user data to the resource (which has hashed lookup)
rather than maintaining a separate hash within coap-rd.
2021-05-20 13:24:49 +01:00
obgm
46c4315e17
Merge pull request #678 from mrdeep1/pkcs11_logging
...
TLS Support: Move common TLS support descriptions into libcoap
2021-05-20 13:50:26 +02:00
obgm
a8df0adf2f
Merge pull request #671 from mrdeep1/rpk_check
...
RPK: Support verification of peer certificate
2021-05-20 12:57:19 +02:00
Jon Shallow
c987bee475
RPK: Support verification of peer certificate
...
Implement CN and SNI call-back checks for GnuTLS. The validate_cn_call_back
function provides "RPK" for the common name and the ASN1 of the peers
certificate.
Update coap-server and coap-client to enable validate_cn_call_back and
validate_sni_call_back for RPK.
2021-05-19 13:27:09 +01:00
obgm
d60583d38a
Merge pull request #670 from mrdeep1/pkcs11_fixes
...
PKCS11: Fix -C ca option
2021-05-19 09:50:06 +02:00
Jon Shallow
4999f81ad9
PKCS11: Fix -C ca option
...
For OpenSSL, correct typo in src/coap_openssl.c
For GnuTLS, make sure that the PKCS11 CA Certificate is trusted.
Updated HOWTO.pkcs11 for how to do this. Unfortunatately, this cannot be
done using pkcs11-tool.
The coap-server -n option (don't check peer) is no longer a requirement, so
removed from the HOWTO.
2021-05-12 18:07:03 +01:00
Jon Shallow
aaf4d874d4
TLS Support: Move common TLS support descriptions into libcoap
...
Added new function coap_string_tls_support() for outputting what key types the
TLS library supports to remove duplicated code out of the examples.
2021-05-12 18:02:37 +01:00
obgm
77b73517fa
Merge pull request #674 from mrdeep1/license_install
...
LICENSE: Install in documentation root (--docdir)
2021-05-12 09:40:53 +02:00
Jon Shallow
bddb1c5989
LICENSE: Install in documentation root (--docdir)
...
Include README and COPYING as well, so that they can be a part of a library
distribution.
Make this optional with ./configure --enable-license-install
which is enabled by default.
2021-05-11 22:06:26 +01:00
obgm
b4f9302b21
Merge pull request #672 from mrdeep1/examples
...
examples: Provide standalone source and simple Makefile for examples
2021-05-11 15:46:50 +02:00
Jon Shallow
feb8c15b45
examples: Provide standalone source and simple Makefile for examples
...
Install in PREFIX/share/libcoap/examples the source for coap-client.c and
coap-server.c with a standalone Makefile for ease of standalone code
development.
Add in configure option --enable-examples-source.
Included is a README, LICENSE and COPYING.
2021-05-11 14:35:23 +01:00
obgm
7b26b2e7ba
Merge pull request #676 from mrdeep1/tinydtls_asn1_fix
...
coap_tinydtls.c: Fix ASN1 when calling validate_cn_call_back
2021-05-11 15:16:32 +02:00
Jon Shallow
7e917725ce
coap_tinydtls.c: Fix ASN1 when calling validate_cn_call_back
...
Remove the initial size of the ASN1 information and tidy up some #define.
2021-05-07 14:30:52 +01:00
obgm
30fead8cf7
Merge pull request #669 from mrdeep1/cleanup
...
autogen.sh: Remove tests/test_common.h on cleanup
2021-05-03 09:25:00 +02:00
Jon Shallow
8c0af50d64
autogen.sh: Remove tests/test_common.h on cleanup
2021-04-30 13:41:19 +01:00
Olaf Bergmann
4214760117
update release version to rc3 in configuration
2021-04-30 09:46:10 +02:00
obgm
832477845f
Merge pull request #668 from mrdeep1/truncation
...
examples: Fix truncated usage() output
v4.3.0-rc3
2021-04-29 15:10:55 +02:00
Olaf Bergmann
6a70ce7392
coap-rd.vcxprof: add include/coap3 to coap-rd include path
...
To find uthash.h, ../../include/coap3 is added to the include path
for coap-rd.
2021-04-29 15:04:56 +02:00
Olaf Bergmann
9207a89f8b
Makefile.am: add missing files to EXTRA_DIST
2021-04-29 13:47:12 +02:00
Olaf Bergmann
4ff2d85f33
CMakeLists.txt: fix include path for coap-rd
...
coap-rd uses uthash.h from the internal libcoap API. Therefore,
"include/coap3" is additionally passed as include path for target
coap-rd.
2021-04-29 13:47:12 +02:00
Olaf Bergmann
f6eede8077
examples/Makefile.am: fix include path
...
Example applications are built against the libcoap public API
and therefore prefix libcoap includes with "coap3)/".
The only exception is coap-rd which uses uthash.h from the internal
API. Therefore, "-Iinclude/coap3" is additionally passed as CPPFLAG
for coap-rd.
2021-04-29 13:16:10 +02:00
Olaf Bergmann
aa09d1fcfe
coap-rd.c: Update file name in doxygen comment
2021-04-29 12:41:33 +02:00
Olaf Bergmann
e31de3b13a
coap-rd.c: include uthash.h
...
The coap-rd example uses uthash.h from the libcoap core. As uthash.h
is not part of the public libcoap API, it must be included explicitly.
2021-04-29 12:41:33 +02:00
Olaf Bergmann
2cae4ff662
coap_resource_internal.h: include uthash.h
2021-04-29 12:41:33 +02:00
Olaf Bergmann
07ac47ae73
resource.h: remove uthash from public API
...
As the uthash macros have been moved to coap_resource_internal.h by
PR #582 [1], see commit da18643 , the convenience macros and uthash.h
inclusion can be removed from resource.h
[1] https://github.com/obgm/libcoap/pull/582
2021-04-29 12:41:33 +02:00
Olaf Bergmann
910dd37e19
Doxyfile.in: exclude uthash files from documentation
2021-04-29 12:41:33 +02:00
Olaf Bergmann
870be9f0b6
doc/Makefile.am: update man-page-build dependency order
...
The target man-page-build requires the update pages' html to be
present. To avoid race conditions with `make -k`, upg-page-build now
has become a prerequisite for the target man-page-build.
2021-04-29 12:41:33 +02:00
Jon Shallow
dbaf580e75
examples: Fix truncated usage() output
...
Increase scratch buffer size (needed for Mbed TLS)
2021-04-29 11:39:02 +01:00
Olaf Bergmann
9344897b0a
Makefile.am: do not install uthash.h
...
As uthash.h is for internal use only, it does not get installed.
2021-04-29 09:42:33 +02:00
obgm
c99b39f094
Merge pull request #665 from mrdeep1/observe_non_2xx
...
Observe: Make sure Observe option is not in non 2.xx response
2021-04-29 09:25:53 +02:00
obgm
d0bab1a1b6
Merge pull request #664 from mrdeep1/upgrade_doc
...
Doc: Add in upgrade information
2021-04-29 09:25:15 +02:00
Jon Shallow
48b47c0b84
Doc: Add in upgrade information
...
Adds in an Upgrading tab to the Doxygen output
Add in 4.2.1 to 4.3.0 upgrading information
Remove the Bugs tags as it does not add helpful information
2021-04-28 14:14:24 +01:00
obgm
ea77b13f24
Merge pull request #666 from mrdeep1/missing_update
...
libcoap-3.map: Fix missing update
2021-04-28 11:23:49 +02:00
Jon Shallow
ff7a027ff6
libcoap-3.map: Fix missing update
2021-04-27 21:43:54 +01:00
Jon Shallow
02d3b53a64
Observe: Make sure Observe option is not in non 2.xx response
...
https://tools.ietf.org/html/rfc7641#section-4.2 last paragraph.
Remove option if present in non 2.xx response.
2021-04-27 21:36:17 +01:00
obgm
9cb4b7fab9
Merge pull request #662 from mrdeep1/nits_2
...
struct: Remove struct prefix for structures that are typedef'd
2021-04-27 12:20:36 +02:00
Jon Shallow
14cf0fe9e5
struct: Remove struct prefix for structures that are typedef'd
2021-04-26 16:52:14 +01:00
Carsten Schoenert
7d23138184
Typo: Fix misspelled word returs
2021-04-26 17:42:06 +02:00
Carsten Schoenert
3e6f8d254f
Typo: Fix misspelled word vesion
2021-04-26 17:42:06 +02:00
obgm
8c4a566313
Merge pull request #661 from mrdeep1/const_pdu
...
net.h: Make request PDUs const in functions
2021-04-26 17:32:48 +02:00
obgm
baaaf5542f
Merge pull request #659 from mrdeep1/max_retransmit
...
coap_session.c: Correct coap_session_get_max_retransmit() name
2021-04-26 17:20:10 +02:00
obgm
b11d4c4bb2
Merge pull request #644 from albanLM/albanLM-develop
...
CMakeLists.txt: Fix interface export when DTLS is off
2021-04-26 10:01:11 +02:00
Jon Shallow
17b7c13435
net.h: Make request PDUs const in functions
...
Now that coap_method_handler_t passes in the request PDU as const, make
functions that have request PDUs as a parameter const for that parameter.
2021-04-26 08:00:26 +01:00
Jon Shallow
f436961084
coap_session.c: Correct coap_session_get_max_retransmit() name
...
Make things consistent.
2021-04-23 09:11:19 +01:00
obgm
f926020508
Merge pull request #660 from mrdeep1/doc_nits
...
Nits: Fix documentation
2021-04-23 09:26:08 +02:00
obgm
429c2237f1
Merge pull request #658 from mrdeep1/Changes
...
ChangeLog: Add summary for version updates
2021-04-22 18:29:28 +02:00