Make LIBCOAP_API_VERSION=2
Set LIBCOAP_NAME_SUFFIX to be $LIBCOAP_API_VERSION{-openssl,-gnutls,-tinydtls}
as appropriate based on the configure build options.
This means that library files will be named
libcoap-2-openssl.a
libcoap-2-openssl.so*
libcoap-2-gnutls.a
libcoap-2-gnutls.so*
libcoap-2-tinydtls.a
libcoap-2.a
libcoap-2.so*
Fix some typos
Use $withval instead of yes so that, say, --without-openssl works as expected.
Replace LIBCOAP_API_VERSON with LIBCOAP_NAME_SUFFIX when refering to building
the library files. configure.ac defines LIBCOAP_NAME_SUFFIX.
libcoap-$LIBCOAP_API_VERSION.{sym,map} remain.
Make distclean clean up temporary src/*.o and src/*.lo files which may be
left lying around from a previous './configure xxx ; make' that was using
a different TLS library.
Add in coap_dtls_*, coap_tls_*, coap_socket_* functions that do not need to
be publically exposed in the libraries
Create a new --enable-doxygen
Make --enable-documentation include both --enable-manpages and --enable-doxygen
and --disable-documentation include --disable-manpages and --disable-doxygen
Added several unit tests for coap_get_uri_path():
* Check corner cases such as one or more zero-length Uri-Paths.
* Check percent-encoding of reserved characters.
* Check non-reserved characters that should not be percent-encoded.
This change also removes a couple of trailing LWS by accident.
Include coap_resource_unknown_init() function for defining the unknown
resource.
Update hashing to use the resource's uri_path instead of key where appropriate
to avoid clashes when using the old hashed key.
coap_add_resource() now deletes previous resource with matching uri_path to
prevent duplication.
Remove now obsolete functions
coap_hash_request_uri()
coap_get_resource_from_key()
New function
coap_get_resource_from_uri_path()
*API Update coap_delete_resource() now deletes by resource, not by key.
At some point, str will get replaced in all of the code with coap_string_t.
This is to prevent potential name clashes when compiling application code.
Use coap_malloc_type(COAP_STRING,... instead of coap_malloc(...
Rename struct str as struct coap_string_t and 'typedef coap_string_t str' for
backwards compatabilty with the intent of removing str at some point to
prevent potential name clashes when compiling application code.
Add in new coap_string_equal() function for consistent comparing of strings.
With resource's hashed key being replaced by uri_path, old hash functions have
been removed and a new fuction coap_get_uri_path() added to abstract the
uri_path from the pdu.
Tidy up usage of is_unescaped_in_query() and slit it partially out to support
is_unescaped_in_path.
Update unsigned to uint16_t in appropriate places