* Latest OpenSSL, Curl.

svn path=/nixpkgs/branches/stdenv-updates/; revision=13817
This commit is contained in:
Eelco Dolstra 2009-01-21 14:11:22 +00:00
parent fce6b5a233
commit 581af921ea
3 changed files with 34 additions and 34 deletions

View File

@ -1,11 +1,11 @@
{stdenv, fetchurl, perl}: {stdenv, fetchurl, perl}:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "openssl-0.9.8i"; name = "openssl-0.9.8j";
src = fetchurl { src = fetchurl {
url = http://www.openssl.org/source/openssl-0.9.8i.tar.gz; url = http://www.openssl.org/source/openssl-0.9.8j.tar.gz;
sha1 = "b2e029cfb68bf32eae997d60317a40945db5a65f"; sha1 = "f70f7127a26e951e8a0d854c0c9e6b4c24df78e4";
}; };
buildInputs = [perl]; buildInputs = [perl];

View File

@ -1,8 +1,8 @@
diff -rc curl-7.18.1-orig/lib/connect.c curl-7.18.1/lib/connect.c diff -rc curl-7.19.3-orig/lib/connect.c curl-7.19.3/lib/connect.c
*** curl-7.18.1-orig/lib/connect.c 2008-02-07 23:25:04.000000000 +0100 *** curl-7.19.3-orig/lib/connect.c 2009-01-02 23:30:50.000000000 +0100
--- curl-7.18.1/lib/connect.c 2008-04-23 11:25:30.000000000 +0200 --- curl-7.19.3/lib/connect.c 2009-01-21 15:04:08.000000000 +0100
*************** ***************
*** 99,105 **** *** 115,121 ****
singleipconnect(struct connectdata *conn, singleipconnect(struct connectdata *conn,
const Curl_addrinfo *ai, /* start connecting to this */ const Curl_addrinfo *ai, /* start connecting to this */
long timeout_ms, long timeout_ms,
@ -10,7 +10,7 @@ diff -rc curl-7.18.1-orig/lib/connect.c curl-7.18.1/lib/connect.c
/* /*
* Curl_timeleft() returns the amount of milliseconds left allowed for the * Curl_timeleft() returns the amount of milliseconds left allowed for the
--- 99,106 ---- --- 115,122 ----
singleipconnect(struct connectdata *conn, singleipconnect(struct connectdata *conn,
const Curl_addrinfo *ai, /* start connecting to this */ const Curl_addrinfo *ai, /* start connecting to this */
long timeout_ms, long timeout_ms,
@ -20,8 +20,8 @@ diff -rc curl-7.18.1-orig/lib/connect.c curl-7.18.1/lib/connect.c
/* /*
* Curl_timeleft() returns the amount of milliseconds left allowed for the * Curl_timeleft() returns the amount of milliseconds left allowed for the
*************** ***************
*** 552,557 **** *** 541,546 ****
--- 553,559 ---- --- 542,548 ----
{ {
curl_socket_t sockfd; curl_socket_t sockfd;
Curl_addrinfo *ai; Curl_addrinfo *ai;
@ -30,7 +30,7 @@ diff -rc curl-7.18.1-orig/lib/connect.c curl-7.18.1/lib/connect.c
/* first close the failed socket */ /* first close the failed socket */
sclose(conn->sock[sockindex]); sclose(conn->sock[sockindex]);
*************** ***************
*** 565,571 **** *** 554,560 ****
ai = conn->ip_addr->ai_next; ai = conn->ip_addr->ai_next;
while(ai) { while(ai) {
@ -38,7 +38,7 @@ diff -rc curl-7.18.1-orig/lib/connect.c curl-7.18.1/lib/connect.c
if(sockfd != CURL_SOCKET_BAD) { if(sockfd != CURL_SOCKET_BAD) {
/* store the new socket descriptor */ /* store the new socket descriptor */
conn->sock[sockindex] = sockfd; conn->sock[sockindex] = sockfd;
--- 567,573 ---- --- 556,562 ----
ai = conn->ip_addr->ai_next; ai = conn->ip_addr->ai_next;
while(ai) { while(ai) {
@ -47,36 +47,36 @@ diff -rc curl-7.18.1-orig/lib/connect.c curl-7.18.1/lib/connect.c
/* store the new socket descriptor */ /* store the new socket descriptor */
conn->sock[sockindex] = sockfd; conn->sock[sockindex] = sockfd;
*************** ***************
*** 720,726 **** *** 714,720 ****
singleipconnect(struct connectdata *conn, singleipconnect(struct connectdata *conn,
const Curl_addrinfo *ai, const Curl_addrinfo *ai,
long timeout_ms, long timeout_ms,
! bool *connected) ! bool *connected)
{ {
struct Curl_sockaddr_ex addr;
char addr_buf[128]; char addr_buf[128];
int rc; --- 716,723 ----
--- 722,729 ----
singleipconnect(struct connectdata *conn, singleipconnect(struct connectdata *conn,
const Curl_addrinfo *ai, const Curl_addrinfo *ai,
long timeout_ms, long timeout_ms,
! bool *connected, ! bool *connected,
! bool *timed_out) ! bool *timed_out)
{ {
struct Curl_sockaddr_ex addr;
char addr_buf[128]; char addr_buf[128];
int rc;
*************** ***************
*** 740,745 **** *** 730,735 ****
--- 743,750 ---- --- 733,740 ----
struct curl_sockaddr *addr=(struct curl_sockaddr*)&addr_storage; struct sockaddr_in6 * const sa6 = (void *)&addr.sa_addr;
const void *iptoprint; #endif
+ *timed_out = FALSE; + *timed_out = FALSE;
+ +
addr->family=ai->ai_family; /*
addr->socktype=conn->socktype; * The Curl_sockaddr_ex structure is basically libcurl's external API
addr->protocol=ai->ai_protocol; * curl_sockaddr structure with enough space available to directly hold
*************** ***************
*** 841,848 **** *** 880,887 ****
infof(data, "connected\n"); infof(data, "connected\n");
return sockfd; return sockfd;
} }
@ -85,7 +85,7 @@ diff -rc curl-7.18.1-orig/lib/connect.c curl-7.18.1/lib/connect.c
else { else {
data->state.os_errno = error; data->state.os_errno = error;
infof(data, "%s\n", Curl_strerror(conn, error)); infof(data, "%s\n", Curl_strerror(conn, error));
--- 846,855 ---- --- 885,894 ----
infof(data, "connected\n"); infof(data, "connected\n");
return sockfd; return sockfd;
} }
@ -97,7 +97,7 @@ diff -rc curl-7.18.1-orig/lib/connect.c curl-7.18.1/lib/connect.c
data->state.os_errno = error; data->state.os_errno = error;
infof(data, "%s\n", Curl_strerror(conn, error)); infof(data, "%s\n", Curl_strerror(conn, error));
*************** ***************
*** 872,879 **** *** 911,918 ****
int num_addr; int num_addr;
Curl_addrinfo *ai; Curl_addrinfo *ai;
Curl_addrinfo *curr_addr; Curl_addrinfo *curr_addr;
@ -106,7 +106,7 @@ diff -rc curl-7.18.1-orig/lib/connect.c curl-7.18.1/lib/connect.c
struct timeval before = Curl_tvnow(); struct timeval before = Curl_tvnow();
/************************************************************* /*************************************************************
--- 879,886 ---- --- 918,925 ----
int num_addr; int num_addr;
Curl_addrinfo *ai; Curl_addrinfo *ai;
Curl_addrinfo *curr_addr; Curl_addrinfo *curr_addr;
@ -116,7 +116,7 @@ diff -rc curl-7.18.1-orig/lib/connect.c curl-7.18.1/lib/connect.c
/************************************************************* /*************************************************************
*************** ***************
*** 915,933 **** *** 955,973 ****
curr_addr = curr_addr->ai_next, aliasindex++) { curr_addr = curr_addr->ai_next, aliasindex++) {
/* start connecting to the IP curr_addr points to */ /* start connecting to the IP curr_addr points to */
@ -135,8 +135,8 @@ diff -rc curl-7.18.1-orig/lib/connect.c curl-7.18.1/lib/connect.c
- before = after; - before = after;
} /* end of connect-to-each-address loop */ } /* end of connect-to-each-address loop */
if(sockfd == CURL_SOCKET_BAD) { *sockconn = sockfd; /* the socket descriptor we've connected */
--- 922,938 ---- --- 962,978 ----
curr_addr = curr_addr->ai_next, aliasindex++) { curr_addr = curr_addr->ai_next, aliasindex++) {
/* start connecting to the IP curr_addr points to */ /* start connecting to the IP curr_addr points to */
@ -153,4 +153,4 @@ diff -rc curl-7.18.1-orig/lib/connect.c curl-7.18.1/lib/connect.c
} }
} /* end of connect-to-each-address loop */ } /* end of connect-to-each-address loop */
if(sockfd == CURL_SOCKET_BAD) { *sockconn = sockfd; /* the socket descriptor we've connected */

View File

@ -4,11 +4,11 @@ assert zlibSupport -> zlib != null;
assert sslSupport -> openssl != null; assert sslSupport -> openssl != null;
stdenv.mkDerivation { stdenv.mkDerivation {
name = "curl-7.18.1"; name = "curl-7.19.3";
src = fetchurl { src = fetchurl {
url = http://curl.haxx.se/download/curl-7.18.1.tar.bz2; url = http://curl.haxx.se/download/curl-7.19.3.tar.bz2;
sha256 = "0v5fpr4bsdlg262nsgrijlfhp3vgr1ypir1rrkmhxcsnpv4frw6c"; sha256 = "08ij168xflbhsypdliknmds095fw5x35d19hnf559yq0jpj0hmln";
}; };
buildInputs = buildInputs =