Macros ====== .. macro:: NGTCP2_CRYPTO_TOKEN_RAND_DATALEN :macro:`NGTCP2_CRYPTO_TOKEN_RAND_DATALEN` is the length of random data added to a token generated by `ngtcp2_crypto_generate_retry_token` or `ngtcp2_crypto_generate_regular_token`. .. macro:: NGTCP2_CRYPTO_TOKEN_MAGIC_RETRY :macro:`NGTCP2_CRYPTO_TOKEN_MAGIC_RETRY` is the magic byte for Retry token generated by `ngtcp2_crypto_generate_retry_token`. .. macro:: NGTCP2_CRYPTO_TOKEN_MAGIC_REGULAR :macro:`NGTCP2_CRYPTO_TOKEN_MAGIC_REGULAR` is the magic byte for a token generated by `ngtcp2_crypto_generate_regular_token`. .. macro:: NGTCP2_CRYPTO_MAX_RETRY_TOKENLEN :macro:`NGTCP2_CRYPTO_MAX_RETRY_TOKENLEN` is the maximum length of a token generated by `ngtcp2_crypto_generate_retry_token`. .. macro:: NGTCP2_CRYPTO_MAX_REGULAR_TOKENLEN :macro:`NGTCP2_CRYPTO_MAX_REGULAR_TOKENLEN` is the maximum length of a token generated by `ngtcp2_crypto_generate_regular_token`. quictls specific error codes ---------------------------- .. macro:: NGTCP2_CRYPTO_QUICTLS_ERR_TLS_WANT_X509_LOOKUP :macro:`NGTCP2_CRYPTO_QUICTLS_ERR_TLS_WANT_X509_LOOKUP` is the error code which indicates that TLS handshake routine is interrupted by X509 certificate lookup. See :macro:`SSL_ERROR_WANT_X509_LOOKUP` error description from `SSL_do_handshake`. .. macro:: NGTCP2_CRYPTO_QUICTLS_ERR_TLS_WANT_CLIENT_HELLO_CB :macro:`NGTCP2_CRYPTO_QUICTLS_ERR_TLS_WANT_CLIENT_HELLO_CB` is the error code which indicates that TLS handshake routine is interrupted by client hello callback. See :macro:`SSL_ERROR_WANT_CLIENT_HELLO_CB` error description from `SSL_do_handshake`.