aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-01-12 13:50:32 -0800
committerGarrett D'Amore <garrett@damore.org>2025-01-12 13:50:32 -0800
commitd88484cafbf973d55dc95b7edcae5064efa8bad0 (patch)
treede5ec0325765b7e4ffddd4e88c1f75e423b0564d /include
parentc34abc224e572b19fb5aa1b5afc8841705485d14 (diff)
downloadnng-d88484cafbf973d55dc95b7edcae5064efa8bad0.tar.gz
nng-d88484cafbf973d55dc95b7edcae5064efa8bad0.tar.bz2
nng-d88484cafbf973d55dc95b7edcae5064efa8bad0.zip
http: fix mishandling of very long headers or URIs, and mishandling of unicode
Also, nng_err is now a distinct type which might be nicer in debuggers.
Diffstat (limited to 'include')
-rw-r--r--include/nng/nng.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/nng/nng.h b/include/nng/nng.h
index 6f01363f..516cdeb9 100644
--- a/include/nng/nng.h
+++ b/include/nng/nng.h
@@ -1020,7 +1020,7 @@ NNG_DECL void nng_device_aio(nng_aio *, nng_socket, nng_socket);
// errors, from different transports. It should only be used when none
// of the other options are available.
-enum nng_errno_enum {
+typedef enum nng_errno_enum {
NNG_EINTR = 1,
NNG_ENOMEM = 2,
NNG_EINVAL = 3,
@@ -1054,7 +1054,7 @@ enum nng_errno_enum {
NNG_EINTERNAL = 1000,
NNG_ESYSERR = 0x10000000,
NNG_ETRANERR = 0x20000000
-};
+} nng_err;
// nng_url_parse parses a URL string into a structured form.
// Note that the u_port member will be filled out with a numeric