~ubuntu-branches/ubuntu/saucy/curl/saucy-security

« back to all changes in this revision

Viewing changes to docs/examples/anyauthput.c

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2012-05-22 14:53:29 UTC
  • mfrom: (3.4.28 sid)
  • Revision ID: package-import@ubuntu.com-20120522145329-hbf1n3zr7qh08qab
Tags: 7.25.0-1ubuntu1
* Merge from Debian testing (LP: #1003049).  Remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.
  - Add new libcurl3-udeb package.
  - Add new curl-udeb package.
  - Also closes (LP: #855291)
* debian/patches/CVE-2012-0036.patch: Dropped. CVE resolved upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#  ifdef __VMS
28
28
     typedef int intptr_t;
29
29
#  endif
 
30
#  include <stdint.h>
30
31
#  include <unistd.h>
31
32
#endif
32
33
#include <sys/types.h>
41
42
#endif
42
43
 
43
44
#include <curl/curl.h>
 
45
#include "printf_macro.h"
44
46
 
45
47
#if LIBCURL_VERSION_NUM < 0x070c03
46
48
#error "upgrade your libcurl to no less than 7.12.3"
92
94
 
93
95
  retcode = read(fd, ptr, size * nmemb);
94
96
 
95
 
  fprintf(stderr, "*** We read %d bytes from file\n", retcode);
 
97
  fprintf(stderr, "*** We read %" _FMT_SIZE_T " bytes from file\n", retcode);
96
98
 
97
99
  return retcode;
98
100
}