Skip to content

Commit

Permalink
coap3: Fix some remaining coap2
Browse files Browse the repository at this point in the history
Also, fix up some white space errors that have crept in.
  • Loading branch information
mrdeep1 committed Apr 21, 2021
1 parent 2e54ca5 commit b2e2b02
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-env/Dockerfile.develop
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libcoap-3.map
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VER_2 {
VER_3 {
global:
coap_add_attr;
coap_add_block;
Expand Down
2 changes: 1 addition & 1 deletion src/coap_gnutls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/coap_mbedtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/coap_tinydtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b2e2b02

Please sign in to comment.