mirror of
https://github.com/openssl/openssl.git
synced 2024-12-27 06:21:43 +08:00
86db958835
Update makefiles so that consistent patterns are used. Object files are compiled from source using an implicit rule (but using our CFLAGS); for linking, we give an explicit rule. Ensure that "make test" works in each subdirectory (even if it does not actually run any applications). The top-level demo makefile now works. The makefiles are not make-agnostic. e.g. they use the variable $(RM) in "clean" recipes, which is defined in gnu-make but may not be defined in others. Part of #17806 Testing: $ cd demo $ make test Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22698) |
||
---|---|---|
.. | ||
Makefile | ||
ossl-nghttp3-demo.c | ||
ossl-nghttp3.c | ||
ossl-nghttp3.h | ||
README.md |
HTTP/3 Demo using OpenSSL QUIC and nghttp3
This is a simple demo of how to use HTTP/3 with OpenSSL QUIC using the HTTP/3 library “nghttp3”.
The demo is structured into two parts:
- an adaptation layer which binds nghttp3 to OpenSSL's QUIC implementation
(
ossl-nghttp3.c
); - a simple application which makes an HTTP/3 request using this adaptation
layer (
ossl-nghttp3-demo.c
).
The Makefile in this directory can be used to build the demo on *nix-style
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
Depending on your system configuration it may be necessary to set the
SSL_CERT_FILE
or SSL_CERT_DIR
environment variables to a location where
trusted root CA certificates can be found.
After building by running make
, run ./ossl-nghttp3-demo
with a hostname and
port as the sole argument:
$ make
$ LD_LIBRARY_PATH=../.. ./ossl-nghttp3-demo www.google.com:443
The demo produces the HTTP response headers in textual form as output followed by the response body.