aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/websocket/CMakeLists.txt
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-01-01 13:05:15 -0800
committerGarrett D'Amore <garrett@damore.org>2025-01-01 13:05:15 -0800
commit61d581e2343af9677815fa7dc13e8a36a6f5ec3e (patch)
tree75d9b4d852333c834ee75783e7ba677a0b2ff774 /src/supplemental/websocket/CMakeLists.txt
parent0d23af92531b7c0dd6d7b74c73c1a8c4811c7d13 (diff)
downloadnng-61d581e2343af9677815fa7dc13e8a36a6f5ec3e.tar.gz
nng-61d581e2343af9677815fa7dc13e8a36a6f5ec3e.tar.bz2
nng-61d581e2343af9677815fa7dc13e8a36a6f5ec3e.zip
sha1: move this to private websocket API
Nothing else uses it, and nothing else *should* use it because SHA1 is insecure. WebSockets have to use it by definition, unfortunately. The implementation is not very fast, but doesn't have to be for the use case of websocket keying.
Diffstat (limited to 'src/supplemental/websocket/CMakeLists.txt')
-rw-r--r--src/supplemental/websocket/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/supplemental/websocket/CMakeLists.txt b/src/supplemental/websocket/CMakeLists.txt
index 200aeee4..5d2f4b0c 100644
--- a/src/supplemental/websocket/CMakeLists.txt
+++ b/src/supplemental/websocket/CMakeLists.txt
@@ -1,5 +1,5 @@
#
-# Copyright 2019 Staysail Systems, Inc. <info@staysail.tech>
+# Copyright 2025 Staysail Systems, Inc. <info@staysail.tech>
# Copyright 2017 Capitar IT Group BV <info@capitar.com>
#
# This software is supplied under the terms of the MIT License, a
@@ -9,7 +9,8 @@
#
if (NNG_SUPP_WEBSOCKET)
- nng_sources(websocket.c websocket.h)
+ nng_sources(sha1.c sha1.h websocket.c websocket.h)
+ nng_test(sha1_test)
else ()
nng_sources(stub.c)
endif ()