From 0f5cec3ebcb4eca1909b24b44a035dcc76c92988 Mon Sep 17 00:00:00 2001 From: Seppo Takalo Date: Mon, 19 Nov 2018 17:52:13 +0200 Subject: [PATCH] Include TLSSocket and DTLSSocket in Doxygen --- features/netsocket/DTLSSocket.h | 2 +- features/netsocket/DTLSSocketWrapper.h | 2 +- features/netsocket/TLSSocket.h | 2 +- features/netsocket/TLSSocketWrapper.h | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/features/netsocket/DTLSSocket.h b/features/netsocket/DTLSSocket.h index 871dea5760..d7c8db3de2 100644 --- a/features/netsocket/DTLSSocket.h +++ b/features/netsocket/DTLSSocket.h @@ -23,7 +23,7 @@ #include "UDPSocket.h" // This class requires Mbed TLS SSL/TLS client code -#if defined(MBEDTLS_SSL_CLI_C) +#if defined(MBEDTLS_SSL_CLI_C) || defined(DOXYGEN_ONLY) class DTLSSocket : public DTLSSocketWrapper { public: diff --git a/features/netsocket/DTLSSocketWrapper.h b/features/netsocket/DTLSSocketWrapper.h index aaa90e8ca7..d255185a49 100644 --- a/features/netsocket/DTLSSocketWrapper.h +++ b/features/netsocket/DTLSSocketWrapper.h @@ -4,7 +4,7 @@ #include "TLSSocketWrapper.h" // This class requires Mbed TLS SSL/TLS client code -#if defined(MBEDTLS_SSL_CLI_C) +#if defined(MBEDTLS_SSL_CLI_C) || defined(DOXYGEN_ONLY) class DTLSSocketWrapper : public TLSSocketWrapper { public: diff --git a/features/netsocket/TLSSocket.h b/features/netsocket/TLSSocket.h index c7c04c7f13..b92a958736 100644 --- a/features/netsocket/TLSSocket.h +++ b/features/netsocket/TLSSocket.h @@ -28,7 +28,7 @@ #include "mbedtls/error.h" // This class requires Mbed TLS SSL/TLS client code -#if defined(MBEDTLS_SSL_CLI_C) +#if defined(MBEDTLS_SSL_CLI_C) || defined(DOXYGEN_ONLY) /** * \brief TLSSocket a wrapper around TCPSocket for interacting with TLS servers diff --git a/features/netsocket/TLSSocketWrapper.h b/features/netsocket/TLSSocketWrapper.h index 0f963d74f0..bffdd97d2b 100644 --- a/features/netsocket/TLSSocketWrapper.h +++ b/features/netsocket/TLSSocketWrapper.h @@ -28,7 +28,7 @@ #include "mbedtls/error.h" // This class requires Mbed TLS SSL/TLS client code -#if defined(MBEDTLS_SSL_CLI_C) +#if defined(MBEDTLS_SSL_CLI_C) || defined(DOXYGEN_ONLY) /** * \brief TLSSocket a wrapper around Socket for interacting with TLS servers @@ -135,7 +135,7 @@ public: virtual nsapi_error_t listen(int backlog = 1); virtual nsapi_error_t getpeername(SocketAddress *address); -#if defined(MBEDTLS_X509_CRT_PARSE_C) || defined(DOXYGEN) +#if defined(MBEDTLS_X509_CRT_PARSE_C) || defined(DOXYGEN_ONLY) /** Get own certificate directly from Mbed TLS * @return internal Mbed TLS X509 structure */