[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] [PATCH] TLS SNI support
From: |
Petr Pisar |
Subject: |
Re: [Bug-wget] [PATCH] TLS SNI support |
Date: |
Wed, 1 Apr 2009 09:51:36 +0200 |
User-agent: |
Mutt/1.5.16 (2007-06-09) |
On Tue, Mar 31, 2009 at 05:52:59PM -0700, Phil Pennock wrote:
> Please find attached a fairly short patch to let wget use the TLS
> extension for Server Name Indication, to be compatible with vhosting of
> SSL sites. Most modern graphical browsers now support SNI.
>
Nice feature.
> +
> +/* Determine whether or not a hostname is an IP address that we recognise. */
> +bool
> +is_ip_address (const char *name)
> +{
> + const char *endp;
> +
> + endp = name + strlen(name);
> + if (is_valid_ipv4_address(name, endp))
> + return true;
> +#ifdef ENABLE_IPV6
> + if (is_valid_ipv4_address(name, endp))
^^^^
is_valid_ipv6_address() should be called here.
> + return true;
> +#endif
> + return false;
> +}
-- Petr
pgpv6fWcQmEba.pgp
Description: PGP signature
- Re: [Bug-wget] [PATCH] TLS SNI support,
Petr Pisar <=