Skip to content
  1. Jan 08, 2013
    • Yang Tse's avatar
      build: fix circular header inclusion with other packages · 5a053ffe
      Yang Tse authored
      This commit renames lib/setup.h to lib/curl_setup.h and
      renames lib/setup_once.h to lib/curl_setup_once.h.
      
      Removes the need and usage of a header inclusion guard foreign
      to libcurl. [1]
      
      Removes the need and presence of an alarming notice we carried
      in old setup_once.h [2]
      
      ----------------------------------------
      
      1 - lib/setup_once.h used __SETUP_ONCE_H macro as header inclusion guard
          up to commit ec691ca3 which changed this to HEADER_CURL_SETUP_ONCE_H,
          this single inclusion guard is enough to ensure that inclusion of
          lib/setup_once.h done from lib/setup.h is only done once.
      
          Additionally lib/setup.h has always used __SETUP_ONCE_H macro to
          protect inclusion of setup_once.h even after commit ec691ca3, this
          was to avoid a circular header inclusion triggered when building a
          c-ares enabled version with c-ares sources available which also has
          a setup_once.h header. Commit ec691ca3 exposes the real nature of
          __SETUP_ONCE_H usage in lib/setup.h, it is a header inclusion guard
          foreign to libcurl belonging to c-ares's setup_once.h
      
          The renaming this commit does, fixes the circular header inclusion,
          and as such removes the need and usage of a header inclusion guard
          foreign to libcurl. Macro __SETUP_ONCE_H no longer used in libcurl.
      
      2 - Due to the circular interdependency of old lib/setup_once.h and the
          c-ares setup_once.h header, old file lib/setup_once.h has carried
          back from 2006 up to now days an alarming and prominent notice about
          the need of keeping libcurl's and c-ares's setup_once.h in sync.
      
          Given that this commit fixes the circular interdependency, the need
          and presence of mentioned notice is removed.
      
          All mentioned interdependencies come back from now old days when
          the c-ares project lived inside a curl subdirectory. This commit
          removes last traces of such fact.
      5a053ffe
    • Steve Holme's avatar
      pop3: Added support for non-blocking SSL upgrade · 4ffb8a63
      Steve Holme authored
      Added support for asynchronous SSL upgrade when using the
      multi-interface.
      4ffb8a63
  2. Jan 07, 2013
  3. Jan 06, 2013
  4. Jan 05, 2013
    • Daniel Stenberg's avatar
      mk-ca-bundle: add -f, support passing to stdout and more · cc4ac82b
      Daniel Stenberg authored
      1. When the downloaded data file from Mozilla is current, but the output
      bundle does not exist: continue processing to create the bundle.  The
      goal is to have the output file - not just download the latest input.
      
      2. added -f option to force re-processing the file.  Useful for
      debugging/testing the process.
      
      3. added support for output to '-' (stdout), allowing the output to be
      piped.
      
      4. All progress and error messages go to STDERR rather than STDOUT (3)
      
      5. The script opened and closed the output file many times
      unnecessarily.  It now opens it once, does the output and closes it.
      
      6. Backup of the input files happens after successful processing, not
      before.
      
      7. The output is written to a temporary file, and renamed to the
      requested name after backup - this greatly reduces the window where the
      file can be seen partially written.
      
      8. all die calls have a \n at the end to suppress perl's traceback - the
      traceback isn't useful to end users.
      
      Patch: ht...
      cc4ac82b
  5. Jan 03, 2013
    • Yang Tse's avatar
    • Yang Tse's avatar
      build: commit 13606bbf follow-up 1 · 7d83dfff
      Yang Tse authored
      7d83dfff
    • Yang Tse's avatar
      build: rename 93 lib/*.c files · 5b6e7927
      Yang Tse authored
      93 lib/*.c source files renamed to use our standard naming scheme.
      
      This commit only does the file renaming.
      
      ----------------------------------------
      
        renamed:    lib/amigaos.c -> lib/curl_amigaos.c
        renamed:    lib/asyn-ares.c -> lib/curl_asyn_ares.c
        renamed:    lib/asyn-thread.c -> lib/curl_asyn_thread.c
        renamed:    lib/axtls.c -> lib/curl_axtls.c
        renamed:    lib/base64.c -> lib/curl_base64.c
        renamed:    lib/bundles.c -> lib/curl_bundles.c
        renamed:    lib/conncache.c -> lib/curl_conncache.c
        renamed:    lib/connect.c -> lib/curl_connect.c
        renamed:    lib/content_encoding.c -> lib/curl_content_encoding.c
        renamed:    lib/cookie.c -> lib/curl_cookie.c
        renamed:    lib/cyassl.c -> lib/curl_cyassl.c
        renamed:    lib/dict.c -> lib/curl_dict.c
        renamed:    lib/easy.c -> lib/curl_easy.c
        renamed:    lib/escape.c -> lib/curl_escape.c
        renamed:    lib/file.c -> lib/curl_file.c
        renamed:    lib/fileinfo.c -> lib/curl_fileinfo.c
        renamed:    lib/formdata.c -> lib/curl_formdata.c
        renamed:    lib/ftp.c -> lib/curl_ftp.c
        renamed:    lib/ftplistparser.c -> lib/curl_ftplistparser.c
        renamed:    lib/getenv.c -> lib/curl_getenv.c
        renamed:    lib/getinfo.c -> lib/curl_getinfo.c
        renamed:    lib/gopher.c -> lib/curl_gopher.c
        renamed:    lib/gtls.c -> lib/curl_gtls.c
        renamed:    lib/hash.c -> lib/curl_hash.c
        renamed:    lib/hmac.c -> lib/curl_hmac.c
        renamed:    lib/hostasyn.c -> lib/curl_hostasyn.c
        renamed:    lib/hostcheck.c -> lib/curl_hostcheck.c
        renamed:    lib/hostip.c -> lib/curl_hostip.c
        renamed:    lib/hostip4.c -> lib/curl_hostip4.c
        renamed:    lib/hostip6.c -> lib/curl_hostip6.c
        renamed:    lib/hostsyn.c -> lib/curl_hostsyn.c
        renamed:    lib/http.c -> lib/curl_http.c
        renamed:    lib/http_chunks.c -> lib/curl_http_chunks.c
        renamed:    lib/http_digest.c -> lib/curl_http_digest.c
        renamed:    lib/http_negotiate.c -> lib/curl_http_negotiate.c
        renamed:    lib/http_negotiate_sspi.c -> lib/curl_http_negotiate_sspi.c
        renamed:    lib/http_proxy.c -> lib/curl_http_proxy.c
        renamed:    lib/idn_win32.c -> lib/curl_idn_win32.c
        renamed:    lib/if2ip.c -> lib/curl_if2ip.c
        renamed:    lib/imap.c -> lib/curl_imap.c
        renamed:    lib/inet_ntop.c -> lib/curl_inet_ntop.c
        renamed:    lib/inet_pton.c -> lib/curl_inet_pton.c
        renamed:    lib/krb4.c -> lib/curl_krb4.c
        renamed:    lib/krb5.c -> lib/curl_krb5.c
        renamed:    lib/ldap.c -> lib/curl_ldap.c
        renamed:    lib/llist.c -> lib/curl_llist.c
        renamed:    lib/md4.c -> lib/curl_md4.c
        renamed:    lib/md5.c -> lib/curl_md5.c
        renamed:    lib/memdebug.c -> lib/curl_memdebug.c
        renamed:    lib/mprintf.c -> lib/curl_mprintf.c
        renamed:    lib/multi.c -> lib/curl_multi.c
        renamed:    lib/netrc.c -> lib/curl_netrc.c
        renamed:    lib/non-ascii.c -> lib/curl_non_ascii.c
        renamed:    lib/curl_non-ascii.h -> lib/curl_non_ascii.h
        renamed:    lib/nonblock.c -> lib/curl_nonblock.c
        renamed:    lib/nss.c -> lib/curl_nss.c
        renamed:    lib/nwlib.c -> lib/curl_nwlib.c
        renamed:    lib/nwos.c -> lib/curl_nwos.c
        renamed:    lib/openldap.c -> lib/curl_openldap.c
        renamed:    lib/parsedate.c -> lib/curl_parsedate.c
        renamed:    lib/pingpong.c -> lib/curl_pingpong.c
        renamed:    lib/polarssl.c -> lib/curl_polarssl.c
        renamed:    lib/pop3.c -> lib/curl_pop3.c
        renamed:    lib/progress.c -> lib/curl_progress.c
        renamed:    lib/qssl.c -> lib/curl_qssl.c
        renamed:    lib/rawstr.c -> lib/curl_rawstr.c
        renamed:    lib/rtsp.c -> lib/curl_rtsp.c
        renamed:    lib/security.c -> lib/curl_security.c
        renamed:    lib/select.c -> lib/curl_select.c
        renamed:    lib/sendf.c -> lib/curl_sendf.c
        renamed:    lib/share.c -> lib/curl_share.c
        renamed:    lib/slist.c -> lib/curl_slist.c
        renamed:    lib/smtp.c -> lib/curl_smtp.c
        renamed:    lib/socks.c -> lib/curl_socks.c
        renamed:    lib/socks_gssapi.c -> lib/curl_socks_gssapi.c
        renamed:    lib/socks_sspi.c -> lib/curl_socks_sspi.c
        renamed:    lib/speedcheck.c -> lib/curl_speedcheck.c
        renamed:    lib/splay.c -> lib/curl_splay.c
        renamed:    lib/ssh.c -> lib/curl_ssh.c
        renamed:    lib/sslgen.c -> lib/curl_sslgen.c
        renamed:    lib/ssluse.c -> lib/curl_ssluse.c
        renamed:    lib/strdup.c -> lib/curl_strdup.c
        renamed:    lib/strequal.c -> lib/curl_strequal.c
        renamed:    lib/strerror.c -> lib/curl_strerror.c
        renamed:    lib/strtok.c -> lib/curl_strtok.c
        renamed:    lib/strtoofft.c -> lib/curl_strtoofft.c
        renamed:    lib/telnet.c -> lib/curl_telnet.c
        renamed:    lib/tftp.c -> lib/curl_tftp.c
        renamed:    lib/timeval.c -> lib/curl_timeval.c
        renamed:    lib/transfer.c -> lib/curl_transfer.c
        renamed:    lib/url.c -> lib/curl_url.c
        renamed:    lib/version.c -> lib/curl_version.c
        renamed:    lib/warnless.c -> lib/curl_warnless.c
        renamed:    lib/wildcard.c -> lib/curl_wildcard.c
      
      ----------------------------------------
      5b6e7927
    • Yang Tse's avatar
      build: make use of 93 lib/*.c renamed files · 13606bbf
      Yang Tse authored
      93 *.c source files renamed to use our standard naming scheme.
      
      This change affects 77 files in libcurl's source tree.
      13606bbf
  6. Jan 02, 2013
    • Yang Tse's avatar
      curl_setup.h: remove redundant include guard · c087374c
      Yang Tse authored
      c087374c
    • Yang Tse's avatar
      build and tests: curl_10char_object_name() shell function · dfe47691
      Yang Tse authored
      lib/objnames.inc provides definition of curl_10char_object_name() shell
      function. The intended purpose of this function is to transliterate a
      (*.c) source file name that may be longer than 10 characters, or not,
      into a string with at most 10 characters which may be used as an OS/400
      object name.
      
      Test case 1221 does unit testng of this function and also verifies
      that it is possible to generate distinct short object names for all
      curl and libcurl *.c source file names.
      
      lib/objnames-test.sh is the shell script used for test case 1221.
      
      tests/runtests.pl modified to accept shell script test cases.
      
      More details inside lib/objnames.inc and lib/objnames-test.sh
      dfe47691
  7. Dec 30, 2012
  8. Dec 29, 2012
  9. Dec 28, 2012
    • Yang Tse's avatar
      imap.c: remove trailing whitespace · 27f90c09
      Yang Tse authored
      27f90c09
    • Steve Holme's avatar
      imap.c: Code tidy up - Part 2 · ffa62e5b
      Steve Holme authored
      ffa62e5b
    • Steve Holme's avatar
      imap.c: Code tidy up - Part 1 · 2255ac52
      Steve Holme authored
      Applied some of the comment and layout changes that had already been
      applied to the pop3 and smtp code over the last 6 to 9 months.
      
      This is in preparation of adding SASL based authentication.
      2255ac52
    • Steve Holme's avatar
      pop3.c: Minor code tidy up · b3204e6d
      Steve Holme authored
      Minor tidy up of comments and layout prior to next part of imap work.
      b3204e6d
    • Steve Holme's avatar
      smtp: Minor code tidy up · f6f6f278
      Steve Holme authored
      Minor tidy up of comments and layout prior to next part of imap work.
      f6f6f278
    • Steve Holme's avatar
      167717b8
    • Steve Holme's avatar
      imap.c: Code tidy up renaming imapsendf() to imap_sendf() · 8177bc26
      Steve Holme authored
      Renamed imapsendf() to imap_sendf() to be more in keeping with the
      other imap functions as well as Curl_pp_sendf() that it replaces.
      8177bc26
    • Yang Tse's avatar
      build: rename 76 lib/*.h files · ffd8e127
      Yang Tse authored
      76 private header files renamed to use our standard naming scheme.
      
      This commit only does the file renaming.
      
      ----------------------------------------
      
        renamed:    amigaos.h -> curl_amigaos.h
        renamed:    arpa_telnet.h -> curl_arpa_telnet.h
        renamed:    asyn.h -> curl_asyn.h
        renamed:    axtls.h -> curl_axtls.h
        renamed:    bundles.h -> curl_bundles.h
        renamed:    conncache.h -> curl_conncache.h
        renamed:    connect.h -> curl_connect.h
        renamed:    content_encoding.h -> curl_content_encoding.h
        renamed:    cookie.h -> curl_cookie.h
        renamed:    cyassl.h -> curl_cyassl.h
        renamed:    dict.h -> curl_dict.h
        renamed:    easyif.h -> curl_easyif.h
        renamed:    escape.h -> curl_escape.h
        renamed:    file.h -> curl_file.h
        renamed:    fileinfo.h -> curl_fileinfo.h
        renamed:    formdata.h -> curl_formdata.h
        renamed:    ftp.h -> curl_ftp.h
        renamed:    ftplistparser.h -> curl_ftplistparser.h
        renamed:    getinfo.h -> curl_getinfo.h
        renamed:    gopher.h -> curl_gopher.h
        renamed:    gtls.h -> curl_gtls.h
        renamed:    hash.h -> curl_hash.h
        renamed:    hostcheck.h -> curl_hostcheck.h
        renamed:    hostip.h -> curl_hostip.h
        renamed:    http.h -> curl_http.h
        renamed:    http_chunks.h -> curl_http_chunks.h
        renamed:    http_digest.h -> curl_http_digest.h
        renamed:    http_negotiate.h -> curl_http_negotiate.h
        renamed:    http_proxy.h -> curl_http_proxy.h
        renamed:    if2ip.h -> curl_if2ip.h
        renamed:    imap.h -> curl_imap.h
        renamed:    inet_ntop.h -> curl_inet_ntop.h
        renamed:    inet_pton.h -> curl_inet_pton.h
        renamed:    krb4.h -> curl_krb4.h
        renamed:    llist.h -> curl_llist.h
        renamed:    memdebug.h -> curl_memdebug.h
        renamed:    multiif.h -> curl_multiif.h
        renamed:    netrc.h -> curl_netrc.h
        renamed:    non-ascii.h -> curl_non-ascii.h
        renamed:    nonblock.h -> curl_nonblock.h
        renamed:    nssg.h -> curl_nssg.h
        renamed:    parsedate.h -> curl_parsedate.h
        renamed:    pingpong.h -> curl_pingpong.h
        renamed:    polarssl.h -> curl_polarssl.h
        renamed:    pop3.h -> curl_pop3.h
        renamed:    progress.h -> curl_progress.h
        renamed:    qssl.h -> curl_qssl.h
        renamed:    rawstr.h -> curl_rawstr.h
        renamed:    rtsp.h -> curl_rtsp.h
        renamed:    select.h -> curl_select.h
        renamed:    sendf.h -> curl_sendf.h
        renamed:    setup.h -> curl_setup.h
        renamed:    setup_once.h -> curl_setup_once.h
        renamed:    share.h -> curl_share.h
        renamed:    slist.h -> curl_slist.h
        renamed:    smtp.h -> curl_smtp.h
        renamed:    sockaddr.h -> curl_sockaddr.h
        renamed:    socks.h -> curl_socks.h
        renamed:    speedcheck.h -> curl_speedcheck.h
        renamed:    splay.h -> curl_splay.h
        renamed:    ssh.h -> curl_ssh.h
        renamed:    sslgen.h -> curl_sslgen.h
        renamed:    ssluse.h -> curl_ssluse.h
        renamed:    strdup.h -> curl_strdup.h
        renamed:    strequal.h -> curl_strequal.h
        renamed:    strerror.h -> curl_strerror.h
        renamed:    strtok.h -> curl_strtok.h
        renamed:    strtoofft.h -> curl_strtoofft.h
        renamed:    telnet.h -> curl_telnet.h
        renamed:    tftp.h -> curl_tftp.h
        renamed:    timeval.h -> curl_timeval.h
        renamed:    transfer.h -> curl_transfer.h
        renamed:    url.h -> curl_url.h
        renamed:    urldata.h -> curl_urldata.h
        renamed:    warnless.h -> curl_warnless.h
        renamed:    wildcard.h -> curl_wildcard.h
      
      ----------------------------------------
      ffd8e127
    • Yang Tse's avatar
      build: make use of 76 lib/*.h renamed files · f871de00
      Yang Tse authored
      76 private header files renamed to use our standard naming scheme.
      
      This change affects 322 files in libcurl's source tree.
      f871de00
    • Yang Tse's avatar