summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorJames Muir <james@openssl.org>2023-10-29 15:24:08 -0400
committerPauli <pauli@openssl.org>2023-11-08 11:12:55 +1100
commit22fa1602da91af2194997e0576582bb4f0cdd7e0 (patch)
treeaf127d450ec002e7239ec3484151573612c5a936 /demos
parent1c6a37975495dd633847ff0c07747fae272d5e4d (diff)
quic http3 demo: minor updates
-update run command to include LD_LIBRARY_PATH -suggest installing libnghttp3-dev on Ubuntu -drop "-f" from clean recipe (it is already included in $(RM)) Part of https://github.com/openssl/project/issues/253 Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22623)
Diffstat (limited to 'demos')
-rw-r--r--demos/http3/Makefile12
-rw-r--r--demos/http3/README.md5
2 files changed, 12 insertions, 5 deletions
diff --git a/demos/http3/Makefile b/demos/http3/Makefile
index 89bac3743e..9d8212ff0a 100644
--- a/demos/http3/Makefile
+++ b/demos/http3/Makefile
@@ -1,11 +1,17 @@
-CFLAGS = -I../../include -g -Wall
+#
+# To run the demo when linked with a shared library (default) ensure that
+# libcrypto and libssl are on the library path. For example:
+#
+# LD_LIBRARY_PATH=../.. ./ossl-nghttp3-demo www.example.com:443
+
+CFLAGS = -I../../include -g -Wall -Wsign-compare
LDFLAGS = -L../..
-LDLIBS = -lcrypto -lssl -lnghttp3
+LDLIBS = -lcrypto -lssl -lnghttp3
all: ossl-nghttp3-demo
clean:
- $(RM) -f ossl-nghttp3-demo *.o
+ $(RM) ossl-nghttp3-demo *.o
ossl-nghttp3-demo: ossl-nghttp3-demo.o ossl-nghttp3.o
$(CC) $(CFLAGS) -o "$@" $^ $(LDFLAGS) $(LDLIBS)
diff --git a/demos/http3/README.md b/demos/http3/README.md
index e087aba1e1..e193aa13c1 100644
--- a/demos/http3/README.md
+++ b/demos/http3/README.md
@@ -12,7 +12,8 @@ The demo is structured into two parts:
layer (`ossl-nghttp3-demo.c`).
The Makefile in this directory can be used to build the demo on \*nix-style
-systems. You will need to have the `nghttp3` library available.
+systems. You will need the `nghttp3` library and header file. On
+Ubuntu, these can be obtained by installing the package `libnghttp3-dev`.
Running the Demo
----------------
@@ -26,7 +27,7 @@ port as the sole argument:
```shell
$ make
-$ ./ossl-nghttp3-demo www.google.com:443
+$ LD_LIBRARY_PATH=../.. ./ossl-nghttp3-demo www.google.com:443
```
The demo produces the HTTP response headers in textual form as output followed