[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Wget-dev] wget2 | Add TLS 1.3 post-handshake authentication (!418)
From: |
Kumar Mallikarjuna |
Subject: |
Re: [Wget-dev] wget2 | Add TLS 1.3 post-handshake authentication (!418) |
Date: |
Tue, 23 Apr 2019 15:58:44 +0000 |
Kumar Mallikarjuna commented on a discussion on tests/libtest.c:
https://gitlab.com/gnuwget/wget2/merge_requests/418#note_163437963
> size_t *upload_data_size G_GNUC_WGET_UNUSED,
> void **con_cls G_GNUC_WGET_UNUSED)
> {
> +#if MHD_VERSION >= 0x00096302 && GNUTLS_VERSION_NUMBER >= 0x030603
> + if (post_handshake_auth != NULL) {
> + gnutls_session_t tls_sess;
> + union MHD_ConnectionInfo *conn_info = MHD_get_connection_info
> (connection, MHD_CONNECTION_INFO_GNUTLS_SESSION);
> +
> + if (conn_info) {
> + int check_auth = GNUTLS_E_AGAIN;
> + tls_sess = conn_info->tls_session;
> + gnutls_certificate_server_set_request(tls_sess,
> GNUTLS_CERT_REQUEST);
> + while (check_auth == GNUTLS_E_AGAIN)
> + check_auth = gnutls_reauth(tls_sess, 0);
> +
> + *post_handshake_auth = !!check_auth ? CHECK_FAILED :
> CHECK_PASSED;
Yeah, okay. I guess this is more readable.
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/merge_requests/418#note_163437963
You're receiving this email because of your account on gitlab.com.
- Re: [Wget-dev] wget2 | WIP: Add TLS 1.3 post-handshake authentication (!418), (continued)
- Re: [Wget-dev] wget2 | WIP: Add TLS 1.3 post-handshake authentication (!418), Kumar Mallikarjuna, 2019/04/18
- Re: [Wget-dev] wget2 | Add TLS 1.3 post-handshake authentication (!418), Kumar Mallikarjuna, 2019/04/18
- Re: [Wget-dev] wget2 | Add TLS 1.3 post-handshake authentication (!418), Tim Rühsen, 2019/04/22
- Re: [Wget-dev] wget2 | Add TLS 1.3 post-handshake authentication (!418), Tim Rühsen, 2019/04/22
- Re: [Wget-dev] wget2 | Add TLS 1.3 post-handshake authentication (!418), Tim Rühsen, 2019/04/22
- Re: [Wget-dev] wget2 | Add TLS 1.3 post-handshake authentication (!418), Tim Rühsen, 2019/04/22
- Re: [Wget-dev] wget2 | Add TLS 1.3 post-handshake authentication (!418), Tim Rühsen, 2019/04/22
- Re: [Wget-dev] wget2 | Add TLS 1.3 post-handshake authentication (!418),
Kumar Mallikarjuna <=
- Re: [Wget-dev] wget2 | Add TLS 1.3 post-handshake authentication (!418), Tim Rühsen, 2019/04/22
- Re: [Wget-dev] wget2 | Add TLS 1.3 post-handshake authentication (!418), Tim Rühsen, 2019/04/22
- Re: [Wget-dev] wget2 | Add TLS 1.3 post-handshake authentication (!418), Tim Rühsen, 2019/04/22
- Re: [Wget-dev] wget2 | Add TLS 1.3 post-handshake authentication (!418), Tim Rühsen, 2019/04/23
- Re: [Wget-dev] wget2 | Add TLS 1.3 post-handshake authentication (!418), Tim Rühsen, 2019/04/24
- Re: [Wget-dev] wget2 | Add TLS 1.3 post-handshake authentication (!418), Tim Rühsen, 2019/04/24