Skip to content
  1. Dec 04, 2014
  2. Dec 03, 2014
  3. Dec 02, 2014
  4. Dec 01, 2014
  5. Nov 30, 2014
    • Peter Wu's avatar
      sws: move away from IPv4/IPv4-only assumption · cf6c5c22
      Peter Wu authored
      
      
      Instead of depending the socket domain type on use_ipv6, specify the
      domain type (AF_INET / AF_INET6) as variable. An enum is used here with
      switch to avoid compiler warnings in connect_to, complaining that rc
      is possibly undefined (which is not possible as socket_domain is
      always set).
      
      Besides abstracting the socket type, make the debugging messages be
      independent on IP (introduce location_str which points to "port XXXXX").
      Rename "ipv_inuse" to "socket_type" and tighten the scope (main).
      
      Signed-off-by: default avatarPeter Wu <peter@lekensteyn.nl>
      cf6c5c22
    • Peter Wu's avatar
      lib/connect: restrict IP/TCP options to said sockets · aba5888f
      Peter Wu authored
      
      
      This patch prepares for adding UNIX domain sockets support.
      
      TCP_NODELAY and TCP_KEEPALIVE are specific to TCP/IP sockets, so do not
      apply these to other socket types. bindlocal only works for IP sockets
      (independent of TCP/UDP), so filter that out too for other types.
      
      Signed-off-by: default avatarPeter Wu <peter@lekensteyn.nl>
      aba5888f
    • Daniel Stenberg's avatar
      smb.c: use size_t as input argument types for msg sizes · 397a634e
      Daniel Stenberg authored
      This fixes warnings about conversions to int
      397a634e
    • Steve Holme's avatar
      version: The next release will become 7.40.0 · b14ebbcb
      Steve Holme authored
      b14ebbcb
    • Bill Nagel's avatar
      docs: Updated for the SMB protocol · 96c3b1a1
      Bill Nagel authored
      This patch updates the documentation for the SMB/CIFS protocol.
      96c3b1a1
    • Steve Holme's avatar
      curl tool: Exclude SMB from the protocol redirect · c8996bab
      Steve Holme authored
      As local files could be accessed through \\localhost\c$.
      c8996bab
    • Bill Nagel's avatar
      curl tool: Enable support for the SMB protocol · b359badd
      Bill Nagel authored
      This patch enables SMB/CIFS support in the curl command-line tool.
      b359badd
    • Steve Holme's avatar
      smb.c: Fixed compilation warnings · 6b8e5c0e
      Steve Holme authored
      smb.c:398: warning: comparison of integers of different signs:
                 'ssize_t' (aka 'long') and 'unsigned long'
      smb.c:443: warning: comparison of integers of different signs:
                 'ssize_t' (aka 'long') and 'unsigned long'
      6b8e5c0e
    • Steve Holme's avatar
      libcurl: Exclude SMB from the protocol redirect · ce2d84b3
      Steve Holme authored
      As local files could be accessed through \\localhost\c$.
      ce2d84b3
    • Bill Nagel's avatar
      libcurl: Enable support for the SMB protocol · 6f241934
      Bill Nagel authored
      This patch enables SMB/CIFS support in libcurl.
      6f241934
    • Steve Holme's avatar
      smb.c: Fixed compilation warnings · d95cb3ed
      Steve Holme authored
      smb.c:322: warning: conversion to 'short unsigned int' from 'unsigned
                 int' may alter its value
      smb.c:323: warning: conversion to 'short unsigned int' from 'unsigned
                 int' may alter its value
      smb.c:482: warning: conversion to 'short unsigned int' from 'int' may
                 alter its value
      smb.c:521: warning: conversion to 'unsigned int' from 'curl_off_t' may
                 alter its value
      smb.c:549: warning: conversion to 'unsigned int' from 'curl_off_t' may
                 alter its value
      smb.c:550: warning: conversion to 'short unsigned int' from 'int' may
                 alter its value
      d95cb3ed
    • Steve Holme's avatar
      smb.c: Renamed SMB command message variables to avoid compiler warnings · 99c2bad2
      Steve Holme authored
      smb.c:489: warning: declaration of 'close' shadows a global declaration
      smb.c:511: warning: declaration of 'read' shadows a global declaration
      smb.c:528: warning: declaration of 'write' shadows a global declaration
      99c2bad2
    • Steve Holme's avatar
      smb.c: Fixed compilation warnings · 069f63c8
      Steve Holme authored
      smb.c:212: warning: unused parameter 'done'
      smb.c:380: warning: ISO C does not allow extra ';' outside of a function
      smb.c:812: warning: unused parameter 'premature'
      smb.c:822: warning: unused parameter 'dead'
      069f63c8
    • Steve Holme's avatar
      smb.c: Fixed compilation warnings · 676f79f8
      Steve Holme authored
      smb.c:311: warning: conversion from 'unsigned __int64' to 'u_short',
                 possible loss of data
      smb.c:425: warning: conversion from '__int64' to 'unsigned short',
                 possible loss of data
      smb.c:452: warning: conversion from '__int64' to 'unsigned short',
                 possible loss of data
      676f79f8
    • Steve Holme's avatar
      smb.c: Fixed compilation warnings · cef28131
      Steve Holme authored
      smb.c:162: error: comma at end of enumerator list
      smb.c:469: warning: conversion from 'size_t' to 'unsigned short',
                 possible loss of data
      smb.c:517: warning: conversion from 'curl_off_t' to 'unsigned int',
                 possible loss of data
      smb.c:545: warning: conversion from 'curl_off_t' to 'unsigned int',
                 possible loss of data
      cef28131