aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental
diff options
context:
space:
mode:
Diffstat (limited to 'src/supplemental')
-rw-r--r--src/supplemental/tls/tls_api.h2
-rw-r--r--src/supplemental/websocket/sha1.h2
-rw-r--r--src/supplemental/websocket/websocket.h4
3 files changed, 7 insertions, 1 deletions
diff --git a/src/supplemental/tls/tls_api.h b/src/supplemental/tls/tls_api.h
index afb8661c..83256593 100644
--- a/src/supplemental/tls/tls_api.h
+++ b/src/supplemental/tls/tls_api.h
@@ -12,6 +12,8 @@
#ifndef NNG_SUPPLEMENTAL_TLS_TLS_API_H
#define NNG_SUPPLEMENTAL_TLS_TLS_API_H
+#include "core/stream.h"
+
// The implementation supplies this function to create the TLS connection
// object. All fields will be zeroed.
extern int nni_tls_dialer_alloc(nng_stream_dialer **, const nng_url *);
diff --git a/src/supplemental/websocket/sha1.h b/src/supplemental/websocket/sha1.h
index 43b6f20d..b061e884 100644
--- a/src/supplemental/websocket/sha1.h
+++ b/src/supplemental/websocket/sha1.h
@@ -11,6 +11,8 @@
#ifndef NNG_SUPPLEMENTAL_WEBSOCKET_SHA1_H
#define NNG_SUPPLEMENTAL_WEBSOCKET_SHA1_H
+#include "core/defs.h"
+
typedef struct {
uint32_t digest[5]; // resulting digest
uint64_t len; // length in bits
diff --git a/src/supplemental/websocket/websocket.h b/src/supplemental/websocket/websocket.h
index fab716bf..36e8dba5 100644
--- a/src/supplemental/websocket/websocket.h
+++ b/src/supplemental/websocket/websocket.h
@@ -1,5 +1,5 @@
//
-// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2025 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
// Copyright 2019 Devolutions <info@devolutions.net>
//
@@ -14,6 +14,8 @@
#include <stdbool.h>
+#include "core/stream.h"
+
typedef struct nni_ws nni_ws;
typedef struct nni_ws_listener nni_ws_listener;
typedef struct nni_ws_dialer nni_ws_dialer;