Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
[UPSTREAM] deps: add handling for x509 and client hello cb
Browse files Browse the repository at this point in the history
This commit will need to be submitted upstream then backed out
once it lands and we can update
  • Loading branch information
jasnell committed Oct 9, 2019
1 parent 6c4c6dc commit 1365365
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deps/ngtcp2/crypto/openssl/openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@ int ngtcp2_crypto_read_write_crypto_data(ngtcp2_conn *conn, void *tls,
case SSL_ERROR_WANT_READ:
case SSL_ERROR_WANT_WRITE:
return 0;
case SSL_ERROR_WANT_CLIENT_HELLO_CB:
return NGTCP2_ERR_TLS_WANT_CLIENT_HELLO_CB;
case SSL_ERROR_WANT_X509_LOOKUP:
return NGTCP2_ERR_TLS_WANT_X509_LOOKUP;
case SSL_ERROR_SSL:
return -1;
default:
Expand Down
2 changes: 2 additions & 0 deletions deps/ngtcp2/lib/includes/ngtcp2/ngtcp2.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ typedef enum ngtcp2_lib_error {
NGTCP2_ERR_INTERNAL = -238,
NGTCP2_ERR_CRYPTO_BUFFER_EXCEEDED = -239,
NGTCP2_ERR_WRITE_STREAM_MORE = -240,
NGTCP2_ERR_TLS_WANT_X509_LOOKUP = -241,
NGTCP2_ERR_TLS_WANT_CLIENT_HELLO_CB = -242,
NGTCP2_ERR_FATAL = -500,
NGTCP2_ERR_NOMEM = -501,
NGTCP2_ERR_CALLBACK_FAILURE = -502,
Expand Down

0 comments on commit 1365365

Please sign in to comment.