Commit 5aed78e1 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

- Phil Blundell added the CURLOPT_SCOPE option, as well as adjusted the URL

  parser to allow numerical IPv6-addresses to be specified with the scope
  given, as per RFC4007 - with a percent letter that itself needs to be URL
  escaped. For example, for an address of fe80::1234%1 the HTTP URL is:
  "http://[fe80::1234%251]/"
parent 011e5dd8
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -7,6 +7,12 @@
                                  Changelog

Daniel Stenberg (30 Jul 2008)
- Phil Blundell added the CURLOPT_SCOPE option, as well as adjusted the URL
  parser to allow numerical IPv6-addresses to be specified with the scope
  given, as per RFC4007 - with a percent letter that itself needs to be URL
  escaped. For example, for an address of fe80::1234%1 the HTTP URL is:
  "http://[fe80::1234%251]/"

- PHP's bug report #43158 (http://bugs.php.net/bug.php?id=43158) identifies a
  true bug in libcurl built with OpenSSL. It made curl_easy_getinfo() more or
  less always return 0 for CURLINFO_SSL_VERIFYRESULT because the function that
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ This release includes the following changes:
 o Added CURLINFO_APPCONNECT_TIME
 o Added test selection by key word in runtests.pl
 o the curl tool's -w option support the %{ssl_verify_result} variable
 o Added CURLOPT_SCOPE and scope parsing of the URL according to RFC4007

This release includes the following bugfixes:

+4 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@
.\" * $Id$
.\" **************************************************************************
.\"
.TH curl_easy_setopt 3 "5 Jan 2008" "libcurl 7.19.0" "libcurl Manual"
.TH curl_easy_setopt 3 "30 Jul 2008" "libcurl 7.19.0" "libcurl Manual"
.SH NAME
curl_easy_setopt \- set options for a curl easy handle
.SH SYNOPSIS
@@ -547,6 +547,9 @@ notably telnet or rlogin) small segments may need to be sent
without delay. This is less efficient than sending larger amounts of
data at a time, and can contribute to congestion on the network if
overdone.
.IP CURLOPT_ADDRESS_SCOPE
Pass a long specifying the scope_id value to use when connecting to IPv6
link-local or site-local addresses.
.SH NAMES and PASSWORDS OPTIONS (Authentication)
.IP CURLOPT_NETRC
This parameter controls the preference of libcurl between using user names and
+3 −0
Original line number Diff line number Diff line
@@ -1211,6 +1211,9 @@ typedef enum {
  /* Issuer certificate */
  CINIT(ISSUERCERT, OBJECTPOINT, 170),

  /* (IPv6) Address scope */
  CINIT(ADDRESS_SCOPE, LONG, 171),

  CURLOPT_LASTENTRY /* the last unused */
} CURLoption;

+7 −0
Original line number Diff line number Diff line
@@ -773,6 +773,13 @@ singleipconnect(struct connectdata *conn,

  *connected = FALSE; /* default is not connected */

#ifdef CURLRES_IPV6
  if (conn->scope && (addr->family == AF_INET6)) {
    struct sockaddr_in6 *in6 = (struct sockaddr_in6 *)&addr->addr;
    in6->sin6_scope_id = conn->scope;
  }
#endif

  /* FIXME: do we have Curl_printable_address-like with struct sockaddr* as
     argument? */
#if defined(HAVE_SYS_UN_H) && defined(AF_UNIX)
Loading