Skip to content

Commit b27020c

Browse files
jasnelljuanarbol
authored andcommitted
[Upstream] deps: add handling for x509 and client hello cb
This commit will need to be submitted upstream then backed out once it lands and we can update PR-URL: nodejs#138 Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 137c587 commit b27020c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

deps/ngtcp2/crypto/openssl/openssl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ int ngtcp2_crypto_read_write_crypto_data(ngtcp2_conn *conn, void *tls,
318318
case SSL_ERROR_WANT_READ:
319319
case SSL_ERROR_WANT_WRITE:
320320
return 0;
321+
case SSL_ERROR_WANT_CLIENT_HELLO_CB:
322+
return NGTCP2_ERR_TLS_WANT_CLIENT_HELLO_CB;
323+
case SSL_ERROR_WANT_X509_LOOKUP:
324+
return NGTCP2_ERR_TLS_WANT_X509_LOOKUP;
321325
case SSL_ERROR_SSL:
322326
return -1;
323327
default:

deps/ngtcp2/lib/includes/ngtcp2/ngtcp2.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ typedef enum ngtcp2_lib_error {
248248
NGTCP2_ERR_INTERNAL = -238,
249249
NGTCP2_ERR_CRYPTO_BUFFER_EXCEEDED = -239,
250250
NGTCP2_ERR_WRITE_STREAM_MORE = -240,
251+
NGTCP2_ERR_TLS_WANT_X509_LOOKUP = -241,
252+
NGTCP2_ERR_TLS_WANT_CLIENT_HELLO_CB = -242,
251253
NGTCP2_ERR_FATAL = -500,
252254
NGTCP2_ERR_NOMEM = -501,
253255
NGTCP2_ERR_CALLBACK_FAILURE = -502,

0 commit comments

Comments
 (0)