coap3: Fix some remaining coap2

Also, fix up some white space errors that have crept in.
This commit is contained in:
Jon Shallow committed 2021-04-21 14:23:14 +01:00
1 parent 2e54ca5252
commit b2e2b02ae2
7 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -83,7 +83,7 @@ examples/coap-tiny
examples/*.exe
# the include/ folder
include/coap2/coap.h
include/coap3/coap.h
# the tests/ folder
tests/.deps
+1 -1
View File
@@ -27,7 +27,7 @@ depcomp
doc/Doxyfile doc/doxyfile.stamp doc/doxygen_sqlite3.db doc/Makefile doc/Makefile.in
examples/*.o examples/coap-client examples/coap-server examples/coap-rd
examples/Makefile examples/Makefile.in
include/coap2/coap.h
include/coap3/coap.h
install-sh
libcoap-*.pc libtool ltmain.sh
man/coap*.[357] man/coap*.txt man/Makefile man/Makefile.in
+1 -1
View File
@@ -21,7 +21,7 @@ RUN apt-get update && apt-get install -y autoconf automake gcc g++ gdb libtool l
RUN apt-get install -y iproute2 lsof net-tools inetutils-ping netcat-openbsd less vim
RUN apt-get clean
COPY --from=0 /usr/local/include/coap2 /usr/local/include/coap2
COPY --from=0 /usr/local/include/coap3 /usr/local/include/coap3
COPY --from=0 /usr/local/lib /usr/local/lib
COPY --from=0 /usr/local/bin/coap-client /usr/local/bin/
COPY --from=0 /usr/local/include/cn-cbor /usr/local/include/cn-cbor
+1 -1
View File
@@ -1,4 +1,4 @@
VER_2 {
VER_3 {
global:
coap_add_attr;
coap_add_block;
+1 -1
View File
@@ -386,7 +386,7 @@ coap_dtls_get_tls(const coap_session_t *c_session,
*tls_lib = COAP_TLS_LIBRARY_GNUTLS;
if (c_session && c_session->tls) {
const coap_gnutls_env_t *g_env = (const coap_gnutls_env_t *)c_session->tls;
return g_env->g_session;
}
return NULL;
+1 -1
View File
@@ -1947,7 +1947,7 @@ coap_dtls_get_tls(const coap_session_t *c_session,
/* To get around const issue */
memcpy(&m_env, &c_session->tls, sizeof(m_env));
return (void *)&m_env->ssl;
}
return NULL;
+1 -1
View File
@@ -59,7 +59,7 @@ coap_dtls_get_tls(const coap_session_t *c_session,
if (c_session && c_session->context && c_session->context->dtls_context) {
const coap_tiny_context_t *t_context =
(const coap_tiny_context_t *)c_session->context->dtls_context;
return t_context->dtls_context;
}
return NULL;