[openssl/openssl] 029536: Add a TLS non-blocking demo

Matt Caswell noreply at github.com
Fri Sep 8 14:49:17 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 0295364548bbab92b7002451c432489b55229ab8
      https://github.com/openssl/openssl/commit/0295364548bbab92b7002451c432489b55229ab8
  Author: Matt Caswell <matt at openssl.org>
  Date:   2023-09-08 (Fri, 08 Sep 2023)

  Changed paths:
    M demos/guide/Makefile
    A demos/guide/tls-client-non-block.c

  Log Message:
  -----------
  Add a TLS non-blocking demo

Show how to write a TLS client using a non-blocking socket

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Hugo Landau <hlandau at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21950)


  Commit: b71784f741d5a90712607f57a45912292fba9573
      https://github.com/openssl/openssl/commit/b71784f741d5a90712607f57a45912292fba9573
  Author: Matt Caswell <matt at openssl.org>
  Date:   2023-09-08 (Fri, 08 Sep 2023)

  Changed paths:
    M demos/guide/Makefile
    M demos/guide/quic-client-block.c
    A demos/guide/quic-client-non-block.c

  Log Message:
  -----------
  Add a QUIC non-blocking demo

Show how to write a QUIC client using a non-blocking socket

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Hugo Landau <hlandau at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21950)


  Commit: 5bd2f66a848049d34fe5852e68b67e6c4e06b524
      https://github.com/openssl/openssl/commit/5bd2f66a848049d34fe5852e68b67e6c4e06b524
  Author: Matt Caswell <matt at openssl.org>
  Date:   2023-09-08 (Fri, 08 Sep 2023)

  Changed paths:
    M doc/build.info
    M doc/man7/ossl-guide-introduction.pod
    M doc/man7/ossl-guide-tls-client-block.pod
    A doc/man7/ossl-guide-tls-client-non-block.pod

  Log Message:
  -----------
  Add a new guide page on writing a non-blocking TLS client

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Hugo Landau <hlandau at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21950)


  Commit: e8a5b06bdc280355f5c6703849868708ba83454c
      https://github.com/openssl/openssl/commit/e8a5b06bdc280355f5c6703849868708ba83454c
  Author: Matt Caswell <matt at openssl.org>
  Date:   2023-09-08 (Fri, 08 Sep 2023)

  Changed paths:
    M demos/guide/quic-client-non-block.c
    M doc/build.info
    M doc/man7/ossl-guide-introduction.pod
    A doc/man7/ossl-guide-quic-client-non-block.pod
    M doc/man7/ossl-guide-quic-multi-stream.pod

  Log Message:
  -----------
  Add a new guide page on writing a non-blocking QUIC client

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Hugo Landau <hlandau at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21950)


  Commit: 38c3c1dbefa8b8333e78e0d9d38fac7c4359f826
      https://github.com/openssl/openssl/commit/38c3c1dbefa8b8333e78e0d9d38fac7c4359f826
  Author: Matt Caswell <matt at openssl.org>
  Date:   2023-09-08 (Fri, 08 Sep 2023)

  Changed paths:
    M demos/guide/quic-client-block.c
    M demos/guide/quic-client-non-block.c
    M demos/guide/tls-client-non-block.c
    M doc/man7/ossl-guide-quic-client-non-block.pod
    M doc/man7/ossl-guide-tls-client-non-block.pod

  Log Message:
  -----------
  Expand the explanation of how to go and do useful work in non-blocking

Add additional commentary to the non-blocking examples explaining where to
add code to go and do other useful work.

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Hugo Landau <hlandau at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21950)


  Commit: cdedecd50351a3624b074e6a425d8dfb3af5fa6a
      https://github.com/openssl/openssl/commit/cdedecd50351a3624b074e6a425d8dfb3af5fa6a
  Author: Matt Caswell <matt at openssl.org>
  Date:   2023-09-08 (Fri, 08 Sep 2023)

  Changed paths:
    M demos/guide/quic-client-block.c
    M demos/guide/quic-client-non-block.c
    M demos/guide/quic-multi-stream.c
    M doc/man7/ossl-guide-quic-client-block.pod

  Log Message:
  -----------
  Add a missing call to BIO_closesocket()

A couple of the demos missed a call to this function in an error case.

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Hugo Landau <hlandau at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21950)


  Commit: 11b7d46fa7e2684e0ad0f12a7806163dba99983d
      https://github.com/openssl/openssl/commit/11b7d46fa7e2684e0ad0f12a7806163dba99983d
  Author: Matt Caswell <matt at openssl.org>
  Date:   2023-09-08 (Fri, 08 Sep 2023)

  Changed paths:
    M demos/guide/quic-client-block.c
    M demos/guide/quic-client-non-block.c
    M demos/guide/quic-multi-stream.c
    M demos/guide/tls-client-block.c
    M demos/guide/tls-client-non-block.c
    M doc/man7/ossl-guide-quic-client-block.pod
    M doc/man7/ossl-guide-tls-client-block.pod
    M util/quicserver.c

  Log Message:
  -----------
  Return NULL if we fail to create a BIO in the demos/quicserver

Strictly speaking the previous code was still correct since BIO_set_fd
is tolerant of a NULL BIO. But this way is more clear.

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Hugo Landau <hlandau at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21950)


Compare: https://github.com/openssl/openssl/compare/ebce766bb82b...11b7d46fa7e2


More information about the openssl-commits mailing list