diff --git a/examples/coap-server.c b/examples/coap-server.c index 8638e12e..cf6917f2 100644 --- a/examples/coap-server.c +++ b/examples/coap-server.c @@ -2971,7 +2971,7 @@ main(int argc, char **argv) { break; case 'w': if (!coap_ws_is_supported() || !cmdline_ws(optarg)) { - fprintf(stderr, "WebSckets not enabled in libcoap\n"); + fprintf(stderr, "WebSockets not enabled in libcoap\n"); exit(1); } enable_ws = 1; diff --git a/src/coap_ws.c b/src/coap_ws.c index 2881f088..64111625 100644 --- a/src/coap_ws.c +++ b/src/coap_ws.c @@ -36,12 +36,12 @@ int coap_ws_is_supported(void) { -#if defined(HAVE_OPENSSL) || defined(HAVE_GNUTLS) || defined(HAVE_MBEDTLS) +#if defined(HAVE_OPENSSL) || defined(HAVE_LIBGNUTLS) || defined(HAVE_MBEDTLS) /* Have SHA1 hash support */ return coap_tcp_is_supported(); -#else /* !HAVE_OPENSSL && !HAVE_GNUTLS && !HAVE_MBEDTLS */ +#else /* !HAVE_OPENSSL && !HAVE_LIBGNUTLS && !HAVE_MBEDTLS */ return 0; -#endif /* !HAVE_OPENSSL && !HAVE_GNUTLS && !HAVE_MBEDTLS */ +#endif /* !HAVE_OPENSSL && !HAVE_LIBGNUTLS && !HAVE_MBEDTLS */ } int