Deal with initial_scid, retry_scid, and original_dcid
Deal with initial_scid, retry_scid, and original_dcid. We need to set and get QUIC transport parameters timely manner. Therefore, transport parameter operations are now done by ngtcp2_crypto library. Applications do not need to do set it manually. Added several callback function implementations to ngtcp2_crypto library which can be directly passed to ngtcp2_callbacks: client_initial, recv_retry, and recv_client_initial. Installation of initial packet number space encryption keys is now handled by ngtcp2_crypto library. They are done in ngtcp2_crypto_client_initial_cb, ngtcp2_crypto_recv_retry_cb and ngtcp2_crypto_recv_client_initial_cb.
Showing
- crypto/gnutls/Makefile.am 1 addition, 0 deletionscrypto/gnutls/Makefile.am
- crypto/gnutls/gnutls.c 2 additions, 0 deletionscrypto/gnutls/gnutls.c
- crypto/includes/ngtcp2/ngtcp2_crypto.h 49 additions, 16 deletionscrypto/includes/ngtcp2/ngtcp2_crypto.h
- crypto/openssl/Makefile.am 1 addition, 0 deletionscrypto/openssl/Makefile.am
- crypto/openssl/openssl.c 11 additions, 0 deletionscrypto/openssl/openssl.c
- crypto/shared.c 115 additions, 5 deletionscrypto/shared.c
- crypto/shared.h 31 additions, 0 deletionscrypto/shared.h
- examples/client.cc 5 additions, 87 deletionsexamples/client.cc
- examples/client.h 0 additions, 2 deletionsexamples/client.h
- examples/server.cc 6 additions, 65 deletionsexamples/server.cc
- examples/server.h 0 additions, 1 deletionexamples/server.h
- lib/includes/ngtcp2/ngtcp2.h 40 additions, 9 deletionslib/includes/ngtcp2/ngtcp2.h
- lib/ngtcp2_conn.c 51 additions, 12 deletionslib/ngtcp2_conn.c
- lib/ngtcp2_conn.h 10 additions, 2 deletionslib/ngtcp2_conn.h
- lib/ngtcp2_crypto.c 111 additions, 19 deletionslib/ngtcp2_crypto.c
- lib/ngtcp2_log.c 19 additions, 7 deletionslib/ngtcp2_log.c
- lib/ngtcp2_qlog.c 15 additions, 4 deletionslib/ngtcp2_qlog.c
- lib/ngtcp2_qlog.h 5 additions, 3 deletionslib/ngtcp2_qlog.h
- tests/ngtcp2_crypto_test.c 53 additions, 15 deletionstests/ngtcp2_crypto_test.c
Please register or sign in to comment