├── Heroku is not a repository error ├── Solution.txt ├── README.md └── error.txt ├── Installation error in curb in Windows ├── cygwin64 │ ├── bin │ │ ├── awk │ │ ├── bzcmp │ │ ├── ex │ │ ├── lzcat │ │ ├── lzcmp │ │ ├── lzma │ │ ├── rvi │ │ ├── rview │ │ ├── unxz │ │ ├── view │ │ ├── xzcat │ │ ├── xzcmp │ │ ├── bzegrep │ │ ├── bzfgrep │ │ ├── bzless │ │ ├── captoinfo │ │ ├── infotocap │ │ ├── lzdiff │ │ ├── lzegrep │ │ ├── lzfgrep │ │ ├── lzgrep │ │ ├── lzless │ │ ├── lzmore │ │ ├── reset │ │ ├── unlzma │ │ ├── xzegrep │ │ ├── xzfgrep │ │ ├── apropos │ │ ├── dnsdomainname │ │ └── domainname │ ├── usr │ │ ├── share │ │ │ ├── magic │ │ │ ├── file │ │ │ │ └── magic │ │ │ ├── groff │ │ │ │ └── current │ │ │ ├── doc │ │ │ │ ├── common-licenses │ │ │ │ │ ├── AFL │ │ │ │ │ ├── CC0 │ │ │ │ │ ├── GPL │ │ │ │ │ ├── LGPL │ │ │ │ │ └── Apache │ │ │ │ ├── libargp │ │ │ │ │ └── README.Cygwin │ │ │ │ └── groff │ │ │ │ │ └── pdf │ │ │ │ │ └── mom-pdf.pdf │ │ │ ├── terminfo │ │ │ │ ├── 45 │ │ │ │ │ └── Eterm-color │ │ │ │ ├── 73 │ │ │ │ │ └── screen.xterm-new │ │ │ │ └── 6a │ │ │ │ │ └── jfbterm │ │ │ └── locale │ │ │ │ ├── af │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── be │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── bg │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── ca │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── cs │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── da │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── de │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── el │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── eo │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── es │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── et │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── eu │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── fi │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── fr │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── ga │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── gl │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── hr │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── hu │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── ia │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── id │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── it │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── ja │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── kk │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── ko │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── lg │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── lt │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── ms │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── nb │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── nl │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── pl │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── pt │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── pt_BR │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── ro │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── ru │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── sk │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── sl │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── sr │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── sv │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── tr │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── uk │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── vi │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ ├── zh_CN │ │ │ │ └── LC_TIME │ │ │ │ │ └── coreutils.mo │ │ │ │ └── zh_TW │ │ │ │ └── LC_TIME │ │ │ │ └── coreutils.mo │ │ ├── sbin │ │ │ └── update-alternatives │ │ └── ssl │ │ │ ├── cert.pem │ │ │ └── certs │ │ │ ├── ca-bundle.crt │ │ │ └── ca-bundle.trust.crt │ ├── etc │ │ ├── ssl │ │ │ └── certs │ │ ├── pki │ │ │ ├── tls │ │ │ │ ├── certs │ │ │ │ └── cert.pem │ │ │ └── ca-trust │ │ │ │ └── source │ │ │ │ └── ca-bundle.legacy.crt │ │ ├── mtab │ │ ├── hosts │ │ ├── networks │ │ ├── protocols │ │ └── services │ ├── lib │ │ ├── terminfo │ │ ├── p11-kit │ │ │ └── trust-extract-compat │ │ └── security │ │ │ └── cacerts │ └── dev │ │ ├── fd │ │ ├── stderr │ │ ├── stdin │ │ └── stdout ├── README.md ├── curl-7.40.0-devel-mingw32 │ ├── README │ ├── curl.pdf │ ├── lib │ │ ├── libz.a │ │ ├── libcurl.a │ │ ├── libidn.a │ │ ├── librtmp.a │ │ ├── libssh2.a │ │ ├── libssl.a │ │ ├── libzdll.a │ │ ├── libcrypto.a │ │ ├── libcurldll.a │ │ ├── libidn.dll.a │ │ ├── libssh2dll.a │ │ ├── libssl.dll.a │ │ ├── libz.dll.a │ │ ├── libcrypto.dll.a │ │ ├── pkgconfig │ │ │ └── libcurl.pc │ │ ├── libssh2.def │ │ └── libcurl.def │ ├── samples │ │ ├── Makefile │ │ ├── simple.c │ │ ├── chkspeed.c │ │ └── Makefile.m32 │ ├── build.txt │ ├── include │ │ ├── libssh2_config.h │ │ ├── curl │ │ │ ├── stdcheaders.h │ │ │ ├── curlver.h │ │ │ ├── mprintf.h │ │ │ ├── easy.h │ │ │ ├── curlbuild.h.in │ │ │ ├── curlbuild.h.cmake │ │ │ ├── curlrules.h │ │ │ └── multi.h │ │ └── README │ ├── COPYING │ ├── RELEASE-NOTES │ ├── mk-ca-bundle.vbs │ └── mk-ca-bundle.pl └── solution.md ├── mkvirtualenv-command-not-found ├── error.txt └── solution.txt ├── Not in gzip format ├── Solution ├── README.md └── error ├── Environment.docx ├── Error-EACCES-permission-denied ├── solution.txt └── error.txt ├── CSS not loading in Heroku for Rails app ├── README.md ├── error.txt └── Solution.txt ├── The-entity-nbsp-was-referenced-but-not-declared-RSS-feed ├── error.txt ├── README.md ├── reason.txt └── solution.txt ├── bundle install not working but gem install works ├── README.md └── solution.md ├── usr-bin-env-node-No-such-file-or-directory ├── error.txt └── solution.txt ├── dele-files-with-path-or-file-name-exceeding-255-characters └── README.md ├── delete-files-with-path-or-file-name-exceeding-255-characters ├── README.md ├── error.txt └── solution.txt ├── OpenSSL Verification Ruby ├── error.txt ├── README.md ├── Solution.txt ├── New Text Document.txt └── win_fetch_cacerts.rb ├── Access Denied root@localhost ├── README.md ├── error ├── another_solution.txt └── solution ├── TZInfo Data Source Not Found ├── Solution.txt ├── README.md └── error.txt ├── ImportErrorRequestSite ├── solution.txt └── error.txt ├── Nework Icon disappeared ├── error.txt ├── README.md └── Solution.txt ├── README.md ├── Error dump └── LICENSE /Heroku is not a repository error/Solution.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/awk: -------------------------------------------------------------------------------- 1 | !gawk.exe -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/bzcmp: -------------------------------------------------------------------------------- 1 | !bzdiff -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/ex: -------------------------------------------------------------------------------- 1 | !vi.exe -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/lzcat: -------------------------------------------------------------------------------- 1 | !xz.exe -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/lzcmp: -------------------------------------------------------------------------------- 1 | !xzdiff -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/lzma: -------------------------------------------------------------------------------- 1 | !xz.exe -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/rvi: -------------------------------------------------------------------------------- 1 | !vi.exe -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/rview: -------------------------------------------------------------------------------- 1 | !vi.exe -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/unxz: -------------------------------------------------------------------------------- 1 | !xz.exe -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/view: -------------------------------------------------------------------------------- 1 | !vi.exe -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/xzcat: -------------------------------------------------------------------------------- 1 | !xz.exe -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/xzcmp: -------------------------------------------------------------------------------- 1 | !xzdiff -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/bzegrep: -------------------------------------------------------------------------------- 1 | !bzgrep -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/bzfgrep: -------------------------------------------------------------------------------- 1 | !bzgrep -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/bzless: -------------------------------------------------------------------------------- 1 | !bzmore -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/captoinfo: -------------------------------------------------------------------------------- 1 | !tic.exe -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/infotocap: -------------------------------------------------------------------------------- 1 | !tic.exe -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/lzdiff: -------------------------------------------------------------------------------- 1 | !xzdiff -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/lzegrep: -------------------------------------------------------------------------------- 1 | !xzgrep -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/lzfgrep: -------------------------------------------------------------------------------- 1 | !xzgrep -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/lzgrep: -------------------------------------------------------------------------------- 1 | !xzgrep -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/lzless: -------------------------------------------------------------------------------- 1 | !xzless -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/lzmore: -------------------------------------------------------------------------------- 1 | !xzmore -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/reset: -------------------------------------------------------------------------------- 1 | !tset.exe -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/unlzma: -------------------------------------------------------------------------------- 1 | !xz.exe -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/xzegrep: -------------------------------------------------------------------------------- 1 | !xzgrep -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/xzfgrep: -------------------------------------------------------------------------------- 1 | !xzgrep -------------------------------------------------------------------------------- /mkvirtualenv-command-not-found/error.txt: -------------------------------------------------------------------------------- 1 | mkvirtualenv: command not found 2 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/apropos: -------------------------------------------------------------------------------- 1 | !whatis.exe -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/magic: -------------------------------------------------------------------------------- 1 | !misc/magic -------------------------------------------------------------------------------- /Not in gzip format/Solution: -------------------------------------------------------------------------------- 1 | If the file type is *** gzip, then eliminate -z. 2 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/dnsdomainname: -------------------------------------------------------------------------------- 1 | !hostname.exe -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/bin/domainname: -------------------------------------------------------------------------------- 1 | !hostname.exe -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/etc/ssl/certs: -------------------------------------------------------------------------------- 1 | !/usr/ssl/certs -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/lib/terminfo: -------------------------------------------------------------------------------- 1 | !../share/terminfo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/file/magic: -------------------------------------------------------------------------------- 1 | !../magic -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/groff/current: -------------------------------------------------------------------------------- 1 | !1.22.3 -------------------------------------------------------------------------------- /Environment.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Environment.docx -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/etc/pki/tls/certs: -------------------------------------------------------------------------------- 1 | !/usr/ssl/certs -------------------------------------------------------------------------------- /Error-EACCES-permission-denied/solution.txt: -------------------------------------------------------------------------------- 1 | use: sudo npm install 2 | instead of: npm install 3 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/doc/common-licenses/AFL: -------------------------------------------------------------------------------- 1 | !AFL-2.1 -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/doc/common-licenses/CC0: -------------------------------------------------------------------------------- 1 | !CC0-1.0 -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/doc/common-licenses/GPL: -------------------------------------------------------------------------------- 1 | !GPL-3.0 -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/terminfo/6a/jfbterm: -------------------------------------------------------------------------------- 1 | !../6b/kon -------------------------------------------------------------------------------- /Installation error in curb in Windows/README.md: -------------------------------------------------------------------------------- 1 | #Installation errors while installing curb in Windows -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/sbin/update-alternatives: -------------------------------------------------------------------------------- 1 | !alternatives.exe -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/doc/common-licenses/LGPL: -------------------------------------------------------------------------------- 1 | !LGPL-3.0 -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/terminfo/45/Eterm-color: -------------------------------------------------------------------------------- 1 | !../45/Eterm -------------------------------------------------------------------------------- /Not in gzip format/README.md: -------------------------------------------------------------------------------- 1 | # TroubleShoot 2 | Error while extracting gzip file using tar [Solved] 3 | -------------------------------------------------------------------------------- /Heroku is not a repository error/README.md: -------------------------------------------------------------------------------- 1 | # TroubleShoot 2 | Heroku is not a repository error[solved] 3 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/doc/common-licenses/Apache: -------------------------------------------------------------------------------- 1 | !Apache-2.0 -------------------------------------------------------------------------------- /CSS not loading in Heroku for Rails app/README.md: -------------------------------------------------------------------------------- 1 | 2 | Error: CSS not loading in Rails app deployed to Heroku [Solved] -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/lib/p11-kit/trust-extract-compat: -------------------------------------------------------------------------------- 1 | !../../bin/update-ca-trust -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/lib/security/cacerts: -------------------------------------------------------------------------------- 1 | !/etc/pki/ca-trust/extracted/java/cacerts -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/doc/libargp/README.Cygwin: -------------------------------------------------------------------------------- 1 | !../Cygwin/libargp.README -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/terminfo/73/screen.xterm-new: -------------------------------------------------------------------------------- 1 | !../73/screen.xterm-xfree86 -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/ssl/cert.pem: -------------------------------------------------------------------------------- 1 | !/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/etc/pki/tls/cert.pem: -------------------------------------------------------------------------------- 1 | !/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/af/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/be/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/bg/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/ca/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/cs/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/da/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/de/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/el/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/eo/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/es/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/et/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/eu/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/fi/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/fr/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/ga/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/gl/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/hr/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/hu/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/ia/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/id/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/it/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/ja/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/kk/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/ko/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/lg/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/lt/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/ms/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/nb/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/nl/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/pl/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/pt/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/pt_BR/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/ro/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/ru/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/sk/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/sl/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/sr/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/sv/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/tr/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/uk/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/vi/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/zh_CN/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/locale/zh_TW/LC_TIME/coreutils.mo: -------------------------------------------------------------------------------- 1 | !../LC_MESSAGES/coreutils.mo -------------------------------------------------------------------------------- /The-entity-nbsp-was-referenced-but-not-declared-RSS-feed/error.txt: -------------------------------------------------------------------------------- 1 | The-entity-nbsp-was-referenced-but-not-declared-RSS-feed 2 | -------------------------------------------------------------------------------- /bundle install not working but gem install works/README.md: -------------------------------------------------------------------------------- 1 | # bundle install not working but gem install works ( Case: gem curb ) -------------------------------------------------------------------------------- /usr-bin-env-node-No-such-file-or-directory/ error.txt: -------------------------------------------------------------------------------- 1 | > bower install 2 | usr/bin/env: ‘node’: No such file or directory 3 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/share/doc/groff/pdf/mom-pdf.pdf: -------------------------------------------------------------------------------- 1 | !/usr/share/doc/groff/examples/mom/mom-pdf.pdf -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/ssl/certs/ca-bundle.crt: -------------------------------------------------------------------------------- 1 | !/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem -------------------------------------------------------------------------------- /The-entity-nbsp-was-referenced-but-not-declared-RSS-feed/README.md: -------------------------------------------------------------------------------- 1 | #The-entity-nbsp-was-referenced-but-not-declared-RSS-feed [Solved] 2 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/usr/ssl/certs/ca-bundle.trust.crt: -------------------------------------------------------------------------------- 1 | !/etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt -------------------------------------------------------------------------------- /dele-files-with-path-or-file-name-exceeding-255-characters/README.md: -------------------------------------------------------------------------------- 1 | #delete-files-with-path-or-file-name-exceeding-255-characters [ Solved ] 2 | -------------------------------------------------------------------------------- /delete-files-with-path-or-file-name-exceeding-255-characters/README.md: -------------------------------------------------------------------------------- 1 | #delete-files-with-path-or-file-name-exceeding-255-characters [ Solved ] 2 | -------------------------------------------------------------------------------- /usr-bin-env-node-No-such-file-or-directory/solution.txt: -------------------------------------------------------------------------------- 1 | > sudo ln -s /usr/bin/nodejs /usr/bin/node 2 | 3 | Doing a symlink solves the issue: 4 | -------------------------------------------------------------------------------- /CSS not loading in Heroku for Rails app/error.txt: -------------------------------------------------------------------------------- 1 | 2 | CSS does not load in a rails app hosted on Heroku. Thus, the face of the application is malformed. -------------------------------------------------------------------------------- /OpenSSL Verification Ruby/error.txt: -------------------------------------------------------------------------------- 1 | OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server c ertificate B: certificate verify failed -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/dev/fd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/cygwin64/dev/fd -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/etc/mtab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/cygwin64/etc/mtab -------------------------------------------------------------------------------- /Not in gzip format/error: -------------------------------------------------------------------------------- 1 | tar -xvfz files.tar 2 | gzip: stdin: not in gzip format 3 | tar: Child returned status 1 4 | tar: Error is not recoverable: exiting now 5 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/dev/stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/cygwin64/dev/stderr -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/dev/stdin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/cygwin64/dev/stdin -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/dev/stdout: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/cygwin64/dev/stdout -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/etc/hosts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/cygwin64/etc/hosts -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/etc/networks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/cygwin64/etc/networks -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/etc/protocols: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/cygwin64/etc/protocols -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/etc/services: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/cygwin64/etc/services -------------------------------------------------------------------------------- /delete-files-with-path-or-file-name-exceeding-255-characters/error.txt: -------------------------------------------------------------------------------- 1 | File system cannot permit deletion of files with path name or file name exceeding 255 characters in windows 2 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/curl-7.40.0-devel-mingw32/README -------------------------------------------------------------------------------- /Access Denied root@localhost/README.md: -------------------------------------------------------------------------------- 1 | # TroubleShoot 2 | [PDOException] 3 | SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' ( using password: YES) 4 | 5 | Error has been solved. 6 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/curl.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/curl-7.40.0-devel-mingw32/curl.pdf -------------------------------------------------------------------------------- /TZInfo Data Source Not Found/Solution.txt: -------------------------------------------------------------------------------- 1 |
2 | Add this to the gemfile and run bundle install to proceed with this error :

3 | gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw] 4 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libz.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libz.a -------------------------------------------------------------------------------- /Access Denied root@localhost/error: -------------------------------------------------------------------------------- 1 | Error: 2 | 3 | PDOException] SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' ( using password: YES) 4 | 5 | On running >> php artisan migrate:install 6 | 7 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libcurl.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libcurl.a -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libidn.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libidn.a -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/librtmp.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/librtmp.a -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libssh2.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libssh2.a -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libssl.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libssl.a -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libzdll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libzdll.a -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libcrypto.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libcrypto.a -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libcurldll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libcurldll.a -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libidn.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libidn.dll.a -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libssh2dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libssh2dll.a -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libssl.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libssl.dll.a -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libz.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libz.dll.a -------------------------------------------------------------------------------- /Error-EACCES-permission-denied/error.txt: -------------------------------------------------------------------------------- 1 | Error: EACCES: permission denied, access '/home/home/ee/node_modules'npm ERR! at Error (native)npm ERR! { [Error: EACCES: permission denied, access '/home/home/ee/node_modules'] 2 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libcrypto.dll.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libcrypto.dll.a -------------------------------------------------------------------------------- /OpenSSL Verification Ruby/README.md: -------------------------------------------------------------------------------- 1 | # TroubleShooting OpenSSL Certificate verification problem 2 | 3 | See the error file : [error.txt](https://github.com/AdiChat/TroubleShoot/blob/master/OpenSSL%20Verification%20Ruby/error.txt) 4 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/cygwin64/etc/pki/ca-trust/source/ca-bundle.legacy.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AdiChat/TroubleShoot/master/Installation error in curb in Windows/cygwin64/etc/pki/ca-trust/source/ca-bundle.legacy.crt -------------------------------------------------------------------------------- /ImportErrorRequestSite/solution.txt: -------------------------------------------------------------------------------- 1 | Replace : 2 | 3 | from django.contrib.sites.models import RequestSite 4 | 5 | by 6 | 7 | from django.contrib.sites.requests import RequestSite 8 | 9 | in [YourPath]/admin.py 10 | and also in views.py 11 | -------------------------------------------------------------------------------- /TZInfo Data Source Not Found/README.md: -------------------------------------------------------------------------------- 1 | # Resolving TZInfo::DataSourceNotFound Error 2 | Visit this for more information.
3 | Note: The error has been solved. 4 | -------------------------------------------------------------------------------- /bundle install not working but gem install works/solution.md: -------------------------------------------------------------------------------- 1 | 2 | Run the following commands: 3 | 4 | ` 5 | bundle config build.curb --with-curl-lib="C:/curl-7.40.0-devel-mingw32/bin" --with-curl-include="C:/curl-7.40.0-devel-mingw32/include" 6 | bundle install 7 | ` -------------------------------------------------------------------------------- /Nework Icon disappeared/error.txt: -------------------------------------------------------------------------------- 1 | 2 | The network icon disappears and the GUI shows that the network adapters are not detected.
3 | In short, we are unable to surf through the internet through others see our presence. 4 | Operating system : Windows 8.1 5 | 6 | Problem have been solved. 7 | -------------------------------------------------------------------------------- /Access Denied root@localhost/another_solution.txt: -------------------------------------------------------------------------------- 1 | 2 | create .my.cnf in /root/ 3 | 4 | and put in it 5 | 6 | [mysqladmin] 7 | user = root 8 | password = mysqlrootpassword 9 | [mysql] 10 | user = root 11 | password = mysqlrootpassword 12 | [mysqldump] 13 | user = root 14 | password = mysqlrootpassword 15 | -------------------------------------------------------------------------------- /Nework Icon disappeared/README.md: -------------------------------------------------------------------------------- 1 | # TroubleShoot 2 | The network icon in Windows 8.1 disappeared from the Network Adapter panel. In short, all means to connect to the network through GUI is missing. This issue has been fixed. We need to delete a binary file named config.
3 | See the file fixed.txt for the details of fixing this. 4 | -------------------------------------------------------------------------------- /delete-files-with-path-or-file-name-exceeding-255-characters/solution.txt: -------------------------------------------------------------------------------- 1 | If the contents of the folder D:/folder1 is to be deleted and either the path name or filename or both are exceeding 255 characters, 2 | create a temporary folder E:/folder2 and run the following command at the command prompt: 3 | 4 | robocopy /MIR d:\folder1 E:\folder2 5 | -------------------------------------------------------------------------------- /The-entity-nbsp-was-referenced-but-not-declared-RSS-feed/reason.txt: -------------------------------------------------------------------------------- 1 | The issue arised while registering RSS feed in feedburner. 2 | 3 | The issue arose as all numeric entities are allowed in XML but only the named ones are known from HTML. XHTML removes this issue as it follows XML structure. 4 | The solution was to escape such entities with the respective numeric entities. 5 | -------------------------------------------------------------------------------- /mkvirtualenv-command-not-found/solution.txt: -------------------------------------------------------------------------------- 1 | Add the following in .bash_profile : 2 | 3 | source "/usr/bin/virtualenvwrapper.sh" 4 | export WORKON_HOME="/opt/virtual_env/" 5 | 6 | virtualenvwrapper.sh is in /usr/local/bin instead of /usr/bin and this should be made explict in the user profile in .profile and .bashrc. 7 | Should be [ source "/usr/local/bin/virtualenvwrapper.sh" ] 8 | 9 | 10 | -------------------------------------------------------------------------------- /Nework Icon disappeared/Solution.txt: -------------------------------------------------------------------------------- 1 | 2 | Follow the following steps to remove the error : 3 | 4 | 1. Run command prompt as administrator 5 | 2. Type: regedt32 6 | 3. Press enter 7 | 4. In the new window, navigate to: 8 | HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network 9 | In the above folder, delete the binary file named Config. 10 | 5. Close Registry Editor 11 | 6. Reboot the machine. 12 | This solves the specific problem. 13 | -------------------------------------------------------------------------------- /OpenSSL Verification Ruby/Solution.txt: -------------------------------------------------------------------------------- 1 | 2 | Download the "win_fetch_cacerts.rb" file in your desktop. 3 | 4 | In command prompt, execute the command : 5 | 6 | >ruby "%USERPROFILE%\Desktop\win_fetch_cacerts.rb" 7 | 8 | Now make ruby aware of your certificate authority bundle by setting SSL_CERT_FILE. To set this in your current command prompt session, type: 9 | 10 | >set SSL_CERT_FILE=C:\RailsInstaller\cacert.pem 11 | 12 | Add this in control panel. 13 | 14 | -------------------------------------------------------------------------------- /OpenSSL Verification Ruby/New Text Document.txt: -------------------------------------------------------------------------------- 1 | 2 | Download the "win_fetch_cacerts.rb" file in your desktop. 3 | 4 | In command prompt, execute the command : 5 | 6 | >ruby "%USERPROFILE%\Desktop\win_fetch_cacerts.rb" 7 | 8 | Now make ruby aware of your certificate authority bundle by setting SSL_CERT_FILE. To set this in your current command prompt session, type: 9 | 10 | >set SSL_CERT_FILE=C:\RailsInstaller\cacert.pem 11 | 12 | Add this in control panel. 13 | 14 | -------------------------------------------------------------------------------- /CSS not loading in Heroku for Rails app/Solution.txt: -------------------------------------------------------------------------------- 1 | 2 | Solution 3 | 4 | Ensure the following in the file "/config/environments/production.rb" : 5 | 6 | config.cache_classes = true 7 | config.serve_static_assets = true 8 | config.assets.compile = true 9 | config.assets.digest = true 10 | 11 | Add the gem rails_12factor along with pg gem in production 12 | gem 'rails_12factor' 13 | 14 | Precompile the css files and commit the css files in public folder by the command: 15 | bundle exec rake assets:precompile RAILS_ENV=production -------------------------------------------------------------------------------- /TZInfo Data Source Not Found/error.txt: -------------------------------------------------------------------------------- 1 | c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/data_source.rb:199: 2 | in `rescue in create_default_data_source': 3 | No timezone data source could be found. To resolve this, either install 4 | TZInfo::Data (e.g. by running `gem install tzinfo-data`) or specify a zoneinfo 5 | directory using `TZInfo::DataSource.set(:zoneinfo, zoneinfo_path)`. 6 | (TZInfo::DataSourceNotFound) 7 | from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/tzinfo-1.1.0/lib/tzinfo/data_source.rb:196: 8 | in `create_default_data_source' 9 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/solution.md: -------------------------------------------------------------------------------- 1 | 2 | Download libcurl. (Files provided in repository) url: http://curl.haxx.se/gknw.net/7.40.0/dist-w32/renamed-curl-7.40.0-devel-mingw32.zip 3 | 4 | To make SSL certification work, set environment variable 5 | 6 | CURL_CA_BUNDLE=C:\Ruby200\bin\ca-bundle.crt 7 | SSL_CERT_FILE=C:\Ruby200\bin\cacert.pem 8 | 9 | copy all DLL and EXE file in C:\curl-7.40.0-devel-mingw32\bin to C:\Ruby200\bin 10 | 11 | Run: 12 | 13 | gem install curb --platform=ruby -- --with-curl-lib=C:/curl-7.40.0-devel-mingw32/bin --with-curl-include=C:/curl-7.40.0-devel-mingw32/include 14 | 15 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/samples/Makefile: -------------------------------------------------------------------------------- 1 | # Call MinGW32 Makefile with the dependencies libcurl is build. 2 | export DEVELPACKAGE = 1 3 | ifndef PROOT 4 | export PROOT = .. 5 | endif 6 | ifeq ($(findstring lib64,$(wildcard $(PROOT)/lib64/)),lib64) 7 | export ARCH = w64 8 | endif 9 | 10 | all: 11 | ifeq ($(ARCH),w64) 12 | @echo compiling 64-bit samples ... 13 | $(MAKE) -f Makefile.m32 SSL=1 SSH2=1 ZLIB=1 RTMP=1 SSPI=1 WINIDN=1 14 | else 15 | @echo compiling 32-bit samples ... 16 | $(MAKE) -f Makefile.m32 SSL=1 SSH2=1 ZLIB=1 RTMP=1 SSPI=1 IDN=1 17 | endif 18 | 19 | clean: 20 | $(MAKE) -f Makefile.m32 clean 21 | 22 | vclean: 23 | $(MAKE) -f Makefile.m32 vclean 24 | 25 | -------------------------------------------------------------------------------- /Access Denied root@localhost/solution: -------------------------------------------------------------------------------- 1 | Go to .env file in the project direcctory and set the correct password in the line: 2 | DB_PASSWORD=root 3 | 4 | In my case, there was no password so the updated line is: 5 | DB_PASSWORD= null 6 | 7 | The entire file is: 8 | 9 | APP_ENV=local 10 | APP_DEBUG=true 11 | APP_KEY=VhATXa51FaCrhSxGzWBlAgjV5KJoOLQL 12 | 13 | DB_HOST=127.0.0.1 14 | DB_DATABASE=larashop 15 | DB_USERNAME=root 16 | DB_PASSWORD=null 17 | 18 | CACHE_DRIVER=file 19 | SESSION_DRIVER=file 20 | QUEUE_DRIVER=sync 21 | 22 | REDIS_HOST=127.0.0.1 23 | REDIS_PASSWORD=null 24 | REDIS_PORT=6379 25 | 26 | MAIL_DRIVER=smtp 27 | MAIL_HOST=mailtrap.io 28 | MAIL_PORT=2525 29 | MAIL_USERNAME=null 30 | MAIL_PASSWORD=null 31 | MAIL_ENCRYPTION=null 32 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/build.txt: -------------------------------------------------------------------------------- 1 | This is a development package of the cURL libcurl library: 2 | http://curl.haxx.se/ 3 | Please direct any questions you may have regarding usage, 4 | develoment, or bugs to one of the cURL mailing lists: 5 | http://curl.haxx.se/mail/ 6 | 7 | All libs of this package are build with MinGW32 compiler; 8 | this SDK can be used f.e. for static and dynamic linking. 9 | 10 | version : 7.40.0 RTMP SSH2 SSL SSPI LIBZ IDN SPNEGO 11 | license : http://curl.haxx.se/docs/copyright.html 12 | built by : G. Knauf 13 | 14 | curl 7.40.0 (i386-pc-win32) libcurl/7.40.0 OpenSSL/1.0.0o zlib/1.2.8 libidn/1.18 libssh2/1.4.3 librtmp/2.3 15 | Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet tftp 16 | Features: AsynchDNS IDN Largefile SSPI Kerberos SPNEGO NTLM SSL libz 17 | 18 | -------------------------------------------------------------------------------- /OpenSSL Verification Ruby/win_fetch_cacerts.rb: -------------------------------------------------------------------------------- 1 | require 'net/http' 2 | 3 | # create a path to the file "C:\RailsInstaller\cacert.pem" 4 | cacert_file = File.join(%w{c: RailsInstaller cacert.pem}) 5 | 6 | Net::HTTP.start("curl.haxx.se") do |http| 7 | resp = http.get("/ca/cacert.pem") 8 | if resp.code == "200" 9 | open(cacert_file, "wb") { |file| file.write(resp.body) } 10 | puts "\n\nA bundle of certificate authorities has been installed to" 11 | puts "C:\\RailsInstaller\\cacert.pem\n" 12 | puts "* Please set SSL_CERT_FILE in your current command prompt session with:" 13 | puts " set SSL_CERT_FILE=C:\\RailsInstaller\\cacert.pem" 14 | puts "* To make this a permanent setting, add it to Environment Variables" 15 | puts " under Control Panel -> Advanced -> Environment Variables" 16 | else 17 | abort "\n\n>>>> A cacert.pem bundle could not be downloaded." 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/include/libssh2_config.h: -------------------------------------------------------------------------------- 1 | #ifndef LIBSSH2_CONFIG_H 2 | #define LIBSSH2_CONFIG_H 3 | 4 | #ifndef WIN32 5 | #define WIN32 6 | #endif 7 | #ifndef _CRT_SECURE_NO_DEPRECATE 8 | #define _CRT_SECURE_NO_DEPRECATE 1 9 | #endif /* _CRT_SECURE_NO_DEPRECATE */ 10 | #include 11 | #include 12 | #include 13 | 14 | #ifdef __MINGW32__ 15 | #define HAVE_UNISTD_H 16 | #define HAVE_INTTYPES_H 17 | #define HAVE_SYS_TIME_H 18 | #define HAVE_GETTIMEOFDAY 19 | #endif 20 | 21 | #define HAVE_WINSOCK2_H 22 | #define HAVE_IOCTLSOCKET 23 | #define HAVE_SELECT 24 | 25 | #ifdef _MSC_VER 26 | #define snprintf _snprintf 27 | #if _MSC_VER < 1500 28 | #define vsnprintf _vsnprintf 29 | #endif 30 | #define strdup _strdup 31 | #define strncasecmp _strnicmp 32 | #define strcasecmp _stricmp 33 | #else 34 | #define strncasecmp strnicmp 35 | #define strcasecmp stricmp 36 | #endif /* _MSC_VER */ 37 | 38 | /* Enable newer diffie-hellman-group-exchange-sha1 syntax */ 39 | #define LIBSSH2_DH_GEX_NEW 1 40 | 41 | #endif /* LIBSSH2_CONFIG_H */ 42 | 43 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/COPYING: -------------------------------------------------------------------------------- 1 | COPYRIGHT AND PERMISSION NOTICE 2 | 3 | Copyright (c) 1996 - 2015, Daniel Stenberg, . 4 | 5 | All rights reserved. 6 | 7 | Permission to use, copy, modify, and distribute this software for any purpose 8 | with or without fee is hereby granted, provided that the above copyright 9 | notice and this permission notice appear in all copies. 10 | 11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 12 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 13 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN 14 | NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 15 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 16 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE 17 | OR OTHER DEALINGS IN THE SOFTWARE. 18 | 19 | Except as contained in this notice, the name of a copyright holder shall not 20 | be used in advertising or otherwise to promote the sale, use or other dealings 21 | in this Software without prior written authorization of the copyright holder. 22 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/include/curl/stdcheaders.h: -------------------------------------------------------------------------------- 1 | #ifndef __STDC_HEADERS_H 2 | #define __STDC_HEADERS_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) 1998 - 2010, Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at http://curl.haxx.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | ***************************************************************************/ 24 | 25 | #include 26 | 27 | size_t fread (void *, size_t, size_t, FILE *); 28 | size_t fwrite (const void *, size_t, size_t, FILE *); 29 | 30 | int strcasecmp(const char *, const char *); 31 | int strncasecmp(const char *, const char *, size_t); 32 | 33 | #endif /* __STDC_HEADERS_H */ 34 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/pkgconfig/libcurl.pc: -------------------------------------------------------------------------------- 1 | #*************************************************************************** 2 | # _ _ ____ _ 3 | # Project ___| | | | _ \| | 4 | # / __| | | | |_) | | 5 | # | (__| |_| | _ <| |___ 6 | # \___|\___/|_| \_\_____| 7 | # 8 | # Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. 9 | # 10 | # This software is licensed as described in the file COPYING, which 11 | # you should have received as part of this distribution. The terms 12 | # are also available at http://curl.haxx.se/docs/copyright.html. 13 | # 14 | # You may opt to use, copy, modify, merge, publish, distribute and/or sell 15 | # copies of the Software, and permit persons to whom the Software is 16 | # furnished to do so, under the terms of the COPYING file. 17 | # 18 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 19 | # KIND, either express or implied. 20 | # 21 | ########################################################################### 22 | 23 | # This should most probably benefit from getting a "Requires:" field added 24 | # dynamically by configure. 25 | # 26 | prefix=. 27 | exec_prefix=${prefix}/bin 28 | libdir=${prefix}/lib 29 | includedir=${prefix}/include 30 | supported_protocols="dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp rtsp scp sftp smtp smtps telnet tftp" 31 | supported_features="AsynchDNS IDN Largefile SSPI Kerberos SPNEGO NTLM SSL libz" 32 | 33 | Name: libcurl 34 | URL: http://curl.haxx.se/ 35 | Description: Library to transfer files with ftp, http, etc. 36 | Version: 7.40.0 37 | Libs: -L${libdir} -lcurl 38 | Libs.private: 39 | Cflags: -I${includedir} @CPPFLAG_CURL_STATICLIB@ 40 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/samples/simple.c: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * _ _ ____ _ 3 | * Project ___| | | | _ \| | 4 | * / __| | | | |_) | | 5 | * | (__| |_| | _ <| |___ 6 | * \___|\___/|_| \_\_____| 7 | * 8 | * Copyright (C) 1998 - 2013, Daniel Stenberg, , et al. 9 | * 10 | * This software is licensed as described in the file COPYING, which 11 | * you should have received as part of this distribution. The terms 12 | * are also available at http://curl.haxx.se/docs/copyright.html. 13 | * 14 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 15 | * copies of the Software, and permit persons to whom the Software is 16 | * furnished to do so, under the terms of the COPYING file. 17 | * 18 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 19 | * KIND, either express or implied. 20 | * 21 | ***************************************************************************/ 22 | #include 23 | #include 24 | 25 | int main(void) 26 | { 27 | CURL *curl; 28 | CURLcode res; 29 | 30 | curl = curl_easy_init(); 31 | if(curl) { 32 | curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); 33 | /* example.com is redirected, so we tell libcurl to follow redirection */ 34 | curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); 35 | 36 | /* Perform the request, res will get the return code */ 37 | res = curl_easy_perform(curl); 38 | /* Check for errors */ 39 | if(res != CURLE_OK) 40 | fprintf(stderr, "curl_easy_perform() failed: %s\n", 41 | curl_easy_strerror(res)); 42 | 43 | /* always cleanup */ 44 | curl_easy_cleanup(curl); 45 | } 46 | return 0; 47 | } 48 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # TroubleShoot 2 | Troubleshooting through problems 3 | 4 | :watch: :computer: :guitar: :key: :girl: :boy: :man: :woman: :rose: :book: :lock: :droplet:

5 | 1. Network icon disappeared in Windows 8.1 [Solved]: [see](https://github.com/AdiChat/TroubleShoot/tree/master/Nework%20Icon%20disappeared)
6 | 2. OpenSSL Certificate verification problem while using RubyGems in Windows 8.1 platform [Solved]: [see](https://github.com/AdiChat/TroubleShoot/tree/master/OpenSSL%20Verification%20Ruby)
7 | 3. TZinfo Data Source not found error [Solved]: [see](https://github.com/AdiChat/TroubleShoot/tree/master/TZInfo%20Data%20Source%20Not%20Found)
8 | 4. Heroku is not a repository error [Solved]: [see](https://github.com/AdiChat/TroubleShoot/tree/master/Heroku%20is%20not%20a%20repository%20error)
9 | 5. Not a gzip file - tar extraction error [Solved]: [see](https://github.com/AdiChat/TroubleShoot/tree/master/Not%20in%20gzip%20format)
10 | 6. Access Denied root@localhost error [Solved]: [see](https://github.com/AdiChat/TroubleShoot/tree/master/Access%20Denied%20root%40localhost)
11 | 7. ImportError: cannot import name RequestSite when inlude 'registration' in installed apps [Solved]: [see](https://github.com/AdiChat/TroubleShoot/tree/master/ImportErrorRequestSite)
12 | 8. mkvirtualenv-command-not-found [Solved]: [see](https://github.com/AdiChat/TroubleShoot/tree/master/mkvirtualenv-command-not-found)
13 | 9. The-entity-nbsp-was-referenced-but-not-declared-RSS-feed [Solved]: [see](https://github.com/AdiChat/TroubleShoot/tree/master/The-entity-nbsp-was-referenced-but-not-declared-RSS-feed)
14 | 10. delete-files-with-path-or-file-name-exceeding-255-characters [Solved]: [see](https://github.com/AdiChat/TroubleShoot/tree/master/delete-files-with-path-or-file-name-exceeding-255-characters)
15 | 11. Error-EACCES-permission-denied [Solved]: [see](https://github.com/AdiChat/TroubleShoot/tree/master/Error-EACCES-permission-denied)
16 | 12. usr-bin-env-node-No-such-file-or-directory [Solved]: [see](https://github.com/AdiChat/TroubleShoot/tree/master/usr-bin-env-node-No-such-file-or-directory)
17 | 13. PG::ConnectionBad: could not connect to server [Solved][To be updated]
18 | 14. CSS not loading in Rails app deployed to Heroku [Solved]: [see](https://github.com/AdiChat/TroubleShoot/tree/master/CSS%20not%20loading%20in%20Heroku%20for%20Rails%20app)
19 |
20 | Note: Only a minor fraction of errors has been documented. 21 | -------------------------------------------------------------------------------- /Error dump: -------------------------------------------------------------------------------- 1 | Error 1: Ubuntu 15.10 { laravel newlaravel } 2 | Cannot create cache directory /home/aditya/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache 3 | Cannot create cache directory /home/aditya/.composer/cache/files/, or directory is not writable. Proceeding without cache 4 | Cannot create cache directory /home/aditya/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache 5 | Loading composer repositories with package information 6 | 7 | 8 | Error 2: 9 | [PDOException] 10 | SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using pas 11 | sword: NO) 12 | 13 | Error 3: 14 | C:\xampp\htdocs\larashop>php artisan migrate 15 | 16 | 17 | [Illuminate\Database\QueryException] 18 | SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'drinks' alr 19 | eady exists (SQL: create table `drinks` (`id` int unsigned not null auto_in 20 | crement primary key, `name` varchar(75) not null, `comments` text null, `ra 21 | ting` int not null, `brew_date` date not null, `created_at` timestamp null, 22 | `updated_at` timestamp null) default character set utf8 collate utf8_unico 23 | de_ci) 24 | 25 | Error 4: 26 | 27 | DL is deprecated, please use Fiddle 28 | rake aborted! 29 | PG::ConnectionBad: could not connect to server: Connection refused (0x0000274D/1 30 | 0061) 31 | Is the server running on host "localhost" (::1) and accepting 32 | TCP/IP connections on port 5432? 33 | could not connect to server: Connection refused (0x0000274D/10061) 34 | Is the server running on host "localhost" (127.0.0.1) and accepting 35 | TCP/IP connections on port 5432? 36 | E:/saas-project-app/test/test_helper.rb:3:in `' 37 | E:/saas-project-app/test/controllers/artifacts_controller_test.rb:1:in `' 39 | Tasks: TOP => test:run 40 | (See full trace by running task with --trace) 41 | 42 | 43 | 44 | [PDOException] 45 | SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'drinks' alr 46 | eady exists 47 | 48 | Error 4: 49 | 50 | aditya@aditya-Notebook:~/osem$ bundle install --standalone 51 | Fetching source index from https://rails-assets.org/ 52 | Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rails-assets.org/ 53 | Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://rails-assets.org/ 54 | Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://rails-assets.org/ 55 | Could not fetch specs from https://rails-assets.org/ 56 | 57 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/include/README: -------------------------------------------------------------------------------- 1 | _ _ ____ _ 2 | ___| | | | _ \| | 3 | / __| | | | |_) | | 4 | | (__| |_| | _ <| |___ 5 | \___|\___/|_| \_\_____| 6 | 7 | Include files for libcurl, external users. 8 | 9 | They're all placed in the curl subdirectory here for better fit in any kind 10 | of environment. You must include files from here using... 11 | 12 | #include 13 | 14 | ... style and point the compiler's include path to the directory holding the 15 | curl subdirectory. It makes it more likely to survive future modifications. 16 | 17 | NOTE FOR LIBCURL HACKERS 18 | 19 | The following notes apply to libcurl version 7.19.0 and later. 20 | 21 | * The distributed curl/curlbuild.h file is only intended to be used on systems 22 | which can not run the also distributed configure script. 23 | 24 | * The distributed curlbuild.h file is generated as a copy of curlbuild.h.dist 25 | when the libcurl source code distribution archive file is originally created. 26 | 27 | * If you check out from git on a non-configure platform, you must run the 28 | appropriate buildconf* script to set up curlbuild.h and other local files 29 | before being able of compiling the library. 30 | 31 | * On systems capable of running the configure script, the configure process 32 | will overwrite the distributed include/curl/curlbuild.h file with one that 33 | is suitable and specific to the library being configured and built, which 34 | is generated from the include/curl/curlbuild.h.in template file. 35 | 36 | * If you intend to distribute an already compiled libcurl library you _MUST_ 37 | also distribute along with it the generated curl/curlbuild.h which has been 38 | used to compile it. Otherwise the library will be of no use for the users of 39 | the library that you have built. It is _your_ responsibility to provide this 40 | file. No one at the cURL project can know how you have built the library. 41 | 42 | * File curl/curlbuild.h includes platform and configuration dependent info, 43 | and must not be modified by anyone. Configure script generates it for you. 44 | 45 | * We cannot assume anything else but very basic compiler features being 46 | present. While libcurl requires an ANSI C compiler to build, some of the 47 | earlier ANSI compilers clearly can't deal with some preprocessor operators. 48 | 49 | * Newlines must remain unix-style for older compilers' sake. 50 | 51 | * Comments must be written in the old-style /* unnested C-fashion */ 52 | 53 | To figure out how to do good and portable checks for features, operating 54 | systems or specific hardwarare, a very good resource is Bjorn Reese's 55 | collection at http://predef.sf.net/ 56 | -------------------------------------------------------------------------------- /Heroku is not a repository error/error.txt: -------------------------------------------------------------------------------- 1 | Running console on recipe-store... up, run.1797 2 | /app/vendor/bundle/ruby/2.1.0/gems/fog-1.23.0/lib/fog/joyent/compute.rb:3:in `re 3 | quire': cannot load such file -- net/ssh (LoadError) 4 | from /app/vendor/bundle/ruby/2.1.0/gems/fog-1.23.0/lib/fog/joyent/comput 5 | e.rb:3:in `' 6 | from /app/vendor/bundle/ruby/2.1.0/gems/fog-1.23.0/lib/fog/joyent.rb:1:i 7 | n `require' 8 | from /app/vendor/bundle/ruby/2.1.0/gems/fog-1.23.0/lib/fog/joyent.rb:1:i 9 | n `' 10 | from /app/vendor/bundle/ruby/2.1.0/gems/fog-1.23.0/lib/fog.rb:40:in `req 11 | uire' 12 | from /app/vendor/bundle/ruby/2.1.0/gems/fog-1.23.0/lib/fog.rb:40:in `' 14 | from /app/vendor/bundle/ruby/2.1.0/gems/carrierwave-0.10.0/lib/carrierwa 15 | ve/storage/fog.rb:3:in `require' 16 | from /app/vendor/bundle/ruby/2.1.0/gems/carrierwave-0.10.0/lib/carrierwa 17 | ve/storage/fog.rb:3:in `' 18 | from /app/vendor/bundle/ruby/2.1.0/gems/carrierwave-0.10.0/lib/carrierwa 19 | ve/storage.rb:9:in `require' 20 | from /app/vendor/bundle/ruby/2.1.0/gems/carrierwave-0.10.0/lib/carrierwa 21 | ve/storage.rb:9:in `' 22 | from /app/vendor/bundle/ruby/2.1.0/gems/carrierwave-0.10.0/lib/carrierwa 23 | ve.rb:78:in `require' 24 | from /app/vendor/bundle/ruby/2.1.0/gems/carrierwave-0.10.0/lib/carrierwa 25 | ve.rb:78:in `' 26 | from /app/vendor/bundle/ruby/2.1.0/gems/bundler-1.9.7/lib/bundler/runtim 27 | e.rb:76:in `require' 28 | from /app/vendor/bundle/ruby/2.1.0/gems/bundler-1.9.7/lib/bundler/runtim 29 | e.rb:76:in `block (2 levels) in require' 30 | from /app/vendor/bundle/ruby/2.1.0/gems/bundler-1.9.7/lib/bundler/runtim 31 | e.rb:72:in `each' 32 | from /app/vendor/bundle/ruby/2.1.0/gems/bundler-1.9.7/lib/bundler/runtim 33 | e.rb:72:in `block in require' 34 | from /app/vendor/bundle/ruby/2.1.0/gems/bundler-1.9.7/lib/bundler/runtim 35 | e.rb:61:in `each' 36 | from /app/vendor/bundle/ruby/2.1.0/gems/bundler-1.9.7/lib/bundler/runtim 37 | e.rb:61:in `require' 38 | from /app/vendor/bundle/ruby/2.1.0/gems/bundler-1.9.7/lib/bundler.rb:134 39 | :in `require' 40 | from /app/config/application.rb:7:in `' 41 | from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/command 42 | s/commands_tasks.rb:146:in `require' 43 | from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/command 44 | s/commands_tasks.rb:146:in `require_application_and_environment!' 45 | from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/command 46 | s/commands_tasks.rb:68:in `console' 47 | from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/command 48 | s/commands_tasks.rb:40:in `run_command!' 49 | from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/command 50 | s.rb:17:in `' 51 | from bin/rails:8:in `require' 52 | from bin/rails:8:in `
' 53 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/include/curl/curlver.h: -------------------------------------------------------------------------------- 1 | #ifndef __CURL_CURLVER_H 2 | #define __CURL_CURLVER_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) 1998 - 2015, Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at http://curl.haxx.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | ***************************************************************************/ 24 | 25 | /* This header file contains nothing but libcurl version info, generated by 26 | a script at release-time. This was made its own header file in 7.11.2 */ 27 | 28 | /* This is the global package copyright */ 29 | #define LIBCURL_COPYRIGHT "1996 - 2015 Daniel Stenberg, ." 30 | 31 | /* This is the version number of the libcurl package from which this header 32 | file origins: */ 33 | #define LIBCURL_VERSION "7.40.0" 34 | 35 | /* The numeric version number is also available "in parts" by using these 36 | defines: */ 37 | #define LIBCURL_VERSION_MAJOR 7 38 | #define LIBCURL_VERSION_MINOR 40 39 | #define LIBCURL_VERSION_PATCH 0 40 | 41 | /* This is the numeric version of the libcurl version number, meant for easier 42 | parsing and comparions by programs. The LIBCURL_VERSION_NUM define will 43 | always follow this syntax: 44 | 45 | 0xXXYYZZ 46 | 47 | Where XX, YY and ZZ are the main version, release and patch numbers in 48 | hexadecimal (using 8 bits each). All three numbers are always represented 49 | using two digits. 1.2 would appear as "0x010200" while version 9.11.7 50 | appears as "0x090b07". 51 | 52 | This 6-digit (24 bits) hexadecimal number does not show pre-release number, 53 | and it is always a greater number in a more recent release. It makes 54 | comparisons with greater than and less than work. 55 | */ 56 | #define LIBCURL_VERSION_NUM 0x072800 57 | 58 | /* 59 | * This is the date and time when the full source package was created. The 60 | * timestamp is not stored in git, as the timestamp is properly set in the 61 | * tarballs by the maketgz script. 62 | * 63 | * The format of the date should follow this template: 64 | * 65 | * "Mon Feb 12 11:35:33 UTC 2007" 66 | */ 67 | #define LIBCURL_TIMESTAMP "Thu Jan 8 08:17:17 UTC 2015" 68 | 69 | #endif /* __CURL_CURLVER_H */ 70 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/include/curl/mprintf.h: -------------------------------------------------------------------------------- 1 | #ifndef __CURL_MPRINTF_H 2 | #define __CURL_MPRINTF_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) 1998 - 2013, Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at http://curl.haxx.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | ***************************************************************************/ 24 | 25 | #include 26 | #include /* needed for FILE */ 27 | 28 | #include "curl.h" 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | CURL_EXTERN int curl_mprintf(const char *format, ...); 35 | CURL_EXTERN int curl_mfprintf(FILE *fd, const char *format, ...); 36 | CURL_EXTERN int curl_msprintf(char *buffer, const char *format, ...); 37 | CURL_EXTERN int curl_msnprintf(char *buffer, size_t maxlength, 38 | const char *format, ...); 39 | CURL_EXTERN int curl_mvprintf(const char *format, va_list args); 40 | CURL_EXTERN int curl_mvfprintf(FILE *fd, const char *format, va_list args); 41 | CURL_EXTERN int curl_mvsprintf(char *buffer, const char *format, va_list args); 42 | CURL_EXTERN int curl_mvsnprintf(char *buffer, size_t maxlength, 43 | const char *format, va_list args); 44 | CURL_EXTERN char *curl_maprintf(const char *format, ...); 45 | CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args); 46 | 47 | #ifdef _MPRINTF_REPLACE 48 | # undef printf 49 | # undef fprintf 50 | # undef sprintf 51 | # undef vsprintf 52 | # undef snprintf 53 | # undef vprintf 54 | # undef vfprintf 55 | # undef vsnprintf 56 | # undef aprintf 57 | # undef vaprintf 58 | # define printf curl_mprintf 59 | # define fprintf curl_mfprintf 60 | #ifdef CURLDEBUG 61 | /* When built with CURLDEBUG we define away the sprintf functions since we 62 | don't want internal code to be using them */ 63 | # define sprintf sprintf_was_used 64 | # define vsprintf vsprintf_was_used 65 | #else 66 | # define sprintf curl_msprintf 67 | # define vsprintf curl_mvsprintf 68 | #endif 69 | # define snprintf curl_msnprintf 70 | # define vprintf curl_mvprintf 71 | # define vfprintf curl_mvfprintf 72 | # define vsnprintf curl_mvsnprintf 73 | # define aprintf curl_maprintf 74 | # define vaprintf curl_mvaprintf 75 | #endif 76 | 77 | #ifdef __cplusplus 78 | } 79 | #endif 80 | 81 | #endif /* __CURL_MPRINTF_H */ 82 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/include/curl/easy.h: -------------------------------------------------------------------------------- 1 | #ifndef __CURL_EASY_H 2 | #define __CURL_EASY_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) 1998 - 2008, Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at http://curl.haxx.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | ***************************************************************************/ 24 | #ifdef __cplusplus 25 | extern "C" { 26 | #endif 27 | 28 | CURL_EXTERN CURL *curl_easy_init(void); 29 | CURL_EXTERN CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...); 30 | CURL_EXTERN CURLcode curl_easy_perform(CURL *curl); 31 | CURL_EXTERN void curl_easy_cleanup(CURL *curl); 32 | 33 | /* 34 | * NAME curl_easy_getinfo() 35 | * 36 | * DESCRIPTION 37 | * 38 | * Request internal information from the curl session with this function. The 39 | * third argument MUST be a pointer to a long, a pointer to a char * or a 40 | * pointer to a double (as the documentation describes elsewhere). The data 41 | * pointed to will be filled in accordingly and can be relied upon only if the 42 | * function returns CURLE_OK. This function is intended to get used *AFTER* a 43 | * performed transfer, all results from this function are undefined until the 44 | * transfer is completed. 45 | */ 46 | CURL_EXTERN CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...); 47 | 48 | 49 | /* 50 | * NAME curl_easy_duphandle() 51 | * 52 | * DESCRIPTION 53 | * 54 | * Creates a new curl session handle with the same options set for the handle 55 | * passed in. Duplicating a handle could only be a matter of cloning data and 56 | * options, internal state info and things like persistent connections cannot 57 | * be transferred. It is useful in multithreaded applications when you can run 58 | * curl_easy_duphandle() for each new thread to avoid a series of identical 59 | * curl_easy_setopt() invokes in every thread. 60 | */ 61 | CURL_EXTERN CURL* curl_easy_duphandle(CURL *curl); 62 | 63 | /* 64 | * NAME curl_easy_reset() 65 | * 66 | * DESCRIPTION 67 | * 68 | * Re-initializes a CURL handle to the default values. This puts back the 69 | * handle to the same state as it was in when it was just created. 70 | * 71 | * It does keep: live connections, the Session ID cache, the DNS cache and the 72 | * cookies. 73 | */ 74 | CURL_EXTERN void curl_easy_reset(CURL *curl); 75 | 76 | /* 77 | * NAME curl_easy_recv() 78 | * 79 | * DESCRIPTION 80 | * 81 | * Receives data from the connected socket. Use after successful 82 | * curl_easy_perform() with CURLOPT_CONNECT_ONLY option. 83 | */ 84 | CURL_EXTERN CURLcode curl_easy_recv(CURL *curl, void *buffer, size_t buflen, 85 | size_t *n); 86 | 87 | /* 88 | * NAME curl_easy_send() 89 | * 90 | * DESCRIPTION 91 | * 92 | * Sends data over the connected socket. Use after successful 93 | * curl_easy_perform() with CURLOPT_CONNECT_ONLY option. 94 | */ 95 | CURL_EXTERN CURLcode curl_easy_send(CURL *curl, const void *buffer, 96 | size_t buflen, size_t *n); 97 | 98 | #ifdef __cplusplus 99 | } 100 | #endif 101 | 102 | #endif 103 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libssh2.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | libssh2_agent_connect @1 3 | libssh2_agent_disconnect @2 4 | libssh2_agent_free @3 5 | libssh2_agent_get_identity @4 6 | libssh2_agent_init @5 7 | libssh2_agent_list_identities @6 8 | libssh2_agent_userauth @7 9 | libssh2_banner_set @8 10 | libssh2_base64_decode @9 11 | libssh2_channel_close @10 12 | libssh2_channel_direct_tcpip_ex @11 13 | libssh2_channel_eof @12 14 | libssh2_channel_flush_ex @13 15 | libssh2_channel_forward_accept @14 16 | libssh2_channel_forward_cancel @15 17 | libssh2_channel_forward_listen_ex @16 18 | libssh2_channel_free @17 19 | libssh2_channel_get_exit_signal @18 20 | libssh2_channel_get_exit_status @19 21 | libssh2_channel_handle_extended_data @20 22 | libssh2_channel_handle_extended_data2 @21 23 | libssh2_channel_open_ex @22 24 | libssh2_channel_process_startup @23 25 | libssh2_channel_read_ex @24 26 | libssh2_channel_receive_window_adjust @25 27 | libssh2_channel_receive_window_adjust2 @26 28 | libssh2_channel_request_pty_ex @27 29 | libssh2_channel_request_pty_size_ex @28 30 | libssh2_channel_send_eof @29 31 | libssh2_channel_set_blocking @30 32 | libssh2_channel_setenv_ex @31 33 | libssh2_channel_wait_closed @32 34 | libssh2_channel_wait_eof @33 35 | libssh2_channel_window_read_ex @34 36 | libssh2_channel_window_write_ex @35 37 | libssh2_channel_write_ex @36 38 | libssh2_channel_x11_req_ex @37 39 | libssh2_exit @38 40 | libssh2_free @39 41 | libssh2_hostkey_hash @40 42 | libssh2_init @41 43 | libssh2_keepalive_config @42 44 | libssh2_keepalive_send @43 45 | libssh2_knownhost_add @44 46 | libssh2_knownhost_addc @45 47 | libssh2_knownhost_check @46 48 | libssh2_knownhost_checkp @47 49 | libssh2_knownhost_del @48 50 | libssh2_knownhost_free @49 51 | libssh2_knownhost_get @50 52 | libssh2_knownhost_init @51 53 | libssh2_knownhost_readfile @52 54 | libssh2_knownhost_readline @53 55 | libssh2_knownhost_writefile @54 56 | libssh2_knownhost_writeline @55 57 | libssh2_poll @56 58 | libssh2_poll_channel_read @57 59 | libssh2_publickey_add_ex @58 60 | libssh2_publickey_init @59 61 | libssh2_publickey_list_fetch @60 62 | libssh2_publickey_list_free @61 63 | libssh2_publickey_remove_ex @62 64 | libssh2_publickey_shutdown @63 65 | libssh2_scp_recv @64 66 | libssh2_scp_send64 @65 67 | libssh2_scp_send_ex @66 68 | libssh2_session_abstract @67 69 | libssh2_session_banner_get @68 70 | libssh2_session_banner_set @69 71 | libssh2_session_block_directions @70 72 | libssh2_session_callback_set @71 73 | libssh2_session_disconnect_ex @72 74 | libssh2_session_flag @73 75 | libssh2_session_free @74 76 | libssh2_session_get_blocking @75 77 | libssh2_session_get_timeout @76 78 | libssh2_session_handshake @77 79 | libssh2_session_hostkey @78 80 | libssh2_session_init_ex @79 81 | libssh2_session_last_errno @80 82 | libssh2_session_last_error @81 83 | libssh2_session_method_pref @82 84 | libssh2_session_methods @83 85 | libssh2_session_set_blocking @84 86 | libssh2_session_set_timeout @85 87 | libssh2_session_startup @86 88 | libssh2_session_supported_algs @87 89 | libssh2_sftp_close_handle @88 90 | libssh2_sftp_fstat_ex @89 91 | libssh2_sftp_fstatvfs @90 92 | libssh2_sftp_get_channel @91 93 | libssh2_sftp_init @92 94 | libssh2_sftp_last_error @93 95 | libssh2_sftp_mkdir_ex @94 96 | libssh2_sftp_open_ex @95 97 | libssh2_sftp_read @96 98 | libssh2_sftp_readdir_ex @97 99 | libssh2_sftp_rename_ex @98 100 | libssh2_sftp_rmdir_ex @99 101 | libssh2_sftp_seek @100 102 | libssh2_sftp_seek64 @101 103 | libssh2_sftp_shutdown @102 104 | libssh2_sftp_stat_ex @103 105 | libssh2_sftp_statvfs @104 106 | libssh2_sftp_symlink_ex @105 107 | libssh2_sftp_tell @106 108 | libssh2_sftp_tell64 @107 109 | libssh2_sftp_unlink_ex @108 110 | libssh2_sftp_write @109 111 | libssh2_trace @110 112 | libssh2_trace_sethandler @111 113 | libssh2_userauth_authenticated @112 114 | libssh2_userauth_hostbased_fromfile_ex @113 115 | libssh2_userauth_keyboard_interactive_ex @114 116 | libssh2_userauth_list @115 117 | libssh2_userauth_password_ex @116 118 | libssh2_userauth_publickey @117 119 | libssh2_userauth_publickey_fromfile_ex @118 120 | libssh2_version @119 121 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/lib/libcurl.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | curl_easy_cleanup @1 3 | curl_easy_duphandle @2 4 | curl_easy_escape @3 5 | curl_easy_getinfo @4 6 | curl_easy_init @5 7 | curl_easy_pause @6 8 | curl_easy_perform @7 9 | curl_easy_recv @8 10 | curl_easy_reset @9 11 | curl_easy_send @10 12 | curl_easy_setopt @11 13 | curl_easy_strerror @12 14 | curl_easy_unescape @13 15 | curl_escape @14 16 | curl_formadd @15 17 | curl_formfree @16 18 | curl_formget @17 19 | curl_free @18 20 | curl_getdate @19 21 | curl_getenv @20 22 | curl_global_cleanup @21 23 | curl_global_init @22 24 | curl_global_init_mem @23 25 | curl_maprintf @24 26 | curl_mfprintf @25 27 | curl_mprintf @26 28 | curl_msnprintf @27 29 | curl_msprintf @28 30 | curl_multi_add_handle @29 31 | curl_multi_assign @30 32 | curl_multi_cleanup @31 33 | curl_multi_fdset @32 34 | curl_multi_info_read @33 35 | curl_multi_init @34 36 | curl_multi_perform @35 37 | curl_multi_remove_handle @36 38 | curl_multi_setopt @37 39 | curl_multi_socket @38 40 | curl_multi_socket_action @39 41 | curl_multi_socket_all @40 42 | curl_multi_strerror @41 43 | curl_multi_timeout @42 44 | curl_multi_wait @43 45 | curl_mvaprintf @44 46 | curl_mvfprintf @45 47 | curl_mvprintf @46 48 | curl_mvsnprintf @47 49 | curl_mvsprintf @48 50 | curl_share_cleanup @49 51 | curl_share_init @50 52 | curl_share_setopt @51 53 | curl_share_strerror @52 54 | curl_slist_append @53 55 | curl_slist_free_all @54 56 | curl_strequal @55 57 | curl_strnequal @56 58 | curl_unescape @57 59 | curl_version @58 60 | curl_version_info @59 61 | libssh2_agent_connect @60 62 | libssh2_agent_disconnect @61 63 | libssh2_agent_free @62 64 | libssh2_agent_get_identity @63 65 | libssh2_agent_init @64 66 | libssh2_agent_list_identities @65 67 | libssh2_agent_userauth @66 68 | libssh2_banner_set @67 69 | libssh2_base64_decode @68 70 | libssh2_channel_close @69 71 | libssh2_channel_direct_tcpip_ex @70 72 | libssh2_channel_eof @71 73 | libssh2_channel_flush_ex @72 74 | libssh2_channel_forward_accept @73 75 | libssh2_channel_forward_cancel @74 76 | libssh2_channel_forward_listen_ex @75 77 | libssh2_channel_free @76 78 | libssh2_channel_get_exit_signal @77 79 | libssh2_channel_get_exit_status @78 80 | libssh2_channel_handle_extended_data @79 81 | libssh2_channel_handle_extended_data2 @80 82 | libssh2_channel_open_ex @81 83 | libssh2_channel_process_startup @82 84 | libssh2_channel_read_ex @83 85 | libssh2_channel_receive_window_adjust @84 86 | libssh2_channel_receive_window_adjust2 @85 87 | libssh2_channel_request_pty_ex @86 88 | libssh2_channel_request_pty_size_ex @87 89 | libssh2_channel_send_eof @88 90 | libssh2_channel_set_blocking @89 91 | libssh2_channel_setenv_ex @90 92 | libssh2_channel_wait_closed @91 93 | libssh2_channel_wait_eof @92 94 | libssh2_channel_window_read_ex @93 95 | libssh2_channel_window_write_ex @94 96 | libssh2_channel_write_ex @95 97 | libssh2_channel_x11_req_ex @96 98 | libssh2_exit @97 99 | libssh2_free @98 100 | libssh2_hostkey_hash @99 101 | libssh2_init @100 102 | libssh2_keepalive_config @101 103 | libssh2_keepalive_send @102 104 | libssh2_knownhost_add @103 105 | libssh2_knownhost_addc @104 106 | libssh2_knownhost_check @105 107 | libssh2_knownhost_checkp @106 108 | libssh2_knownhost_del @107 109 | libssh2_knownhost_free @108 110 | libssh2_knownhost_get @109 111 | libssh2_knownhost_init @110 112 | libssh2_knownhost_readfile @111 113 | libssh2_knownhost_readline @112 114 | libssh2_knownhost_writefile @113 115 | libssh2_knownhost_writeline @114 116 | libssh2_poll @115 117 | libssh2_poll_channel_read @116 118 | libssh2_scp_recv @117 119 | libssh2_scp_send64 @118 120 | libssh2_scp_send_ex @119 121 | libssh2_session_abstract @120 122 | libssh2_session_banner_get @121 123 | libssh2_session_banner_set @122 124 | libssh2_session_block_directions @123 125 | libssh2_session_callback_set @124 126 | libssh2_session_disconnect_ex @125 127 | libssh2_session_flag @126 128 | libssh2_session_free @127 129 | libssh2_session_get_blocking @128 130 | libssh2_session_get_timeout @129 131 | libssh2_session_handshake @130 132 | libssh2_session_hostkey @131 133 | libssh2_session_init_ex @132 134 | libssh2_session_last_errno @133 135 | libssh2_session_last_error @134 136 | libssh2_session_method_pref @135 137 | libssh2_session_methods @136 138 | libssh2_session_set_blocking @137 139 | libssh2_session_set_timeout @138 140 | libssh2_session_startup @139 141 | libssh2_session_supported_algs @140 142 | libssh2_sftp_close_handle @141 143 | libssh2_sftp_fstat_ex @142 144 | libssh2_sftp_fstatvfs @143 145 | libssh2_sftp_get_channel @144 146 | libssh2_sftp_init @145 147 | libssh2_sftp_last_error @146 148 | libssh2_sftp_mkdir_ex @147 149 | libssh2_sftp_open_ex @148 150 | libssh2_sftp_read @149 151 | libssh2_sftp_readdir_ex @150 152 | libssh2_sftp_rename_ex @151 153 | libssh2_sftp_rmdir_ex @152 154 | libssh2_sftp_seek @153 155 | libssh2_sftp_seek64 @154 156 | libssh2_sftp_shutdown @155 157 | libssh2_sftp_stat_ex @156 158 | libssh2_sftp_statvfs @157 159 | libssh2_sftp_symlink_ex @158 160 | libssh2_sftp_tell @159 161 | libssh2_sftp_tell64 @160 162 | libssh2_sftp_unlink_ex @161 163 | libssh2_sftp_write @162 164 | libssh2_trace @163 165 | libssh2_trace_sethandler @164 166 | libssh2_userauth_authenticated @165 167 | libssh2_userauth_hostbased_fromfile_ex @166 168 | libssh2_userauth_keyboard_interactive_ex @167 169 | libssh2_userauth_list @168 170 | libssh2_userauth_password_ex @169 171 | libssh2_userauth_publickey @170 172 | libssh2_userauth_publickey_fromfile_ex @171 173 | libssh2_version @172 174 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | CC0 1.0 Universal 2 | 3 | Statement of Purpose 4 | 5 | The laws of most jurisdictions throughout the world automatically confer 6 | exclusive Copyright and Related Rights (defined below) upon the creator and 7 | subsequent owner(s) (each and all, an "owner") of an original work of 8 | authorship and/or a database (each, a "Work"). 9 | 10 | Certain owners wish to permanently relinquish those rights to a Work for the 11 | purpose of contributing to a commons of creative, cultural and scientific 12 | works ("Commons") that the public can reliably and without fear of later 13 | claims of infringement build upon, modify, incorporate in other works, reuse 14 | and redistribute as freely as possible in any form whatsoever and for any 15 | purposes, including without limitation commercial purposes. These owners may 16 | contribute to the Commons to promote the ideal of a free culture and the 17 | further production of creative, cultural and scientific works, or to gain 18 | reputation or greater distribution for their Work in part through the use and 19 | efforts of others. 20 | 21 | For these and/or other purposes and motivations, and without any expectation 22 | of additional consideration or compensation, the person associating CC0 with a 23 | Work (the "Affirmer"), to the extent that he or she is an owner of Copyright 24 | and Related Rights in the Work, voluntarily elects to apply CC0 to the Work 25 | and publicly distribute the Work under its terms, with knowledge of his or her 26 | Copyright and Related Rights in the Work and the meaning and intended legal 27 | effect of CC0 on those rights. 28 | 29 | 1. Copyright and Related Rights. A Work made available under CC0 may be 30 | protected by copyright and related or neighboring rights ("Copyright and 31 | Related Rights"). Copyright and Related Rights include, but are not limited 32 | to, the following: 33 | 34 | i. the right to reproduce, adapt, distribute, perform, display, communicate, 35 | and translate a Work; 36 | 37 | ii. moral rights retained by the original author(s) and/or performer(s); 38 | 39 | iii. publicity and privacy rights pertaining to a person's image or likeness 40 | depicted in a Work; 41 | 42 | iv. rights protecting against unfair competition in regards to a Work, 43 | subject to the limitations in paragraph 4(a), below; 44 | 45 | v. rights protecting the extraction, dissemination, use and reuse of data in 46 | a Work; 47 | 48 | vi. database rights (such as those arising under Directive 96/9/EC of the 49 | European Parliament and of the Council of 11 March 1996 on the legal 50 | protection of databases, and under any national implementation thereof, 51 | including any amended or successor version of such directive); and 52 | 53 | vii. other similar, equivalent or corresponding rights throughout the world 54 | based on applicable law or treaty, and any national implementations thereof. 55 | 56 | 2. Waiver. To the greatest extent permitted by, but not in contravention of, 57 | applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and 58 | unconditionally waives, abandons, and surrenders all of Affirmer's Copyright 59 | and Related Rights and associated claims and causes of action, whether now 60 | known or unknown (including existing as well as future claims and causes of 61 | action), in the Work (i) in all territories worldwide, (ii) for the maximum 62 | duration provided by applicable law or treaty (including future time 63 | extensions), (iii) in any current or future medium and for any number of 64 | copies, and (iv) for any purpose whatsoever, including without limitation 65 | commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes 66 | the Waiver for the benefit of each member of the public at large and to the 67 | detriment of Affirmer's heirs and successors, fully intending that such Waiver 68 | shall not be subject to revocation, rescission, cancellation, termination, or 69 | any other legal or equitable action to disrupt the quiet enjoyment of the Work 70 | by the public as contemplated by Affirmer's express Statement of Purpose. 71 | 72 | 3. Public License Fallback. Should any part of the Waiver for any reason be 73 | judged legally invalid or ineffective under applicable law, then the Waiver 74 | shall be preserved to the maximum extent permitted taking into account 75 | Affirmer's express Statement of Purpose. In addition, to the extent the Waiver 76 | is so judged Affirmer hereby grants to each affected person a royalty-free, 77 | non transferable, non sublicensable, non exclusive, irrevocable and 78 | unconditional license to exercise Affirmer's Copyright and Related Rights in 79 | the Work (i) in all territories worldwide, (ii) for the maximum duration 80 | provided by applicable law or treaty (including future time extensions), (iii) 81 | in any current or future medium and for any number of copies, and (iv) for any 82 | purpose whatsoever, including without limitation commercial, advertising or 83 | promotional purposes (the "License"). The License shall be deemed effective as 84 | of the date CC0 was applied by Affirmer to the Work. Should any part of the 85 | License for any reason be judged legally invalid or ineffective under 86 | applicable law, such partial invalidity or ineffectiveness shall not 87 | invalidate the remainder of the License, and in such case Affirmer hereby 88 | affirms that he or she will not (i) exercise any of his or her remaining 89 | Copyright and Related Rights in the Work or (ii) assert any associated claims 90 | and causes of action with respect to the Work, in either case contrary to 91 | Affirmer's express Statement of Purpose. 92 | 93 | 4. Limitations and Disclaimers. 94 | 95 | a. No trademark or patent rights held by Affirmer are waived, abandoned, 96 | surrendered, licensed or otherwise affected by this document. 97 | 98 | b. Affirmer offers the Work as-is and makes no representations or warranties 99 | of any kind concerning the Work, express, implied, statutory or otherwise, 100 | including without limitation warranties of title, merchantability, fitness 101 | for a particular purpose, non infringement, or the absence of latent or 102 | other defects, accuracy, or the present or absence of errors, whether or not 103 | discoverable, all to the greatest extent permissible under applicable law. 104 | 105 | c. Affirmer disclaims responsibility for clearing rights of other persons 106 | that may apply to the Work or any use thereof, including without limitation 107 | any person's Copyright and Related Rights in the Work. Further, Affirmer 108 | disclaims responsibility for obtaining any necessary consents, permissions 109 | or other rights required for any use of the Work. 110 | 111 | d. Affirmer understands and acknowledges that Creative Commons is not a 112 | party to this document and has no duty or obligation with respect to this 113 | CC0 or use of the Work. 114 | 115 | For more information, please see 116 | 117 | 118 | -------------------------------------------------------------------------------- /ImportErrorRequestSite/error.txt: -------------------------------------------------------------------------------- 1 | $ python3 manage.py runserver 2 | Unhandled exception in thread started by .wrapper at 0x7f0959fb62f0> 3 | Traceback (most recent call last): 4 | File "/usr/local/lib/python3.4/dist-packages/django/utils/autoreload.py", line 226, in wrapper 5 | fn(*args, **kwargs) 6 | File "/usr/local/lib/python3.4/dist-packages/django/core/management/commands/runserver.py", line 109, in inner_run 7 | autoreload.raise_last_exception() 8 | File "/usr/local/lib/python3.4/dist-packages/django/utils/autoreload.py", line 249, in raise_last_exception 9 | six.reraise(*_exception) 10 | File "/usr/local/lib/python3.4/dist-packages/django/utils/six.py", line 685, in reraise 11 | raise value.with_traceback(tb) 12 | File "/usr/local/lib/python3.4/dist-packages/django/utils/autoreload.py", line 226, in wrapper 13 | fn(*args, **kwargs) 14 | File "/usr/local/lib/python3.4/dist-packages/django/__init__.py", line 18, in setup 15 | apps.populate(settings.INSTALLED_APPS) 16 | File "/usr/local/lib/python3.4/dist-packages/django/apps/registry.py", line 115, in populate 17 | app_config.ready() 18 | File "/usr/local/lib/python3.4/dist-packages/django/contrib/admin/apps.py", line 22, in ready 19 | self.module.autodiscover() 20 | File "/usr/local/lib/python3.4/dist-packages/django/contrib/admin/__init__.py", line 26, in autodiscover 21 | autodiscover_modules('admin', register_to=site) 22 | File "/usr/local/lib/python3.4/dist-packages/django/utils/module_loading.py", line 50, in autodiscover_modules 23 | import_module('%s.%s' % (app_config.name, module_to_search)) 24 | File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module 25 | return _bootstrap._gcd_import(name[level:], package, level) 26 | File "", line 2254, in _gcd_import 27 | File "", line 2237, in _find_and_load 28 | File "", line 2226, in _find_and_load_unlocked 29 | File "", line 1200, in _load_unlocked 30 | File "", line 1129, in _exec 31 | File "", line 1471, in exec_module 32 | File "", line 321, in _call_with_frames_removed 33 | File "/home/aditya/.local/lib/python3.4/site-packages/registration/admin.py", line 2, in 34 | from django.contrib.sites.models import RequestSite 35 | ImportError: cannot import name 'RequestSite' 36 | Performing system checks... 37 | 38 | /home/aditya/Desktop/ecommerce-2-master/src/ecommerce2/urls.py:15: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got newsletter.views.home). Pass the callable instead. 39 | url(r'^$', 'newsletter.views.home', name='home'), 40 | 41 | /home/aditya/Desktop/ecommerce-2-master/src/ecommerce2/urls.py:16: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got newsletter.views.contact). Pass the callable instead. 42 | url(r'^contact/$', 'newsletter.views.contact', name='contact'), 43 | 44 | /home/aditya/Desktop/ecommerce-2-master/src/ecommerce2/urls.py:17: RemovedInDjango110Warning: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got ecommerce2.views.about). Pass the callable instead. 45 | url(r'^about/$', 'ecommerce2.views.about', name='about'), 46 | 47 | Unhandled exception in thread started by .wrapper at 0x7f0f68b4b158> 48 | Traceback (most recent call last): 49 | File "/usr/local/lib/python3.4/dist-packages/django/utils/autoreload.py", line 226, in wrapper 50 | fn(*args, **kwargs) 51 | File "/usr/local/lib/python3.4/dist-packages/django/core/management/commands/runserver.py", line 116, in inner_run 52 | self.check(display_num_errors=True) 53 | File "/usr/local/lib/python3.4/dist-packages/django/core/management/base.py", line 426, in check 54 | include_deployment_checks=include_deployment_checks, 55 | File "/usr/local/lib/python3.4/dist-packages/django/core/checks/registry.py", line 75, in run_checks 56 | new_errors = check(app_configs=app_configs) 57 | File "/usr/local/lib/python3.4/dist-packages/django/core/checks/urls.py", line 10, in check_url_config 58 | return check_resolver(resolver) 59 | File "/usr/local/lib/python3.4/dist-packages/django/core/checks/urls.py", line 19, in check_resolver 60 | for pattern in resolver.url_patterns: 61 | File "/usr/local/lib/python3.4/dist-packages/django/utils/functional.py", line 33, in __get__ 62 | res = instance.__dict__[self.name] = self.func(instance) 63 | File "/usr/local/lib/python3.4/dist-packages/django/core/urlresolvers.py", line 417, in url_patterns 64 | patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) 65 | File "/usr/local/lib/python3.4/dist-packages/django/utils/functional.py", line 33, in __get__ 66 | res = instance.__dict__[self.name] = self.func(instance) 67 | File "/usr/local/lib/python3.4/dist-packages/django/core/urlresolvers.py", line 410, in urlconf_module 68 | return import_module(self.urlconf_name) 69 | File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module 70 | return _bootstrap._gcd_import(name[level:], package, level) 71 | File "", line 2254, in _gcd_import 72 | File "", line 2237, in _find_and_load 73 | File "", line 2226, in _find_and_load_unlocked 74 | File "", line 1200, in _load_unlocked 75 | File "", line 1129, in _exec 76 | File "", line 1471, in exec_module 77 | File "", line 321, in _call_with_frames_removed 78 | File "/home/aditya/Desktop/ecommerce-2-master/src/ecommerce2/urls.py", line 21, in 79 | url(r'^accounts/', include('registration.backends.default.urls')), 80 | File "/usr/local/lib/python3.4/dist-packages/django/conf/urls/__init__.py", line 52, in include 81 | urlconf_module = import_module(urlconf_module) 82 | File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module 83 | return _bootstrap._gcd_import(name[level:], package, level) 84 | File "", line 2254, in _gcd_import 85 | File "", line 2237, in _find_and_load 86 | File "", line 2226, in _find_and_load_unlocked 87 | File "", line 1200, in _load_unlocked 88 | File "", line 1129, in _exec 89 | File "", line 1471, in exec_module 90 | File "", line 321, in _call_with_frames_removed 91 | File "/home/aditya/.local/lib/python3.4/site-packages/registration/backends/default/urls.py", line 26, in 92 | from registration.backends.default.views import ActivationView 93 | File "/home/aditya/.local/lib/python3.4/site-packages/registration/backends/default/views.py", line 2, in 94 | from django.contrib.sites.models import RequestSite 95 | ImportError: cannot import name 'RequestSite' 96 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/samples/chkspeed.c: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * _ _ ____ _ 3 | * Project ___| | | | _ \| | 4 | * / __| | | | |_) | | 5 | * | (__| |_| | _ <| |___ 6 | * \___|\___/|_| \_\_____| 7 | * 8 | * Copyright (C) 1998 - 2011, Daniel Stenberg, , et al. 9 | * 10 | * This software is licensed as described in the file COPYING, which 11 | * you should have received as part of this distribution. The terms 12 | * are also available at http://curl.haxx.se/docs/copyright.html. 13 | * 14 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 15 | * copies of the Software, and permit persons to whom the Software is 16 | * furnished to do so, under the terms of the COPYING file. 17 | * 18 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 19 | * KIND, either express or implied. 20 | * 21 | ***************************************************************************/ 22 | /* Example source code to show how the callback function can be used to 23 | * download data into a chunk of memory instead of storing it in a file. 24 | * After successful download we use curl_easy_getinfo() calls to get the 25 | * amount of downloaded bytes, the time used for the whole download, and 26 | * the average download speed. 27 | * On Linux you can create the download test files with: 28 | * dd if=/dev/urandom of=file_1M.bin bs=1M count=1 29 | * 30 | */ 31 | 32 | #include 33 | #include 34 | #include 35 | #include 36 | 37 | #include 38 | 39 | #define URL_BASE "http://speedtest.your.domain/" 40 | #define URL_1M URL_BASE "file_1M.bin" 41 | #define URL_2M URL_BASE "file_2M.bin" 42 | #define URL_5M URL_BASE "file_5M.bin" 43 | #define URL_10M URL_BASE "file_10M.bin" 44 | #define URL_20M URL_BASE "file_20M.bin" 45 | #define URL_50M URL_BASE "file_50M.bin" 46 | #define URL_100M URL_BASE "file_100M.bin" 47 | 48 | #define CHKSPEED_VERSION "1.0" 49 | 50 | static size_t WriteCallback(void *ptr, size_t size, size_t nmemb, void *data) 51 | { 52 | /* we are not interested in the downloaded bytes itself, 53 | so we only return the size we would have saved ... */ 54 | (void)ptr; /* unused */ 55 | (void)data; /* unused */ 56 | return (size_t)(size * nmemb); 57 | } 58 | 59 | int main(int argc, char *argv[]) 60 | { 61 | CURL *curl_handle; 62 | CURLcode res; 63 | int prtall = 0, prtsep = 0, prttime = 0; 64 | const char *url = URL_1M; 65 | char *appname = argv[0]; 66 | 67 | if (argc > 1) { 68 | /* parse input parameters */ 69 | for (argc--, argv++; *argv; argc--, argv++) { 70 | if (strncasecmp(*argv, "-", 1) == 0) { 71 | if (strncasecmp(*argv, "-H", 2) == 0) { 72 | fprintf(stderr, 73 | "\rUsage: %s [-m=1|2|5|10|20|50|100] [-t] [-x] [url]\n", 74 | appname); 75 | exit(1); 76 | } else if (strncasecmp(*argv, "-V", 2) == 0) { 77 | fprintf(stderr, "\r%s %s - %s\n", 78 | appname, CHKSPEED_VERSION, curl_version()); 79 | exit(1); 80 | } else if (strncasecmp(*argv, "-A", 2) == 0) { 81 | prtall = 1; 82 | } else if (strncasecmp(*argv, "-X", 2) == 0) { 83 | prtsep = 1; 84 | } else if (strncasecmp(*argv, "-T", 2) == 0) { 85 | prttime = 1; 86 | } else if (strncasecmp(*argv, "-M=", 3) == 0) { 87 | long m = strtol((*argv)+3, NULL, 10); 88 | switch(m) { 89 | case 1: url = URL_1M; 90 | break; 91 | case 2: url = URL_2M; 92 | break; 93 | case 5: url = URL_5M; 94 | break; 95 | case 10: url = URL_10M; 96 | break; 97 | case 20: url = URL_20M; 98 | break; 99 | case 50: url = URL_50M; 100 | break; 101 | case 100: url = URL_100M; 102 | break; 103 | default: fprintf(stderr, "\r%s: invalid parameter %s\n", 104 | appname, *argv + 3); 105 | exit(1); 106 | } 107 | } else { 108 | fprintf(stderr, "\r%s: invalid or unknown option %s\n", 109 | appname, *argv); 110 | exit(1); 111 | } 112 | } else { 113 | url = *argv; 114 | } 115 | } 116 | } 117 | 118 | /* print separator line */ 119 | if (prtsep) { 120 | printf("-------------------------------------------------\n"); 121 | } 122 | /* print localtime */ 123 | if (prttime) { 124 | time_t t = time(NULL); 125 | printf("Localtime: %s", ctime(&t)); 126 | } 127 | 128 | /* init libcurl */ 129 | curl_global_init(CURL_GLOBAL_ALL); 130 | 131 | /* init the curl session */ 132 | curl_handle = curl_easy_init(); 133 | 134 | /* specify URL to get */ 135 | curl_easy_setopt(curl_handle, CURLOPT_URL, url); 136 | 137 | /* send all data to this function */ 138 | curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteCallback); 139 | 140 | /* some servers don't like requests that are made without a user-agent 141 | field, so we provide one */ 142 | curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, 143 | "libcurl-speedchecker/" CHKSPEED_VERSION); 144 | 145 | /* get it! */ 146 | res = curl_easy_perform(curl_handle); 147 | 148 | if(CURLE_OK == res) { 149 | double val; 150 | 151 | /* check for bytes downloaded */ 152 | res = curl_easy_getinfo(curl_handle, CURLINFO_SIZE_DOWNLOAD, &val); 153 | if((CURLE_OK == res) && (val>0)) 154 | printf("Data downloaded: %0.0f bytes.\n", val); 155 | 156 | /* check for total download time */ 157 | res = curl_easy_getinfo(curl_handle, CURLINFO_TOTAL_TIME, &val); 158 | if((CURLE_OK == res) && (val>0)) 159 | printf("Total download time: %0.3f sec.\n", val); 160 | 161 | /* check for average download speed */ 162 | res = curl_easy_getinfo(curl_handle, CURLINFO_SPEED_DOWNLOAD, &val); 163 | if((CURLE_OK == res) && (val>0)) 164 | printf("Average download speed: %0.3f kbyte/sec.\n", val / 1024); 165 | 166 | if (prtall) { 167 | /* check for name resolution time */ 168 | res = curl_easy_getinfo(curl_handle, CURLINFO_NAMELOOKUP_TIME, &val); 169 | if((CURLE_OK == res) && (val>0)) 170 | printf("Name lookup time: %0.3f sec.\n", val); 171 | 172 | /* check for connect time */ 173 | res = curl_easy_getinfo(curl_handle, CURLINFO_CONNECT_TIME, &val); 174 | if((CURLE_OK == res) && (val>0)) 175 | printf("Connect time: %0.3f sec.\n", val); 176 | } 177 | 178 | } else { 179 | fprintf(stderr, "Error while fetching '%s' : %s\n", 180 | url, curl_easy_strerror(res)); 181 | } 182 | 183 | /* cleanup curl stuff */ 184 | curl_easy_cleanup(curl_handle); 185 | 186 | /* we're done with libcurl, so clean it up */ 187 | curl_global_cleanup(); 188 | 189 | return 0; 190 | } 191 | -------------------------------------------------------------------------------- /The-entity-nbsp-was-referenced-but-not-declared-RSS-feed/solution.txt: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | ]> 256 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/include/curl/curlbuild.h.in: -------------------------------------------------------------------------------- 1 | #ifndef __CURL_CURLBUILD_H 2 | #define __CURL_CURLBUILD_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at http://curl.haxx.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | ***************************************************************************/ 24 | 25 | /* ================================================================ */ 26 | /* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ 27 | /* ================================================================ */ 28 | 29 | /* 30 | * NOTE 1: 31 | * ------- 32 | * 33 | * Nothing in this file is intended to be modified or adjusted by the 34 | * curl library user nor by the curl library builder. 35 | * 36 | * If you think that something actually needs to be changed, adjusted 37 | * or fixed in this file, then, report it on the libcurl development 38 | * mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/ 39 | * 40 | * This header file shall only export symbols which are 'curl' or 'CURL' 41 | * prefixed, otherwise public name space would be polluted. 42 | * 43 | * NOTE 2: 44 | * ------- 45 | * 46 | * Right now you might be staring at file include/curl/curlbuild.h.in or 47 | * at file include/curl/curlbuild.h, this is due to the following reason: 48 | * 49 | * On systems capable of running the configure script, the configure process 50 | * will overwrite the distributed include/curl/curlbuild.h file with one that 51 | * is suitable and specific to the library being configured and built, which 52 | * is generated from the include/curl/curlbuild.h.in template file. 53 | * 54 | */ 55 | 56 | /* ================================================================ */ 57 | /* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ 58 | /* ================================================================ */ 59 | 60 | #ifdef CURL_SIZEOF_LONG 61 | #error "CURL_SIZEOF_LONG shall not be defined except in curlbuild.h" 62 | Error Compilation_aborted_CURL_SIZEOF_LONG_already_defined 63 | #endif 64 | 65 | #ifdef CURL_TYPEOF_CURL_SOCKLEN_T 66 | #error "CURL_TYPEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h" 67 | Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_already_defined 68 | #endif 69 | 70 | #ifdef CURL_SIZEOF_CURL_SOCKLEN_T 71 | #error "CURL_SIZEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h" 72 | Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_already_defined 73 | #endif 74 | 75 | #ifdef CURL_TYPEOF_CURL_OFF_T 76 | #error "CURL_TYPEOF_CURL_OFF_T shall not be defined except in curlbuild.h" 77 | Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_already_defined 78 | #endif 79 | 80 | #ifdef CURL_FORMAT_CURL_OFF_T 81 | #error "CURL_FORMAT_CURL_OFF_T shall not be defined except in curlbuild.h" 82 | Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_already_defined 83 | #endif 84 | 85 | #ifdef CURL_FORMAT_CURL_OFF_TU 86 | #error "CURL_FORMAT_CURL_OFF_TU shall not be defined except in curlbuild.h" 87 | Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_already_defined 88 | #endif 89 | 90 | #ifdef CURL_FORMAT_OFF_T 91 | #error "CURL_FORMAT_OFF_T shall not be defined except in curlbuild.h" 92 | Error Compilation_aborted_CURL_FORMAT_OFF_T_already_defined 93 | #endif 94 | 95 | #ifdef CURL_SIZEOF_CURL_OFF_T 96 | #error "CURL_SIZEOF_CURL_OFF_T shall not be defined except in curlbuild.h" 97 | Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_already_defined 98 | #endif 99 | 100 | #ifdef CURL_SUFFIX_CURL_OFF_T 101 | #error "CURL_SUFFIX_CURL_OFF_T shall not be defined except in curlbuild.h" 102 | Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_already_defined 103 | #endif 104 | 105 | #ifdef CURL_SUFFIX_CURL_OFF_TU 106 | #error "CURL_SUFFIX_CURL_OFF_TU shall not be defined except in curlbuild.h" 107 | Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_already_defined 108 | #endif 109 | 110 | /* ================================================================ */ 111 | /* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ 112 | /* ================================================================ */ 113 | 114 | /* Configure process defines this to 1 when it finds out that system */ 115 | /* header file ws2tcpip.h must be included by the external interface. */ 116 | #undef CURL_PULL_WS2TCPIP_H 117 | #ifdef CURL_PULL_WS2TCPIP_H 118 | # ifndef WIN32_LEAN_AND_MEAN 119 | # define WIN32_LEAN_AND_MEAN 120 | # endif 121 | # include 122 | # include 123 | # include 124 | #endif 125 | 126 | /* Configure process defines this to 1 when it finds out that system */ 127 | /* header file sys/types.h must be included by the external interface. */ 128 | #undef CURL_PULL_SYS_TYPES_H 129 | #ifdef CURL_PULL_SYS_TYPES_H 130 | # include 131 | #endif 132 | 133 | /* Configure process defines this to 1 when it finds out that system */ 134 | /* header file stdint.h must be included by the external interface. */ 135 | #undef CURL_PULL_STDINT_H 136 | #ifdef CURL_PULL_STDINT_H 137 | # include 138 | #endif 139 | 140 | /* Configure process defines this to 1 when it finds out that system */ 141 | /* header file inttypes.h must be included by the external interface. */ 142 | #undef CURL_PULL_INTTYPES_H 143 | #ifdef CURL_PULL_INTTYPES_H 144 | # include 145 | #endif 146 | 147 | /* Configure process defines this to 1 when it finds out that system */ 148 | /* header file sys/socket.h must be included by the external interface. */ 149 | #undef CURL_PULL_SYS_SOCKET_H 150 | #ifdef CURL_PULL_SYS_SOCKET_H 151 | # include 152 | #endif 153 | 154 | /* Configure process defines this to 1 when it finds out that system */ 155 | /* header file sys/poll.h must be included by the external interface. */ 156 | #undef CURL_PULL_SYS_POLL_H 157 | #ifdef CURL_PULL_SYS_POLL_H 158 | # include 159 | #endif 160 | 161 | /* The size of `long', as computed by sizeof. */ 162 | #undef CURL_SIZEOF_LONG 163 | 164 | /* Integral data type used for curl_socklen_t. */ 165 | #undef CURL_TYPEOF_CURL_SOCKLEN_T 166 | 167 | /* The size of `curl_socklen_t', as computed by sizeof. */ 168 | #undef CURL_SIZEOF_CURL_SOCKLEN_T 169 | 170 | /* Data type definition of curl_socklen_t. */ 171 | typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t; 172 | 173 | /* Signed integral data type used for curl_off_t. */ 174 | #undef CURL_TYPEOF_CURL_OFF_T 175 | 176 | /* Data type definition of curl_off_t. */ 177 | typedef CURL_TYPEOF_CURL_OFF_T curl_off_t; 178 | 179 | /* curl_off_t formatting string directive without "%" conversion specifier. */ 180 | #undef CURL_FORMAT_CURL_OFF_T 181 | 182 | /* unsigned curl_off_t formatting string without "%" conversion specifier. */ 183 | #undef CURL_FORMAT_CURL_OFF_TU 184 | 185 | /* curl_off_t formatting string directive with "%" conversion specifier. */ 186 | #undef CURL_FORMAT_OFF_T 187 | 188 | /* The size of `curl_off_t', as computed by sizeof. */ 189 | #undef CURL_SIZEOF_CURL_OFF_T 190 | 191 | /* curl_off_t constant suffix. */ 192 | #undef CURL_SUFFIX_CURL_OFF_T 193 | 194 | /* unsigned curl_off_t constant suffix. */ 195 | #undef CURL_SUFFIX_CURL_OFF_TU 196 | 197 | #endif /* __CURL_CURLBUILD_H */ 198 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/samples/Makefile.m32: -------------------------------------------------------------------------------- 1 | ######################################################################### 2 | ## Makefile for building chkspeed.exe with MingW32 (GCC-3.2 or later) 3 | ## and optionally OpenSSL (0.9.8), libssh2 (1.4.3), zlib (1.2.8) 4 | ## 5 | ## Usage: mingw32-make -f Makefile.m32 CFG=-feature1[-feature2][-feature3][...] 6 | ## Example: mingw32-make -f Makefile.m32 CFG=-zlib-ssl-spi-winidn 7 | ## 8 | ## Hint: you can also set environment vars to control the build, f.e.: 9 | ## set ZLIB_PATH=c:/zlib-1.2.8 10 | ## set ZLIB=1 11 | ## 12 | ## Comments to: /dev/nul 13 | ######################################################################### 14 | 15 | # Edit the path below to point to the base of your Zlib sources. 16 | ifndef ZLIB_PATH 17 | ZLIB_PATH = ../../zlib-1.2.8 18 | endif 19 | # Edit the path below to point to the base of your OpenSSL package. 20 | ifndef OPENSSL_PATH 21 | OPENSSL_PATH = ../../openssl-1.0.0o 22 | endif 23 | # Edit the path below to point to the base of your LibSSH2 package. 24 | ifndef LIBSSH2_PATH 25 | LIBSSH2_PATH = ../../libssh2-1.4.3 26 | endif 27 | # Edit the path below to point to the base of your librtmp package. 28 | ifndef LIBRTMP_PATH 29 | LIBRTMP_PATH = ../../librtmp-2.3 30 | endif 31 | # Edit the path below to point to the base of your libidn package. 32 | ifndef LIBIDN_PATH 33 | LIBIDN_PATH = ../../libidn-1.18 34 | endif 35 | # Edit the path below to point to the base of your MS IDN package. 36 | # Microsoft Internationalized Domain Names (IDN) Mitigation APIs 1.1 37 | # http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ad6158d7-ddba-416a-9109-07607425a815 38 | ifndef WINIDN_PATH 39 | WINIDN_PATH = ../../Microsoft IDN Mitigation APIs 40 | endif 41 | # Edit the path below to point to the base of your Novell LDAP NDK. 42 | ifndef LDAP_SDK 43 | LDAP_SDK = c:/novell/ndk/cldapsdk/win32 44 | endif 45 | 46 | ifndef PROOT 47 | PROOT = .. 48 | endif 49 | 50 | # Edit the path below to point to the base of your c-ares package. 51 | ifndef LIBCARES_PATH 52 | LIBCARES_PATH = $(PROOT)/ares 53 | endif 54 | 55 | # Edit the var below to set to your architecture or set environment var. 56 | ifndef ARCH 57 | ARCH = w32 58 | endif 59 | 60 | CC = $(CROSSPREFIX)gcc 61 | CFLAGS = -g -O2 -Wall 62 | CFLAGS += -fno-strict-aliasing 63 | ifeq ($(ARCH),w64) 64 | CFLAGS += -D_AMD64_ 65 | LIBSFX = 64 66 | endif 67 | # comment LDFLAGS below to keep debug info 68 | LDFLAGS = -s 69 | RC = $(CROSSPREFIX)windres 70 | RCFLAGS = --include-dir=$(PROOT)/include -O COFF -i 71 | 72 | # We may need these someday 73 | # PERL = perl 74 | # NROFF = nroff 75 | 76 | # Platform-dependent helper tool macros 77 | ifeq ($(findstring /sh,$(SHELL)),/sh) 78 | DEL = rm -f $1 79 | RMDIR = rm -fr $1 80 | MKDIR = mkdir -p $1 81 | COPY = -cp -afv $1 $2 82 | #COPYR = -cp -afr $1/* $2 83 | COPYR = -rsync -aC $1/* $2 84 | TOUCH = touch $1 85 | CAT = cat 86 | ECHONL = echo "" 87 | DL = ' 88 | else 89 | ifeq "$(OS)" "Windows_NT" 90 | DEL = -del 2>NUL /q /f $(subst /,\,$1) 91 | RMDIR = -rd 2>NUL /q /s $(subst /,\,$1) 92 | else 93 | DEL = -del 2>NUL $(subst /,\,$1) 94 | RMDIR = -deltree 2>NUL /y $(subst /,\,$1) 95 | endif 96 | MKDIR = -md 2>NUL $(subst /,\,$1) 97 | COPY = -copy 2>NUL /y $(subst /,\,$1) $(subst /,\,$2) 98 | COPYR = -xcopy 2>NUL /q /y /e $(subst /,\,$1) $(subst /,\,$2) 99 | TOUCH = copy 2>&1>NUL /b $(subst /,\,$1) +,, 100 | CAT = type 101 | ECHONL = $(ComSpec) /c echo. 102 | endif 103 | 104 | ######################################################## 105 | ## Nothing more to do below this line! 106 | 107 | ifeq ($(findstring -dyn,$(CFG)),-dyn) 108 | DYN = 1 109 | endif 110 | ifeq ($(findstring -ares,$(CFG)),-ares) 111 | ARES = 1 112 | endif 113 | ifeq ($(findstring -rtmp,$(CFG)),-rtmp) 114 | RTMP = 1 115 | SSL = 1 116 | ZLIB = 1 117 | endif 118 | ifeq ($(findstring -ssh2,$(CFG)),-ssh2) 119 | SSH2 = 1 120 | SSL = 1 121 | ZLIB = 1 122 | endif 123 | ifeq ($(findstring -ssl,$(CFG)),-ssl) 124 | SSL = 1 125 | endif 126 | ifeq ($(findstring -zlib,$(CFG)),-zlib) 127 | ZLIB = 1 128 | endif 129 | ifeq ($(findstring -idn,$(CFG)),-idn) 130 | IDN = 1 131 | endif 132 | ifeq ($(findstring -winidn,$(CFG)),-winidn) 133 | WINIDN = 1 134 | endif 135 | ifeq ($(findstring -sspi,$(CFG)),-sspi) 136 | SSPI = 1 137 | endif 138 | ifeq ($(findstring -spnego,$(CFG)),-spnego) 139 | SPNEGO = 1 140 | endif 141 | ifeq ($(findstring -ldaps,$(CFG)),-ldaps) 142 | LDAPS = 1 143 | endif 144 | ifeq ($(findstring -ipv6,$(CFG)),-ipv6) 145 | IPV6 = 1 146 | endif 147 | 148 | INCLUDES = -I. -I$(PROOT) -I$(PROOT)/include 149 | 150 | ifdef DYN 151 | curl_DEPENDENCIES = $(PROOT)/lib$(LIBSFX)/libcurldll.a $(PROOT)/bin/libcurl.dll 152 | curl_LDADD = -L"$(PROOT)/lib$(LIBSFX)" -lcurldll 153 | else 154 | curl_DEPENDENCIES = $(PROOT)/lib$(LIBSFX)/libcurl.a 155 | curl_LDADD = -L"$(PROOT)/lib$(LIBSFX)" -lcurl 156 | CFLAGS += -DCURL_STATICLIB 157 | LDFLAGS += -static 158 | endif 159 | ifdef ARES 160 | ifndef DYN 161 | curl_DEPENDENCIES += $(ARES_LIB)/libcares.a 162 | endif 163 | CFLAGS += -DUSE_ARES 164 | ifndef DEVELPACKAGE 165 | curl_LDADD += -L$(ARES_LIB) 166 | endif 167 | curl_LDADD += -lcares 168 | endif 169 | ifdef RTMP 170 | CFLAGS += -DUSE_LIBRTMP 171 | ifndef DEVELPACKAGE 172 | INCLUDES += -I"$(LIBRTMP_PATH)" 173 | curl_LDADD += -L"$(LIBRTMP_PATH)/librtmp" 174 | endif 175 | curl_LDADD += -lrtmp -lwinmm 176 | endif 177 | ifdef SSH2 178 | CFLAGS += -DUSE_LIBSSH2 -DHAVE_LIBSSH2_H 179 | ifndef DEVELPACKAGE 180 | curl_LDADD += -L$(LIBSSH2_PATH)/win32 181 | endif 182 | curl_LDADD += -lssh2 183 | endif 184 | ifdef SSL 185 | OPENSSL_LIBS = -lssl -lcrypto 186 | ifndef OPENSSL_LIBPATH 187 | ifeq "$(wildcard $(OPENSSL_PATH)/out)" "$(OPENSSL_PATH)/out" 188 | OPENSSL_LIBPATH = $(OPENSSL_PATH)/out 189 | ifdef DYN 190 | OPENSSL_LIBS = -lssl32 -leay32 191 | endif 192 | endif 193 | ifeq "$(wildcard $(OPENSSL_PATH)/lib)" "$(OPENSSL_PATH)/lib" 194 | OPENSSL_LIBPATH = $(OPENSSL_PATH)/lib 195 | endif 196 | endif 197 | ifndef DYN 198 | OPENSSL_LIBS += -lgdi32 -lcrypt32 199 | endif 200 | CFLAGS += -DUSE_SSLEAY 201 | ifndef DEVELPACKAGE 202 | curl_LDADD += -L"$(OPENSSL_LIBPATH)" 203 | endif 204 | curl_LDADD += $(OPENSSL_LIBS) 205 | endif 206 | ifdef ZLIB 207 | CFLAGS += -DHAVE_LIBZ -DHAVE_ZLIB_H 208 | ifndef DEVELPACKAGE 209 | INCLUDES += -I"$(ZLIB_PATH)" 210 | curl_LDADD += -L$(ZLIB_PATH) 211 | endif 212 | curl_LDADD += -lz 213 | endif 214 | ifdef IDN 215 | CFLAGS += -DUSE_LIBIDN 216 | ifndef DEVELPACKAGE 217 | INCLUDES += -I"$(LIBIDN_PATH)/include" 218 | curl_LDADD += -L$(LIBIDN_PATH)/lib 219 | endif 220 | curl_LDADD += -lidn 221 | endif 222 | ifdef WINIDN 223 | CFLAGS += -DUSE_WIN32_IDN 224 | CFLAGS += -DWANT_IDN_PROTOTYPES 225 | ifndef DEVELPACKAGE 226 | curl_LDADD += -L"$(WINIDN_PATH)" 227 | endif 228 | curl_LDADD += -lnormaliz 229 | endif 230 | ifdef SSPI 231 | CFLAGS += -DUSE_WINDOWS_SSPI 232 | endif 233 | ifdef IPV6 234 | CFLAGS += -DENABLE_IPV6 235 | endif 236 | ifdef LDAPS 237 | CFLAGS += -DHAVE_LDAP_SSL 238 | endif 239 | ifdef USE_LDAP_NOVELL 240 | CFLAGS += -DCURL_HAS_NOVELL_LDAPSDK 241 | ifndef DEVELPACKAGE 242 | curl_LDADD += -L"$(LDAP_SDK)/lib/mscvc" 243 | endif 244 | curl_LDADD += -lldapsdk -lldapssl -lldapx 245 | endif 246 | ifdef USE_LDAP_OPENLDAP 247 | CFLAGS += -DCURL_HAS_OPENLDAP_LDAPSDK 248 | ifndef DEVELPACKAGE 249 | curl_LDADD += -L"$(LDAP_SDK)/lib" 250 | endif 251 | curl_LDADD += -lldap -llber 252 | endif 253 | ifndef USE_LDAP_NOVELL 254 | ifndef USE_LDAP_OPENLDAP 255 | curl_LDADD += -lwldap32 256 | endif 257 | endif 258 | curl_LDADD += -lws2_32 259 | 260 | check_PROGRAMS := $(patsubst %.c,%.exe,$(wildcard *.c)) 261 | check_OBJECTS := $(check_PROGRAMS:.exe=.o) 262 | 263 | #RESOURCE = $(curl_PROGRAM:.exe=.res) 264 | 265 | .SUFFIXES: .rc .res 266 | .PRECIOUS: %.o 267 | 268 | all: $(check_PROGRAMS) 269 | 270 | %.exe: %.o $(curl_DEPENDENCIES) 271 | $(CC) $(LDFLAGS) -o $@ $< $(curl_LDADD) 272 | 273 | .c.o: 274 | $(CC) $(INCLUDES) $(CFLAGS) -c $< 275 | 276 | .rc.res: 277 | $(RC) $(RCFLAGS) $< -o $@ 278 | 279 | clean: 280 | @$(call DEL, $(check_OBJECTS) $(RESOURCE)) 281 | 282 | distclean vclean: clean 283 | @$(call DEL, $(check_PROGRAMS)) 284 | 285 | 286 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/include/curl/curlbuild.h.cmake: -------------------------------------------------------------------------------- 1 | #ifndef __CURL_CURLBUILD_H 2 | #define __CURL_CURLBUILD_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) 1998 - 2008, Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at http://curl.haxx.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | ***************************************************************************/ 24 | 25 | /* ================================================================ */ 26 | /* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ 27 | /* ================================================================ */ 28 | 29 | /* 30 | * NOTE 1: 31 | * ------- 32 | * 33 | * Nothing in this file is intended to be modified or adjusted by the 34 | * curl library user nor by the curl library builder. 35 | * 36 | * If you think that something actually needs to be changed, adjusted 37 | * or fixed in this file, then, report it on the libcurl development 38 | * mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/ 39 | * 40 | * This header file shall only export symbols which are 'curl' or 'CURL' 41 | * prefixed, otherwise public name space would be polluted. 42 | * 43 | * NOTE 2: 44 | * ------- 45 | * 46 | * Right now you might be staring at file include/curl/curlbuild.h.in or 47 | * at file include/curl/curlbuild.h, this is due to the following reason: 48 | * 49 | * On systems capable of running the configure script, the configure process 50 | * will overwrite the distributed include/curl/curlbuild.h file with one that 51 | * is suitable and specific to the library being configured and built, which 52 | * is generated from the include/curl/curlbuild.h.in template file. 53 | * 54 | */ 55 | 56 | /* ================================================================ */ 57 | /* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ 58 | /* ================================================================ */ 59 | 60 | #ifdef CURL_SIZEOF_LONG 61 | #error "CURL_SIZEOF_LONG shall not be defined except in curlbuild.h" 62 | Error Compilation_aborted_CURL_SIZEOF_LONG_already_defined 63 | #endif 64 | 65 | #ifdef CURL_TYPEOF_CURL_SOCKLEN_T 66 | #error "CURL_TYPEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h" 67 | Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_already_defined 68 | #endif 69 | 70 | #ifdef CURL_SIZEOF_CURL_SOCKLEN_T 71 | #error "CURL_SIZEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h" 72 | Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_already_defined 73 | #endif 74 | 75 | #ifdef CURL_TYPEOF_CURL_OFF_T 76 | #error "CURL_TYPEOF_CURL_OFF_T shall not be defined except in curlbuild.h" 77 | Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_already_defined 78 | #endif 79 | 80 | #ifdef CURL_FORMAT_CURL_OFF_T 81 | #error "CURL_FORMAT_CURL_OFF_T shall not be defined except in curlbuild.h" 82 | Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_already_defined 83 | #endif 84 | 85 | #ifdef CURL_FORMAT_CURL_OFF_TU 86 | #error "CURL_FORMAT_CURL_OFF_TU shall not be defined except in curlbuild.h" 87 | Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_already_defined 88 | #endif 89 | 90 | #ifdef CURL_FORMAT_OFF_T 91 | #error "CURL_FORMAT_OFF_T shall not be defined except in curlbuild.h" 92 | Error Compilation_aborted_CURL_FORMAT_OFF_T_already_defined 93 | #endif 94 | 95 | #ifdef CURL_SIZEOF_CURL_OFF_T 96 | #error "CURL_SIZEOF_CURL_OFF_T shall not be defined except in curlbuild.h" 97 | Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_already_defined 98 | #endif 99 | 100 | #ifdef CURL_SUFFIX_CURL_OFF_T 101 | #error "CURL_SUFFIX_CURL_OFF_T shall not be defined except in curlbuild.h" 102 | Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_already_defined 103 | #endif 104 | 105 | #ifdef CURL_SUFFIX_CURL_OFF_TU 106 | #error "CURL_SUFFIX_CURL_OFF_TU shall not be defined except in curlbuild.h" 107 | Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_already_defined 108 | #endif 109 | 110 | /* ================================================================ */ 111 | /* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ 112 | /* ================================================================ */ 113 | 114 | /* Configure process defines this to 1 when it finds out that system */ 115 | /* header file ws2tcpip.h must be included by the external interface. */ 116 | #cmakedefine CURL_PULL_WS2TCPIP_H 117 | #ifdef CURL_PULL_WS2TCPIP_H 118 | # ifndef WIN32_LEAN_AND_MEAN 119 | # define WIN32_LEAN_AND_MEAN 120 | # endif 121 | # include 122 | # include 123 | # include 124 | #endif 125 | 126 | /* Configure process defines this to 1 when it finds out that system */ 127 | /* header file sys/types.h must be included by the external interface. */ 128 | #cmakedefine CURL_PULL_SYS_TYPES_H 129 | #ifdef CURL_PULL_SYS_TYPES_H 130 | # include 131 | #endif 132 | 133 | /* Configure process defines this to 1 when it finds out that system */ 134 | /* header file stdint.h must be included by the external interface. */ 135 | #cmakedefine CURL_PULL_STDINT_H 136 | #ifdef CURL_PULL_STDINT_H 137 | # include 138 | #endif 139 | 140 | /* Configure process defines this to 1 when it finds out that system */ 141 | /* header file inttypes.h must be included by the external interface. */ 142 | #cmakedefine CURL_PULL_INTTYPES_H 143 | #ifdef CURL_PULL_INTTYPES_H 144 | # include 145 | #endif 146 | 147 | /* Configure process defines this to 1 when it finds out that system */ 148 | /* header file sys/socket.h must be included by the external interface. */ 149 | #cmakedefine CURL_PULL_SYS_SOCKET_H 150 | #ifdef CURL_PULL_SYS_SOCKET_H 151 | # include 152 | #endif 153 | 154 | /* Configure process defines this to 1 when it finds out that system */ 155 | /* header file sys/poll.h must be included by the external interface. */ 156 | #cmakedefine CURL_PULL_SYS_POLL_H 157 | #ifdef CURL_PULL_SYS_POLL_H 158 | # include 159 | #endif 160 | 161 | /* The size of `long', as computed by sizeof. */ 162 | #define CURL_SIZEOF_LONG ${CURL_SIZEOF_LONG} 163 | 164 | /* Integral data type used for curl_socklen_t. */ 165 | #define CURL_TYPEOF_CURL_SOCKLEN_T ${CURL_TYPEOF_CURL_SOCKLEN_T} 166 | 167 | /* The size of `curl_socklen_t', as computed by sizeof. */ 168 | #define CURL_SIZEOF_CURL_SOCKLEN_T ${CURL_SIZEOF_CURL_SOCKLEN_T} 169 | 170 | /* Data type definition of curl_socklen_t. */ 171 | typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t; 172 | 173 | /* Signed integral data type used for curl_off_t. */ 174 | #define CURL_TYPEOF_CURL_OFF_T ${CURL_TYPEOF_CURL_OFF_T} 175 | 176 | /* Data type definition of curl_off_t. */ 177 | typedef CURL_TYPEOF_CURL_OFF_T curl_off_t; 178 | 179 | /* curl_off_t formatting string directive without "%" conversion specifier. */ 180 | #define CURL_FORMAT_CURL_OFF_T "${CURL_FORMAT_CURL_OFF_T}" 181 | 182 | /* unsigned curl_off_t formatting string without "%" conversion specifier. */ 183 | #define CURL_FORMAT_CURL_OFF_TU "${CURL_FORMAT_CURL_OFF_TU}" 184 | 185 | /* curl_off_t formatting string directive with "%" conversion specifier. */ 186 | #define CURL_FORMAT_OFF_T "${CURL_FORMAT_OFF_T}" 187 | 188 | /* The size of `curl_off_t', as computed by sizeof. */ 189 | #define CURL_SIZEOF_CURL_OFF_T ${CURL_SIZEOF_CURL_OFF_T} 190 | 191 | /* curl_off_t constant suffix. */ 192 | #define CURL_SUFFIX_CURL_OFF_T ${CURL_SUFFIX_CURL_OFF_T} 193 | 194 | /* unsigned curl_off_t constant suffix. */ 195 | #define CURL_SUFFIX_CURL_OFF_TU ${CURL_SUFFIX_CURL_OFF_TU} 196 | 197 | #endif /* __CURL_CURLBUILD_H */ 198 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/include/curl/curlrules.h: -------------------------------------------------------------------------------- 1 | #ifndef __CURL_CURLRULES_H 2 | #define __CURL_CURLRULES_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at http://curl.haxx.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | ***************************************************************************/ 24 | 25 | /* ================================================================ */ 26 | /* COMPILE TIME SANITY CHECKS */ 27 | /* ================================================================ */ 28 | 29 | /* 30 | * NOTE 1: 31 | * ------- 32 | * 33 | * All checks done in this file are intentionally placed in a public 34 | * header file which is pulled by curl/curl.h when an application is 35 | * being built using an already built libcurl library. Additionally 36 | * this file is also included and used when building the library. 37 | * 38 | * If compilation fails on this file it is certainly sure that the 39 | * problem is elsewhere. It could be a problem in the curlbuild.h 40 | * header file, or simply that you are using different compilation 41 | * settings than those used to build the library. 42 | * 43 | * Nothing in this file is intended to be modified or adjusted by the 44 | * curl library user nor by the curl library builder. 45 | * 46 | * Do not deactivate any check, these are done to make sure that the 47 | * library is properly built and used. 48 | * 49 | * You can find further help on the libcurl development mailing list: 50 | * http://cool.haxx.se/mailman/listinfo/curl-library/ 51 | * 52 | * NOTE 2 53 | * ------ 54 | * 55 | * Some of the following compile time checks are based on the fact 56 | * that the dimension of a constant array can not be a negative one. 57 | * In this way if the compile time verification fails, the compilation 58 | * will fail issuing an error. The error description wording is compiler 59 | * dependent but it will be quite similar to one of the following: 60 | * 61 | * "negative subscript or subscript is too large" 62 | * "array must have at least one element" 63 | * "-1 is an illegal array size" 64 | * "size of array is negative" 65 | * 66 | * If you are building an application which tries to use an already 67 | * built libcurl library and you are getting this kind of errors on 68 | * this file, it is a clear indication that there is a mismatch between 69 | * how the library was built and how you are trying to use it for your 70 | * application. Your already compiled or binary library provider is the 71 | * only one who can give you the details you need to properly use it. 72 | */ 73 | 74 | /* 75 | * Verify that some macros are actually defined. 76 | */ 77 | 78 | #ifndef CURL_SIZEOF_LONG 79 | # error "CURL_SIZEOF_LONG definition is missing!" 80 | Error Compilation_aborted_CURL_SIZEOF_LONG_is_missing 81 | #endif 82 | 83 | #ifndef CURL_TYPEOF_CURL_SOCKLEN_T 84 | # error "CURL_TYPEOF_CURL_SOCKLEN_T definition is missing!" 85 | Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_is_missing 86 | #endif 87 | 88 | #ifndef CURL_SIZEOF_CURL_SOCKLEN_T 89 | # error "CURL_SIZEOF_CURL_SOCKLEN_T definition is missing!" 90 | Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_is_missing 91 | #endif 92 | 93 | #ifndef CURL_TYPEOF_CURL_OFF_T 94 | # error "CURL_TYPEOF_CURL_OFF_T definition is missing!" 95 | Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_is_missing 96 | #endif 97 | 98 | #ifndef CURL_FORMAT_CURL_OFF_T 99 | # error "CURL_FORMAT_CURL_OFF_T definition is missing!" 100 | Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_is_missing 101 | #endif 102 | 103 | #ifndef CURL_FORMAT_CURL_OFF_TU 104 | # error "CURL_FORMAT_CURL_OFF_TU definition is missing!" 105 | Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_is_missing 106 | #endif 107 | 108 | #ifndef CURL_FORMAT_OFF_T 109 | # error "CURL_FORMAT_OFF_T definition is missing!" 110 | Error Compilation_aborted_CURL_FORMAT_OFF_T_is_missing 111 | #endif 112 | 113 | #ifndef CURL_SIZEOF_CURL_OFF_T 114 | # error "CURL_SIZEOF_CURL_OFF_T definition is missing!" 115 | Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_is_missing 116 | #endif 117 | 118 | #ifndef CURL_SUFFIX_CURL_OFF_T 119 | # error "CURL_SUFFIX_CURL_OFF_T definition is missing!" 120 | Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_is_missing 121 | #endif 122 | 123 | #ifndef CURL_SUFFIX_CURL_OFF_TU 124 | # error "CURL_SUFFIX_CURL_OFF_TU definition is missing!" 125 | Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_is_missing 126 | #endif 127 | 128 | /* 129 | * Macros private to this header file. 130 | */ 131 | 132 | #define CurlchkszEQ(t, s) sizeof(t) == s ? 1 : -1 133 | 134 | #define CurlchkszGE(t1, t2) sizeof(t1) >= sizeof(t2) ? 1 : -1 135 | 136 | /* 137 | * Verify that the size previously defined and expected for long 138 | * is the same as the one reported by sizeof() at compile time. 139 | */ 140 | 141 | typedef char 142 | __curl_rule_01__ 143 | [CurlchkszEQ(long, CURL_SIZEOF_LONG)]; 144 | 145 | /* 146 | * Verify that the size previously defined and expected for 147 | * curl_off_t is actually the the same as the one reported 148 | * by sizeof() at compile time. 149 | */ 150 | 151 | typedef char 152 | __curl_rule_02__ 153 | [CurlchkszEQ(curl_off_t, CURL_SIZEOF_CURL_OFF_T)]; 154 | 155 | /* 156 | * Verify at compile time that the size of curl_off_t as reported 157 | * by sizeof() is greater or equal than the one reported for long 158 | * for the current compilation. 159 | */ 160 | 161 | typedef char 162 | __curl_rule_03__ 163 | [CurlchkszGE(curl_off_t, long)]; 164 | 165 | /* 166 | * Verify that the size previously defined and expected for 167 | * curl_socklen_t is actually the the same as the one reported 168 | * by sizeof() at compile time. 169 | */ 170 | 171 | typedef char 172 | __curl_rule_04__ 173 | [CurlchkszEQ(curl_socklen_t, CURL_SIZEOF_CURL_SOCKLEN_T)]; 174 | 175 | /* 176 | * Verify at compile time that the size of curl_socklen_t as reported 177 | * by sizeof() is greater or equal than the one reported for int for 178 | * the current compilation. 179 | */ 180 | 181 | typedef char 182 | __curl_rule_05__ 183 | [CurlchkszGE(curl_socklen_t, int)]; 184 | 185 | /* ================================================================ */ 186 | /* EXTERNALLY AND INTERNALLY VISIBLE DEFINITIONS */ 187 | /* ================================================================ */ 188 | 189 | /* 190 | * CURL_ISOCPP and CURL_OFF_T_C definitions are done here in order to allow 191 | * these to be visible and exported by the external libcurl interface API, 192 | * while also making them visible to the library internals, simply including 193 | * curl_setup.h, without actually needing to include curl.h internally. 194 | * If some day this section would grow big enough, all this should be moved 195 | * to its own header file. 196 | */ 197 | 198 | /* 199 | * Figure out if we can use the ## preprocessor operator, which is supported 200 | * by ISO/ANSI C and C++. Some compilers support it without setting __STDC__ 201 | * or __cplusplus so we need to carefully check for them too. 202 | */ 203 | 204 | #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) || \ 205 | defined(__HP_aCC) || defined(__BORLANDC__) || defined(__LCC__) || \ 206 | defined(__POCC__) || defined(__SALFORDC__) || defined(__HIGHC__) || \ 207 | defined(__ILEC400__) 208 | /* This compiler is believed to have an ISO compatible preprocessor */ 209 | #define CURL_ISOCPP 210 | #else 211 | /* This compiler is believed NOT to have an ISO compatible preprocessor */ 212 | #undef CURL_ISOCPP 213 | #endif 214 | 215 | /* 216 | * Macros for minimum-width signed and unsigned curl_off_t integer constants. 217 | */ 218 | 219 | #if defined(__BORLANDC__) && (__BORLANDC__ == 0x0551) 220 | # define __CURL_OFF_T_C_HLPR2(x) x 221 | # define __CURL_OFF_T_C_HLPR1(x) __CURL_OFF_T_C_HLPR2(x) 222 | # define CURL_OFF_T_C(Val) __CURL_OFF_T_C_HLPR1(Val) ## \ 223 | __CURL_OFF_T_C_HLPR1(CURL_SUFFIX_CURL_OFF_T) 224 | # define CURL_OFF_TU_C(Val) __CURL_OFF_T_C_HLPR1(Val) ## \ 225 | __CURL_OFF_T_C_HLPR1(CURL_SUFFIX_CURL_OFF_TU) 226 | #else 227 | # ifdef CURL_ISOCPP 228 | # define __CURL_OFF_T_C_HLPR2(Val,Suffix) Val ## Suffix 229 | # else 230 | # define __CURL_OFF_T_C_HLPR2(Val,Suffix) Val/**/Suffix 231 | # endif 232 | # define __CURL_OFF_T_C_HLPR1(Val,Suffix) __CURL_OFF_T_C_HLPR2(Val,Suffix) 233 | # define CURL_OFF_T_C(Val) __CURL_OFF_T_C_HLPR1(Val,CURL_SUFFIX_CURL_OFF_T) 234 | # define CURL_OFF_TU_C(Val) __CURL_OFF_T_C_HLPR1(Val,CURL_SUFFIX_CURL_OFF_TU) 235 | #endif 236 | 237 | /* 238 | * Get rid of macros private to this header file. 239 | */ 240 | 241 | #undef CurlchkszEQ 242 | #undef CurlchkszGE 243 | 244 | /* 245 | * Get rid of macros not intended to exist beyond this point. 246 | */ 247 | 248 | #undef CURL_PULL_WS2TCPIP_H 249 | #undef CURL_PULL_SYS_TYPES_H 250 | #undef CURL_PULL_SYS_SOCKET_H 251 | #undef CURL_PULL_SYS_POLL_H 252 | #undef CURL_PULL_STDINT_H 253 | #undef CURL_PULL_INTTYPES_H 254 | 255 | #undef CURL_TYPEOF_CURL_SOCKLEN_T 256 | #undef CURL_TYPEOF_CURL_OFF_T 257 | 258 | #ifdef CURL_NO_OLDIES 259 | #undef CURL_FORMAT_OFF_T /* not required since 7.19.0 - obsoleted in 7.20.0 */ 260 | #endif 261 | 262 | #endif /* __CURL_CURLRULES_H */ 263 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/RELEASE-NOTES: -------------------------------------------------------------------------------- 1 | Curl and libcurl 7.40.0 2 | 3 | Public curl releases: 143 4 | Command line options: 162 5 | curl_easy_setopt() options: 208 6 | Public functions in libcurl: 58 7 | Contributors: 1219 8 | 9 | This release includes the following changes: 10 | 11 | o http_digest: Added support for Windows SSPI based authentication 12 | o version info: Added Kerberos V5 to the supported features 13 | o Makefile: Added VC targets for WinIDN 14 | o config-win32: Introduce build targets for VS2012+ 15 | o SSL: Add PEM format support for public key pinning 16 | o smtp: Added support for the conversion of Unix newlines during mail send [8] 17 | o smb: Added initial support for the SMB/CIFS protocol 18 | o Added support for HTTP over unix domain sockets, via 19 | CURLOPT_UNIX_SOCKET_PATH and --unix-socket 20 | o sasl: Added support for GSS-API based Kerberos V5 authentication 21 | 22 | This release includes the following bugfixes: 23 | 24 | o darwinssl: fix session ID keys to only reuse identical sessions [18] 25 | o url-parsing: reject CRLFs within URLs [19] 26 | o OS400: Adjust specific support to last release 27 | o THANKS: Remove duplicate names 28 | o url.c: Fixed compilation warning 29 | o ssh: Fixed build on platforms where R_OK is not defined [1] 30 | o tool_strdup.c: include the tool strdup.h 31 | o build: Fixed Visual Studio project file generation of strdup.[c|h] 32 | o curl_easy_setopt.3: add CURLOPT_PINNEDPUBLICKEY [2] 33 | o curl.1: show zone index use in a URL 34 | o mk-ca-bundle.vbs: switch to new certdata.txt url 35 | o Makefile.dist: Added some missing SSPI configurations 36 | o build: Fixed no NTLM support for email when CURL_DISABLE_HTTP is defined 37 | o SSH: use the port number as well for known_known checks [3] 38 | o libssh2: detect features based on version, not configure checks 39 | o http2: Deal with HTTP/2 data inside Upgrade response header buffer [4] 40 | o multi: removed Curl_multi_set_easy_connection 41 | o symbol-scan.pl: do not require autotools 42 | o cmake: add ENABLE_THREADED_RESOLVER, rename ARES 43 | o cmake: build libhostname for test suite 44 | o cmake: fix HAVE_GETHOSTNAME definition 45 | o tests: fix libhostname visibility 46 | o tests: fix memleak in server/resolve.c 47 | o vtls.h: Fixed compiler warning when compiled without SSL 48 | o CMake: Restore order-dependent header checks 49 | o CMake: Restore order-dependent library checks 50 | o tool: Removed krb4 from the supported features 51 | o http2: Don't send Upgrade headers when we already do HTTP/2 52 | o examples: Don't call select() to sleep on windows [6] 53 | o win32: Updated some legacy APIs to use the newer extended versions [5] 54 | o easy.c: Fixed compilation warning when no verbose string support 55 | o connect.c: Fixed compilation warning when no verbose string support 56 | o build: in Makefile.m32 pass -F flag to windres 57 | o build: in Makefile.m32 add -m32 flag for 32bit 58 | o multi: when leaving for timeout, close accordingly 59 | o CMake: Simplify if() conditions on check result variables 60 | o build: in Makefile.m32 try to detect 64bit target 61 | o multi: inform about closed sockets before they are closed 62 | o multi-uv.c: close the file handle after download 63 | o examples: Wait recommended 100ms when no file descriptors are ready 64 | o ntlm: Split the SSPI based messaging code from the native messaging code 65 | o cmake: fix NTLM detection when CURL_DISABLE_HTTP defined 66 | o cmake: add Kerberos to the supported feature 67 | o CURLOPT_POSTFIELDS.3: mention the COPYPOSTFIELDS option 68 | o http: Disable pipelining for HTTP/2 and upgraded connections 69 | o ntlm: Fixed static'ness of local decode function 70 | o sasl: Reduced the need for two sets of NTLM messaging functions 71 | o multi.c: Fixed compilation warnings when no verbose string support 72 | o select.c: fix compilation for VxWorks [7] 73 | o multi-single.c: switch to use curl_multi_wait 74 | o curl_multi_wait.3: clarify numfds being used if not NULL 75 | o http.c: Fixed compilation warnings from features being disabled 76 | o NSS: enable the CAPATH option [9] 77 | o docs: Fix FAILONERROR typos 78 | o HTTP: don't abort connections with pending Negotiate authentication 79 | o HTTP: Free (proxy)userpwd for NTLM/Negotiate after sending a request 80 | o http_perhapsrewind: don't abort CONNECT requests 81 | o build: updated dependencies in makefiles 82 | o multi.c: Fixed compilation warning 83 | o ftp.c: Fixed compilation warnings when proxy support disabled 84 | o get_url_file_name: Fixed crash on OOM on debug build 85 | o cookie.c: Refactored cleanup code to simplify 86 | o OS400: enable NTLM authentication 87 | o ntlm: Use Windows Crypt API 88 | o http2: avoid logging neg "failure" if h2 was not requested 89 | o schannel_recv: return the correct code [10] 90 | o VC build: added sspi define for winssl-zlib builds 91 | o Curl_client_write(): chop long data, convert data only once 92 | o openldap: do not ignore Curl_client_write() return code 93 | o ldap: check Curl_client_write() return codes 94 | o parsedate.c: Fixed compilation warning 95 | o url.c: Fixed compilation warning when USE_NTLM is not defined 96 | o ntlm_wb_response: fix "statement not reached" [11] 97 | o telnet: fix "cast increases required alignment of target type" 98 | o smtp: Fixed dot stuffing when EOL characters at end of input buffers [12] 99 | o ntlm: Allow NTLM2Session messages when USE_NTRESPONSES manually defined 100 | o ntlm: Disable NTLM v2 when 64-bit integers are not supported 101 | o ntlm: Use short integer when decoding 16-bit values 102 | o ftp.c: Fixed compilation warning when no verbose string support 103 | o synctime.c: fixed timeserver URLs 104 | o mk-ca-bundle.pl: restored forced run again 105 | o ntlm: Fixed return code for bad type-2 Target Info 106 | o curl_schannel.c: Data may be available before connection shutdown 107 | o curl_schannel: Improvements to memory re-allocation strategy [13] 108 | o darwinssl: aprintf() to allocate the session key 109 | o tool_util.c: Use GetTickCount64 if it is available 110 | o lib: Fixed multiple code analysis warnings if SAL are available 111 | o tool_binmode.c: Explicitly ignore the return code of setmode 112 | o tool_urlglob.c: Silence warning C6293: Ill-defined for-loop 113 | o opts: Warn CURLOPT_TIMEOUT overrides when set after CURLOPT_TIMEOUT_MS 114 | o SFTP: work-around servers that return zero size on STAT [14] 115 | o connect: singleipconnect(): properly try other address families after failure 116 | o IPV6: address scope != scope id [15] 117 | o parseurlandfillconn(): fix improper non-numeric scope_id stripping [16] 118 | o secureserver.pl: make OpenSSL CApath and cert absolute path values 119 | o secureserver.pl: update Windows detection and fix path conversion 120 | o secureserver.pl: clean up formatting of config and fix verbose output 121 | o tests: Added Windows support using Cygwin-based OpenSSH 122 | o sockfilt.c: use non-Ex functions that are available before WinXP 123 | o VMS: Updates for 0740-0D1220 124 | o openssl: warn for SRP set if SSLv3 is used, not for TLS version 125 | o openssl: make it compile against openssl 1.1.0-DEV master branch 126 | o openssl: fix SSL/TLS versions in verbose output 127 | o curl: show size of inhibited data when using -v 128 | o build: Removed WIN32 definition from the Visual Studio projects 129 | o build: Removed WIN64 definition from the libcurl Visual Studio projects 130 | o vtls: Use bool for Curl_ssl_getsessionid() return type 131 | o sockfilt.c: Replace 100ms sleep with thread throttle 132 | o sockfilt.c: Reduce the number of individual memory allocations 133 | o vtls: Don't set cert info count until memory allocation is successful 134 | o nss: Don't ignore Curl_ssl_init_certinfo() OOM failure 135 | o nss: Don't ignore Curl_extract_certinfo() OOM failure 136 | o vtls: Fixed compilation warning and an ignored return code 137 | o sockfilt.c: Fixed compilation warnings 138 | o darwinssl: Fixed compilation warning 139 | o vtls: Use '(void) arg' for unused parameters 140 | o sepheaders.c: Fixed resource leak on failure 141 | o lib1900.c: Fixed cppcheck error [17] 142 | o ldap: Fixed Unicode connection details in Win32 initialsation / bind calls 143 | o ldap: Fixed Unicode DN, attributes and filter in Win32 search calls 144 | 145 | This release includes the following known bugs: 146 | 147 | o see docs/KNOWN_BUGS (http://curl.haxx.se/docs/knownbugs.html) 148 | 149 | This release would not have looked like this without help, code, reports and 150 | advice from friends like these: 151 | 152 | Andrey Labunets, Anthon Pang, Bill Nagel, Brad Harder, Brad King, Carlo Wood, 153 | Christian Hägele, Dan Fandrich, Daniel Stenberg, Dave Reisner, Frank Gevaerts, 154 | Gisle Vanem, Guenter Knauf, Jan Ehrhardt, Johan Lantz, John E. Malmberg, 155 | Jon Spencer, Julien Nabet, Kamil Dudka, Kyle J. McKay, Lucas Pardue, 156 | Marc Hesse, Marc Hoersken, Marc Renault, Michael Osipov, Nick Zitzmann, 157 | Nobuhiro Ban, Patrick Monnerat, Peter Wu, Ray Satiro, Sam Hurst, 158 | Stefan Bühler, Stefan Neis, Steve Holme, Tae Hyoung Ahn, Tatsuhiro Tsujikawa, 159 | Tomasz Kojm, Tor Arntsen, Waldek Kozba, Warren Menzer 160 | 161 | Thanks! (and sorry if I forgot to mention someone) 162 | 163 | References to bug reports and discussions on issues: 164 | 165 | [1] = http://curl.haxx.se/mail/lib-2014-11/0035.html 166 | [2] = http://curl.haxx.se/mail/lib-2014-11/0078.html 167 | [3] = http://curl.haxx.se/bug/view.cgi?id=1448 168 | [4] = https://github.com/tatsuhiro-t/nghttp2/issues/103 169 | [5] = http://sourceforge.net/p/curl/feature-requests/82/ 170 | [6] = http://curl.haxx.se/mail/lib-2014-11/0221.html 171 | [7] = http://curl.haxx.se/bug/view.cgi?id=1455 172 | [8] = http://curl.haxx.se/bug/view.cgi?id=1456 173 | [9] = http://curl.haxx.se/bug/view.cgi?id=1457 174 | [10] = http://curl.haxx.se/bug/view.cgi?id=1462 175 | [11] = http://curl.haxx.se/mail/lib-2014-12/0089.html 176 | [12] = http://curl.haxx.se/bug/view.cgi?id=1456 177 | [13] = http://curl.haxx.se/bug/view.cgi?id=1450 178 | [14] = http://curl.haxx.se/mail/lib-2014-12/0103.html 179 | [15] = http://curl.haxx.se/bug/view.cgi?id=1451 180 | [16] = http://curl.haxx.se/bug/view.cgi?id=1449 181 | [17] = https://github.com/bagder/curl/pull/133 182 | [18] = http://curl.haxx.se/docs/adv_20150108A.html 183 | [19] = http://curl.haxx.se/docs/adv_20150108B.html 184 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/mk-ca-bundle.vbs: -------------------------------------------------------------------------------- 1 | '*************************************************************************** 2 | '* _ _ ____ _ 3 | '* Project ___| | | | _ \| | 4 | '* / __| | | | |_) | | 5 | '* | (__| |_| | _ <| |___ 6 | '* \___|\___/|_| \_\_____| 7 | '* 8 | '* Copyright (C) 1998 - 2014, Daniel Stenberg, , et al. 9 | '* 10 | '* This software is licensed as described in the file COPYING, which 11 | '* you should have received as part of this distribution. The terms 12 | '* are also available at http://curl.haxx.se/docs/copyright.html. 13 | '* 14 | '* You may opt to use, copy, modify, merge, publish, distribute and/or sell 15 | '* copies of the Software, and permit persons to whom the Software is 16 | '* furnished to do so, under the terms of the COPYING file. 17 | '* 18 | '* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 19 | '* KIND, either express or implied. 20 | '* 21 | '*************************************************************************** 22 | '* Script to fetch certdata.txt from Mozilla.org site and create a 23 | '* ca-bundle.crt for use with OpenSSL / libcurl / libcurl bindings 24 | '* Requires WinHttp.WinHttpRequest.5.1 and ADODB.Stream which are part of 25 | '* W2000 SP3 or later, WXP SP1 or later, W2003 Server SP1 or later. 26 | '* Hacked by Guenter Knauf 27 | '*************************************************************************** 28 | Option Explicit 29 | Const myVersion = "0.3.9" 30 | 31 | Const myUrl = "http://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt" 32 | Const myOpenssl = "openssl.exe" 33 | 34 | Const myCdSavF = FALSE ' Flag: save downloaded data to file certdata.txt 35 | Const myCaBakF = TRUE ' Flag: backup existing ca-bundle certificate 36 | Const myAskLiF = TRUE ' Flag: display certdata.txt license agreement 37 | Const myAskTiF = TRUE ' Flag: ask to include certificate text info 38 | Const myWrapLe = 76 ' Default length of base64 output lines 39 | 40 | '******************* Nothing to configure below! ******************* 41 | Dim objShell, objNetwork, objFSO, objHttp 42 | Dim myBase, mySelf, myFh, myTmpFh, myCdData, myCdFile, myCaFile, myTmpName, myBakNum, myOptTxt, i 43 | Set objNetwork = WScript.CreateObject("WScript.Network") 44 | Set objShell = WScript.CreateObject("WScript.Shell") 45 | Set objFSO = WScript.CreateObject("Scripting.FileSystemObject") 46 | Set objHttp = WScript.CreateObject("WinHttp.WinHttpRequest.5.1") 47 | If objHttp Is Nothing Then Set objHttp = WScript.CreateObject("WinHttp.WinHttpRequest") 48 | myBase = Left(WScript.ScriptFullName, InstrRev(WScript.ScriptFullName, "\")) 49 | mySelf = Left(WScript.ScriptName, InstrRev(WScript.ScriptName, ".") - 1) & " " & myVersion 50 | myCdFile = Mid(myUrl, InstrRev(myUrl, "/") + 1) 51 | myCaFile = "ca-bundle.crt" 52 | myTmpName = InputBox("Enter output filename:", mySelf, myCaFile) 53 | If Not (myTmpName = "") Then 54 | myCaFile = myTmpName 55 | End If 56 | ' Lets ignore SSL invalid cert errors 57 | objHttp.Option(4) = 256 + 512 + 4096 + 8192 58 | objHttp.SetTimeouts 0, 5000, 10000, 10000 59 | objHttp.Open "GET", myUrl, FALSE 60 | objHttp.setRequestHeader "User-Agent", WScript.ScriptName & "/" & myVersion 61 | objHttp.Send "" 62 | If Not (objHttp.Status = 200) Then 63 | MsgBox("Failed to download '" & myCdFile & "': " & objHttp.Status & " - " & objHttp.StatusText), vbCritical, mySelf 64 | WScript.Quit 1 65 | End If 66 | ' Convert data from ResponseBody instead of using ResponseText because of UTF-8 67 | myCdData = ConvertBinaryData(objHttp.ResponseBody) 68 | Set objHttp = Nothing 69 | ' Write received data to file if enabled 70 | If (myCdSavF = TRUE) Then 71 | Set myFh = objFSO.OpenTextFile(myCdFile, 2, TRUE) 72 | myFh.Write myCdData 73 | myFh.Close 74 | End If 75 | ' Backup exitsing ca-bundle certificate file 76 | If (myCaBakF = TRUE) Then 77 | If objFSO.FileExists(myCaFile) Then 78 | Dim myBakFile, b 79 | b = 1 80 | myBakFile = myCaFile & ".~" & b & "~" 81 | While objFSO.FileExists(myBakFile) 82 | b = b + 1 83 | myBakFile = myCaFile & ".~" & b & "~" 84 | Wend 85 | Set myTmpFh = objFSO.GetFile(myCaFile) 86 | myTmpFh.Move myBakFile 87 | End If 88 | End If 89 | If (myAskTiF = TRUE) Then 90 | If (6 = objShell.PopUp("Do you want to include text information about each certificate?" & vbLf & _ 91 | "(requires OpenSSL commandline in current directory or in search path)",, _ 92 | mySelf, vbQuestion + vbYesNo + vbDefaultButton2)) Then 93 | myOptTxt = TRUE 94 | Else 95 | myOptTxt = FALSE 96 | End If 97 | End If 98 | ' Process the received data 99 | Dim myLines, myPattern, myInsideCert, myInsideLicense, myLicenseText, myNumCerts, myNumSkipped 100 | Dim myLabel, myOctets, myData, myPem, myRev, myUntrusted, j 101 | myNumSkipped = 0 102 | myNumCerts = 0 103 | myData = "" 104 | myLines = Split(myCdData, vbLf, -1) 105 | Set myFh = objFSO.OpenTextFile(myCaFile, 2, TRUE) 106 | myFh.Write "##" & vbLf 107 | myFh.Write "## " & myCaFile & " -- Bundle of CA Root Certificates" & vbLf 108 | myFh.Write "##" & vbLf 109 | myFh.Write "## Converted at: " & Now & vbLf 110 | myFh.Write "##" & vbLf 111 | myFh.Write "## This is a bundle of X.509 certificates of public Certificate Authorities" & vbLf 112 | myFh.Write "## (CA). These were automatically extracted from Mozilla's root certificates" & vbLf 113 | myFh.Write "## file (certdata.txt). This file can be found in the mozilla source tree:" & vbLf 114 | myFh.Write "## '/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt'" & vbLf 115 | myFh.Write "##" & vbLf 116 | myFh.Write "## It contains the certificates in PEM format and therefore" & vbLf 117 | myFh.Write "## can be directly used with curl / libcurl / php_curl, or with" & vbLf 118 | myFh.Write "## an Apache+mod_ssl webserver for SSL client authentication." & vbLf 119 | myFh.Write "## Just configure this file as the SSLCACertificateFile." & vbLf 120 | myFh.Write "##" & vbLf 121 | myFh.Write vbLf 122 | For i = 0 To UBound(myLines) 123 | If InstrRev(myLines(i), "CKA_LABEL ") Then 124 | myPattern = "^CKA_LABEL\s+[A-Z0-9]+\s+""(.+?)""" 125 | myLabel = RegExprFirst(myPattern, myLines(i)) 126 | End If 127 | If (myInsideCert = TRUE) Then 128 | If InstrRev(myLines(i), "END") Then 129 | myInsideCert = FALSE 130 | While (i < UBound(myLines)) And Not (myLines(i) = "#") 131 | i = i + 1 132 | If InstrRev(myLines(i), "CKA_TRUST_SERVER_AUTH CK_TRUST CKT_NSS_TRUSTED_DELEGATOR") Then 133 | myUntrusted = FALSE 134 | End If 135 | Wend 136 | If (myUntrusted = TRUE) Then 137 | myNumSkipped = myNumSkipped + 1 138 | Else 139 | myFh.Write myLabel & vbLf 140 | myFh.Write String(Len(myLabel), "=") & vbLf 141 | myPem = "-----BEGIN CERTIFICATE-----" & vbLf & _ 142 | Base64Encode(myData) & vbLf & _ 143 | "-----END CERTIFICATE-----" & vbLf 144 | If (myOptTxt = FALSE) Then 145 | myFh.Write myPem & vbLf 146 | Else 147 | Dim myCmd, myRval, myTmpIn, myTmpOut 148 | myTmpIn = objFSO.GetSpecialFolder(2).Path & "\" & objFSO.GetTempName 149 | myTmpOut = objFSO.GetSpecialFolder(2).Path & "\" & objFSO.GetTempName 150 | Set myTmpFh = objFSO.OpenTextFile(myTmpIn, 2, TRUE) 151 | myTmpFh.Write myPem 152 | myTmpFh.Close 153 | myCmd = myOpenssl & " x509 -md5 -fingerprint -text -inform PEM" & _ 154 | " -in " & myTmpIn & " -out " & myTmpOut 155 | myRval = objShell.Run (myCmd, 0, TRUE) 156 | objFSO.DeleteFile myTmpIn, TRUE 157 | If Not (myRval = 0) Then 158 | MsgBox("Failed to process PEM cert with OpenSSL commandline!"), vbCritical, mySelf 159 | objFSO.DeleteFile myTmpOut, TRUE 160 | WScript.Quit 3 161 | End If 162 | Set myTmpFh = objFSO.OpenTextFile(myTmpOut, 1) 163 | myFh.Write myTmpFh.ReadAll & vbLf 164 | myTmpFh.Close 165 | objFSO.DeleteFile myTmpOut, TRUE 166 | End If 167 | myNumCerts = myNumCerts + 1 168 | End If 169 | Else 170 | myOctets = Split(myLines(i), "\") 171 | For j = 1 To UBound(myOctets) 172 | myData = myData & Chr(CByte("&o" & myOctets(j))) 173 | Next 174 | End If 175 | End If 176 | If InstrRev(myLines(i), "CVS_ID ") Then 177 | myPattern = "^CVS_ID\s+""(.+?)""" 178 | myRev = RegExprFirst(myPattern, myLines(i)) 179 | myFh.Write "# " & myRev & vbLf & vbLf 180 | End If 181 | If InstrRev(myLines(i), "CKA_VALUE MULTILINE_OCTAL") Then 182 | myInsideCert = TRUE 183 | myUntrusted = TRUE 184 | myData = "" 185 | End If 186 | If InstrRev(myLines(i), "***** BEGIN LICENSE BLOCK *****") Then 187 | myInsideLicense = TRUE 188 | End If 189 | If (myInsideLicense = TRUE) Then 190 | myFh.Write myLines(i) & vbLf 191 | myLicenseText = myLicenseText & Mid(myLines(i), 2) & vbLf 192 | End If 193 | If InstrRev(myLines(i), "***** END LICENSE BLOCK *****") Then 194 | myInsideLicense = FALSE 195 | If (myAskLiF = TRUE) Then 196 | If Not (6 = objShell.PopUp(myLicenseText & vbLf & _ 197 | "Do you agree to the license shown above (required to proceed) ?",, _ 198 | mySelf, vbQuestion + vbYesNo + vbDefaultButton1)) Then 199 | myFh.Close 200 | objFSO.DeleteFile myCaFile, TRUE 201 | WScript.Quit 2 202 | End If 203 | End If 204 | End If 205 | Next 206 | myFh.Close 207 | objShell.PopUp "Done (" & myNumCerts & " CA certs processed, " & myNumSkipped & _ 208 | " untrusted skipped).", 20, mySelf, vbInformation 209 | WScript.Quit 0 210 | 211 | Function ConvertBinaryData(arrBytes) 212 | Dim objStream 213 | Set objStream = CreateObject("ADODB.Stream") 214 | objStream.Open 215 | objStream.Type = 1 216 | objStream.Write arrBytes 217 | objStream.Position = 0 218 | objStream.Type = 2 219 | objStream.Charset = "ascii" 220 | ConvertBinaryData = objStream.ReadText 221 | Set objStream = Nothing 222 | End Function 223 | 224 | Function RegExprFirst(SearchPattern, TheString) 225 | Dim objRegExp, Matches ' create variables. 226 | Set objRegExp = New RegExp ' create a regular expression. 227 | objRegExp.Pattern = SearchPattern ' sets the search pattern. 228 | objRegExp.IgnoreCase = TRUE ' set to ignores case. 229 | objRegExp.Global = TRUE ' set to gloabal search. 230 | Set Matches = objRegExp.Execute(TheString) ' do the search. 231 | If (Matches.Count) Then 232 | RegExprFirst = Matches(0).SubMatches(0) ' return first match. 233 | Else 234 | RegExprFirst = "" 235 | End If 236 | Set objRegExp = Nothing 237 | End Function 238 | 239 | Function Base64Encode(inData) 240 | Const Base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" 241 | Dim cOut, sOut, lWrap, I 242 | lWrap = Int(myWrapLe * 3 / 4) 243 | 244 | 'For each group of 3 bytes 245 | For I = 1 To Len(inData) Step 3 246 | Dim nGroup, pOut, sGroup 247 | 248 | 'Create one long from this 3 bytes. 249 | nGroup = &H10000 * Asc(Mid(inData, I, 1)) + _ 250 | &H100 * MyASC(Mid(inData, I + 1, 1)) + _ 251 | MyASC(Mid(inData, I + 2, 1)) 252 | 253 | 'Oct splits the long To 8 groups with 3 bits 254 | nGroup = Oct(nGroup) 255 | 256 | 'Add leading zeros 257 | nGroup = String(8 - Len(nGroup), "0") & nGroup 258 | 259 | 'Convert To base64 260 | pOut = Mid(Base64, CLng("&o" & Mid(nGroup, 1, 2)) + 1, 1) & _ 261 | Mid(Base64, CLng("&o" & Mid(nGroup, 3, 2)) + 1, 1) & _ 262 | Mid(Base64, CLng("&o" & Mid(nGroup, 5, 2)) + 1, 1) & _ 263 | Mid(Base64, CLng("&o" & Mid(nGroup, 7, 2)) + 1, 1) 264 | 265 | 'Add the part To OutPut string 266 | sOut = sOut + pOut 267 | 268 | 'Add a new line For Each myWrapLe chars In dest 269 | If (I < Len(inData) - 2) Then 270 | If (I + 2) Mod lWrap = 0 Then sOut = sOut & vbLf 271 | End If 272 | Next 273 | Select Case Len(inData) Mod 3 274 | Case 1: '8 bit final 275 | sOut = Left(sOut, Len(sOut) - 2) & "==" 276 | Case 2: '16 bit final 277 | sOut = Left(sOut, Len(sOut) - 1) & "=" 278 | End Select 279 | Base64Encode = sOut 280 | End Function 281 | 282 | Function MyASC(OneChar) 283 | If OneChar = "" Then MyASC = 0 Else MyASC = Asc(OneChar) 284 | End Function 285 | 286 | 287 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/include/curl/multi.h: -------------------------------------------------------------------------------- 1 | #ifndef __CURL_MULTI_H 2 | #define __CURL_MULTI_H 3 | /*************************************************************************** 4 | * _ _ ____ _ 5 | * Project ___| | | | _ \| | 6 | * / __| | | | |_) | | 7 | * | (__| |_| | _ <| |___ 8 | * \___|\___/|_| \_\_____| 9 | * 10 | * Copyright (C) 1998 - 2013, Daniel Stenberg, , et al. 11 | * 12 | * This software is licensed as described in the file COPYING, which 13 | * you should have received as part of this distribution. The terms 14 | * are also available at http://curl.haxx.se/docs/copyright.html. 15 | * 16 | * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 | * copies of the Software, and permit persons to whom the Software is 18 | * furnished to do so, under the terms of the COPYING file. 19 | * 20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 | * KIND, either express or implied. 22 | * 23 | ***************************************************************************/ 24 | /* 25 | This is an "external" header file. Don't give away any internals here! 26 | 27 | GOALS 28 | 29 | o Enable a "pull" interface. The application that uses libcurl decides where 30 | and when to ask libcurl to get/send data. 31 | 32 | o Enable multiple simultaneous transfers in the same thread without making it 33 | complicated for the application. 34 | 35 | o Enable the application to select() on its own file descriptors and curl's 36 | file descriptors simultaneous easily. 37 | 38 | */ 39 | 40 | /* 41 | * This header file should not really need to include "curl.h" since curl.h 42 | * itself includes this file and we expect user applications to do #include 43 | * without the need for especially including multi.h. 44 | * 45 | * For some reason we added this include here at one point, and rather than to 46 | * break existing (wrongly written) libcurl applications, we leave it as-is 47 | * but with this warning attached. 48 | */ 49 | #include "curl.h" 50 | 51 | #ifdef __cplusplus 52 | extern "C" { 53 | #endif 54 | 55 | typedef void CURLM; 56 | 57 | typedef enum { 58 | CURLM_CALL_MULTI_PERFORM = -1, /* please call curl_multi_perform() or 59 | curl_multi_socket*() soon */ 60 | CURLM_OK, 61 | CURLM_BAD_HANDLE, /* the passed-in handle is not a valid CURLM handle */ 62 | CURLM_BAD_EASY_HANDLE, /* an easy handle was not good/valid */ 63 | CURLM_OUT_OF_MEMORY, /* if you ever get this, you're in deep sh*t */ 64 | CURLM_INTERNAL_ERROR, /* this is a libcurl bug */ 65 | CURLM_BAD_SOCKET, /* the passed in socket argument did not match */ 66 | CURLM_UNKNOWN_OPTION, /* curl_multi_setopt() with unsupported option */ 67 | CURLM_ADDED_ALREADY, /* an easy handle already added to a multi handle was 68 | attempted to get added - again */ 69 | CURLM_LAST 70 | } CURLMcode; 71 | 72 | /* just to make code nicer when using curl_multi_socket() you can now check 73 | for CURLM_CALL_MULTI_SOCKET too in the same style it works for 74 | curl_multi_perform() and CURLM_CALL_MULTI_PERFORM */ 75 | #define CURLM_CALL_MULTI_SOCKET CURLM_CALL_MULTI_PERFORM 76 | 77 | typedef enum { 78 | CURLMSG_NONE, /* first, not used */ 79 | CURLMSG_DONE, /* This easy handle has completed. 'result' contains 80 | the CURLcode of the transfer */ 81 | CURLMSG_LAST /* last, not used */ 82 | } CURLMSG; 83 | 84 | struct CURLMsg { 85 | CURLMSG msg; /* what this message means */ 86 | CURL *easy_handle; /* the handle it concerns */ 87 | union { 88 | void *whatever; /* message-specific data */ 89 | CURLcode result; /* return code for transfer */ 90 | } data; 91 | }; 92 | typedef struct CURLMsg CURLMsg; 93 | 94 | /* Based on poll(2) structure and values. 95 | * We don't use pollfd and POLL* constants explicitly 96 | * to cover platforms without poll(). */ 97 | #define CURL_WAIT_POLLIN 0x0001 98 | #define CURL_WAIT_POLLPRI 0x0002 99 | #define CURL_WAIT_POLLOUT 0x0004 100 | 101 | struct curl_waitfd { 102 | curl_socket_t fd; 103 | short events; 104 | short revents; /* not supported yet */ 105 | }; 106 | 107 | /* 108 | * Name: curl_multi_init() 109 | * 110 | * Desc: inititalize multi-style curl usage 111 | * 112 | * Returns: a new CURLM handle to use in all 'curl_multi' functions. 113 | */ 114 | CURL_EXTERN CURLM *curl_multi_init(void); 115 | 116 | /* 117 | * Name: curl_multi_add_handle() 118 | * 119 | * Desc: add a standard curl handle to the multi stack 120 | * 121 | * Returns: CURLMcode type, general multi error code. 122 | */ 123 | CURL_EXTERN CURLMcode curl_multi_add_handle(CURLM *multi_handle, 124 | CURL *curl_handle); 125 | 126 | /* 127 | * Name: curl_multi_remove_handle() 128 | * 129 | * Desc: removes a curl handle from the multi stack again 130 | * 131 | * Returns: CURLMcode type, general multi error code. 132 | */ 133 | CURL_EXTERN CURLMcode curl_multi_remove_handle(CURLM *multi_handle, 134 | CURL *curl_handle); 135 | 136 | /* 137 | * Name: curl_multi_fdset() 138 | * 139 | * Desc: Ask curl for its fd_set sets. The app can use these to select() or 140 | * poll() on. We want curl_multi_perform() called as soon as one of 141 | * them are ready. 142 | * 143 | * Returns: CURLMcode type, general multi error code. 144 | */ 145 | CURL_EXTERN CURLMcode curl_multi_fdset(CURLM *multi_handle, 146 | fd_set *read_fd_set, 147 | fd_set *write_fd_set, 148 | fd_set *exc_fd_set, 149 | int *max_fd); 150 | 151 | /* 152 | * Name: curl_multi_wait() 153 | * 154 | * Desc: Poll on all fds within a CURLM set as well as any 155 | * additional fds passed to the function. 156 | * 157 | * Returns: CURLMcode type, general multi error code. 158 | */ 159 | CURL_EXTERN CURLMcode curl_multi_wait(CURLM *multi_handle, 160 | struct curl_waitfd extra_fds[], 161 | unsigned int extra_nfds, 162 | int timeout_ms, 163 | int *ret); 164 | 165 | /* 166 | * Name: curl_multi_perform() 167 | * 168 | * Desc: When the app thinks there's data available for curl it calls this 169 | * function to read/write whatever there is right now. This returns 170 | * as soon as the reads and writes are done. This function does not 171 | * require that there actually is data available for reading or that 172 | * data can be written, it can be called just in case. It returns 173 | * the number of handles that still transfer data in the second 174 | * argument's integer-pointer. 175 | * 176 | * Returns: CURLMcode type, general multi error code. *NOTE* that this only 177 | * returns errors etc regarding the whole multi stack. There might 178 | * still have occurred problems on invidual transfers even when this 179 | * returns OK. 180 | */ 181 | CURL_EXTERN CURLMcode curl_multi_perform(CURLM *multi_handle, 182 | int *running_handles); 183 | 184 | /* 185 | * Name: curl_multi_cleanup() 186 | * 187 | * Desc: Cleans up and removes a whole multi stack. It does not free or 188 | * touch any individual easy handles in any way. We need to define 189 | * in what state those handles will be if this function is called 190 | * in the middle of a transfer. 191 | * 192 | * Returns: CURLMcode type, general multi error code. 193 | */ 194 | CURL_EXTERN CURLMcode curl_multi_cleanup(CURLM *multi_handle); 195 | 196 | /* 197 | * Name: curl_multi_info_read() 198 | * 199 | * Desc: Ask the multi handle if there's any messages/informationals from 200 | * the individual transfers. Messages include informationals such as 201 | * error code from the transfer or just the fact that a transfer is 202 | * completed. More details on these should be written down as well. 203 | * 204 | * Repeated calls to this function will return a new struct each 205 | * time, until a special "end of msgs" struct is returned as a signal 206 | * that there is no more to get at this point. 207 | * 208 | * The data the returned pointer points to will not survive calling 209 | * curl_multi_cleanup(). 210 | * 211 | * The 'CURLMsg' struct is meant to be very simple and only contain 212 | * very basic informations. If more involved information is wanted, 213 | * we will provide the particular "transfer handle" in that struct 214 | * and that should/could/would be used in subsequent 215 | * curl_easy_getinfo() calls (or similar). The point being that we 216 | * must never expose complex structs to applications, as then we'll 217 | * undoubtably get backwards compatibility problems in the future. 218 | * 219 | * Returns: A pointer to a filled-in struct, or NULL if it failed or ran out 220 | * of structs. It also writes the number of messages left in the 221 | * queue (after this read) in the integer the second argument points 222 | * to. 223 | */ 224 | CURL_EXTERN CURLMsg *curl_multi_info_read(CURLM *multi_handle, 225 | int *msgs_in_queue); 226 | 227 | /* 228 | * Name: curl_multi_strerror() 229 | * 230 | * Desc: The curl_multi_strerror function may be used to turn a CURLMcode 231 | * value into the equivalent human readable error string. This is 232 | * useful for printing meaningful error messages. 233 | * 234 | * Returns: A pointer to a zero-terminated error message. 235 | */ 236 | CURL_EXTERN const char *curl_multi_strerror(CURLMcode); 237 | 238 | /* 239 | * Name: curl_multi_socket() and 240 | * curl_multi_socket_all() 241 | * 242 | * Desc: An alternative version of curl_multi_perform() that allows the 243 | * application to pass in one of the file descriptors that have been 244 | * detected to have "action" on them and let libcurl perform. 245 | * See man page for details. 246 | */ 247 | #define CURL_POLL_NONE 0 248 | #define CURL_POLL_IN 1 249 | #define CURL_POLL_OUT 2 250 | #define CURL_POLL_INOUT 3 251 | #define CURL_POLL_REMOVE 4 252 | 253 | #define CURL_SOCKET_TIMEOUT CURL_SOCKET_BAD 254 | 255 | #define CURL_CSELECT_IN 0x01 256 | #define CURL_CSELECT_OUT 0x02 257 | #define CURL_CSELECT_ERR 0x04 258 | 259 | typedef int (*curl_socket_callback)(CURL *easy, /* easy handle */ 260 | curl_socket_t s, /* socket */ 261 | int what, /* see above */ 262 | void *userp, /* private callback 263 | pointer */ 264 | void *socketp); /* private socket 265 | pointer */ 266 | /* 267 | * Name: curl_multi_timer_callback 268 | * 269 | * Desc: Called by libcurl whenever the library detects a change in the 270 | * maximum number of milliseconds the app is allowed to wait before 271 | * curl_multi_socket() or curl_multi_perform() must be called 272 | * (to allow libcurl's timed events to take place). 273 | * 274 | * Returns: The callback should return zero. 275 | */ 276 | typedef int (*curl_multi_timer_callback)(CURLM *multi, /* multi handle */ 277 | long timeout_ms, /* see above */ 278 | void *userp); /* private callback 279 | pointer */ 280 | 281 | CURL_EXTERN CURLMcode curl_multi_socket(CURLM *multi_handle, curl_socket_t s, 282 | int *running_handles); 283 | 284 | CURL_EXTERN CURLMcode curl_multi_socket_action(CURLM *multi_handle, 285 | curl_socket_t s, 286 | int ev_bitmask, 287 | int *running_handles); 288 | 289 | CURL_EXTERN CURLMcode curl_multi_socket_all(CURLM *multi_handle, 290 | int *running_handles); 291 | 292 | #ifndef CURL_ALLOW_OLD_MULTI_SOCKET 293 | /* This macro below was added in 7.16.3 to push users who recompile to use 294 | the new curl_multi_socket_action() instead of the old curl_multi_socket() 295 | */ 296 | #define curl_multi_socket(x,y,z) curl_multi_socket_action(x,y,0,z) 297 | #endif 298 | 299 | /* 300 | * Name: curl_multi_timeout() 301 | * 302 | * Desc: Returns the maximum number of milliseconds the app is allowed to 303 | * wait before curl_multi_socket() or curl_multi_perform() must be 304 | * called (to allow libcurl's timed events to take place). 305 | * 306 | * Returns: CURLM error code. 307 | */ 308 | CURL_EXTERN CURLMcode curl_multi_timeout(CURLM *multi_handle, 309 | long *milliseconds); 310 | 311 | #undef CINIT /* re-using the same name as in curl.h */ 312 | 313 | #ifdef CURL_ISOCPP 314 | #define CINIT(name,type,num) CURLMOPT_ ## name = CURLOPTTYPE_ ## type + num 315 | #else 316 | /* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */ 317 | #define LONG CURLOPTTYPE_LONG 318 | #define OBJECTPOINT CURLOPTTYPE_OBJECTPOINT 319 | #define FUNCTIONPOINT CURLOPTTYPE_FUNCTIONPOINT 320 | #define OFF_T CURLOPTTYPE_OFF_T 321 | #define CINIT(name,type,number) CURLMOPT_/**/name = type + number 322 | #endif 323 | 324 | typedef enum { 325 | /* This is the socket callback function pointer */ 326 | CINIT(SOCKETFUNCTION, FUNCTIONPOINT, 1), 327 | 328 | /* This is the argument passed to the socket callback */ 329 | CINIT(SOCKETDATA, OBJECTPOINT, 2), 330 | 331 | /* set to 1 to enable pipelining for this multi handle */ 332 | CINIT(PIPELINING, LONG, 3), 333 | 334 | /* This is the timer callback function pointer */ 335 | CINIT(TIMERFUNCTION, FUNCTIONPOINT, 4), 336 | 337 | /* This is the argument passed to the timer callback */ 338 | CINIT(TIMERDATA, OBJECTPOINT, 5), 339 | 340 | /* maximum number of entries in the connection cache */ 341 | CINIT(MAXCONNECTS, LONG, 6), 342 | 343 | /* maximum number of (pipelining) connections to one host */ 344 | CINIT(MAX_HOST_CONNECTIONS, LONG, 7), 345 | 346 | /* maximum number of requests in a pipeline */ 347 | CINIT(MAX_PIPELINE_LENGTH, LONG, 8), 348 | 349 | /* a connection with a content-length longer than this 350 | will not be considered for pipelining */ 351 | CINIT(CONTENT_LENGTH_PENALTY_SIZE, OFF_T, 9), 352 | 353 | /* a connection with a chunk length longer than this 354 | will not be considered for pipelining */ 355 | CINIT(CHUNK_LENGTH_PENALTY_SIZE, OFF_T, 10), 356 | 357 | /* a list of site names(+port) that are blacklisted from 358 | pipelining */ 359 | CINIT(PIPELINING_SITE_BL, OBJECTPOINT, 11), 360 | 361 | /* a list of server types that are blacklisted from 362 | pipelining */ 363 | CINIT(PIPELINING_SERVER_BL, OBJECTPOINT, 12), 364 | 365 | /* maximum number of open connections in total */ 366 | CINIT(MAX_TOTAL_CONNECTIONS, LONG, 13), 367 | 368 | CURLMOPT_LASTENTRY /* the last unused */ 369 | } CURLMoption; 370 | 371 | 372 | /* 373 | * Name: curl_multi_setopt() 374 | * 375 | * Desc: Sets options for the multi handle. 376 | * 377 | * Returns: CURLM error code. 378 | */ 379 | CURL_EXTERN CURLMcode curl_multi_setopt(CURLM *multi_handle, 380 | CURLMoption option, ...); 381 | 382 | 383 | /* 384 | * Name: curl_multi_assign() 385 | * 386 | * Desc: This function sets an association in the multi handle between the 387 | * given socket and a private pointer of the application. This is 388 | * (only) useful for curl_multi_socket uses. 389 | * 390 | * Returns: CURLM error code. 391 | */ 392 | CURL_EXTERN CURLMcode curl_multi_assign(CURLM *multi_handle, 393 | curl_socket_t sockfd, void *sockp); 394 | 395 | #ifdef __cplusplus 396 | } /* end of extern "C" */ 397 | #endif 398 | 399 | #endif 400 | -------------------------------------------------------------------------------- /Installation error in curb in Windows/curl-7.40.0-devel-mingw32/mk-ca-bundle.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl -w 2 | # *************************************************************************** 3 | # * _ _ ____ _ 4 | # * Project ___| | | | _ \| | 5 | # * / __| | | | |_) | | 6 | # * | (__| |_| | _ <| |___ 7 | # * \___|\___/|_| \_\_____| 8 | # * 9 | # * Copyright (C) 1998 - 2014, Daniel Stenberg, , et al. 10 | # * 11 | # * This software is licensed as described in the file COPYING, which 12 | # * you should have received as part of this distribution. The terms 13 | # * are also available at http://curl.haxx.se/docs/copyright.html. 14 | # * 15 | # * You may opt to use, copy, modify, merge, publish, distribute and/or sell 16 | # * copies of the Software, and permit persons to whom the Software is 17 | # * furnished to do so, under the terms of the COPYING file. 18 | # * 19 | # * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 20 | # * KIND, either express or implied. 21 | # * 22 | # *************************************************************************** 23 | # This Perl script creates a fresh ca-bundle.crt file for use with libcurl. 24 | # It downloads certdata.txt from Mozilla's source tree (see URL below), 25 | # then parses certdata.txt and extracts CA Root Certificates into PEM format. 26 | # These are then processed with the OpenSSL commandline tool to produce the 27 | # final ca-bundle.crt file. 28 | # The script is based on the parse-certs script written by Roland Krikava. 29 | # This Perl script works on almost any platform since its only external 30 | # dependency is the OpenSSL commandline tool for optional text listing. 31 | # Hacked by Guenter Knauf. 32 | # 33 | use Getopt::Std; 34 | use MIME::Base64; 35 | use LWP::UserAgent; 36 | use strict; 37 | use vars qw($opt_b $opt_d $opt_f $opt_h $opt_i $opt_l $opt_n $opt_p $opt_q $opt_s $opt_t $opt_u $opt_v $opt_w); 38 | use List::Util; 39 | use Text::Wrap; 40 | my $MOD_SHA = "Digest::SHA"; 41 | eval "require $MOD_SHA"; 42 | if ($@) { 43 | $MOD_SHA = "Digest::SHA::PurePerl"; 44 | eval "require $MOD_SHA"; 45 | } 46 | 47 | my %urls = ( 48 | 'nss' => 49 | 'http://hg.mozilla.org/projects/nss/raw-file/tip/lib/ckfw/builtins/certdata.txt', 50 | 'central' => 51 | 'http://hg.mozilla.org/mozilla-central/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt', 52 | 'aurora' => 53 | 'http://hg.mozilla.org/releases/mozilla-aurora/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt', 54 | 'beta' => 55 | 'http://hg.mozilla.org/releases/mozilla-beta/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt', 56 | 'release' => 57 | 'http://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt', 58 | ); 59 | 60 | $opt_d = 'release'; 61 | 62 | # If the OpenSSL commandline is not in search path you can configure it here! 63 | my $openssl = 'openssl'; 64 | 65 | my $version = '1.25'; 66 | 67 | $opt_w = 76; # default base64 encoded lines length 68 | 69 | # default cert types to include in the output (default is to include CAs which may issue SSL server certs) 70 | my $default_mozilla_trust_purposes = "SERVER_AUTH"; 71 | my $default_mozilla_trust_levels = "TRUSTED_DELEGATOR"; 72 | $opt_p = $default_mozilla_trust_purposes . ":" . $default_mozilla_trust_levels; 73 | 74 | my @valid_mozilla_trust_purposes = ( 75 | "DIGITAL_SIGNATURE", 76 | "NON_REPUDIATION", 77 | "KEY_ENCIPHERMENT", 78 | "DATA_ENCIPHERMENT", 79 | "KEY_AGREEMENT", 80 | "KEY_CERT_SIGN", 81 | "CRL_SIGN", 82 | "SERVER_AUTH", 83 | "CLIENT_AUTH", 84 | "CODE_SIGNING", 85 | "EMAIL_PROTECTION", 86 | "IPSEC_END_SYSTEM", 87 | "IPSEC_TUNNEL", 88 | "IPSEC_USER", 89 | "TIME_STAMPING", 90 | "STEP_UP_APPROVED" 91 | ); 92 | 93 | my @valid_mozilla_trust_levels = ( 94 | "TRUSTED_DELEGATOR", # CAs 95 | "NOT_TRUSTED", # Don't trust these certs. 96 | "MUST_VERIFY_TRUST", # This explicitly tells us that it ISN'T a CA but is otherwise ok. In other words, this should tell the app to ignore any other sources that claim this is a CA. 97 | "TRUSTED" # This cert is trusted, but only for itself and not for delegates (i.e. it is not a CA). 98 | ); 99 | 100 | my $default_signature_algorithms = $opt_s = "MD5"; 101 | 102 | my @valid_signature_algorithms = ( 103 | "MD5", 104 | "SHA1", 105 | "SHA256", 106 | "SHA384", 107 | "SHA512" 108 | ); 109 | 110 | $0 =~ s@.*(/|\\)@@; 111 | $Getopt::Std::STANDARD_HELP_VERSION = 1; 112 | getopts('bd:fhilnp:qs:tuvw:'); 113 | 114 | if(!defined($opt_d)) { 115 | # to make plain "-d" use not cause warnings, and actually still work 116 | $opt_d = 'release'; 117 | } 118 | 119 | # Use predefined URL or else custom URL specified on command line. 120 | my $url = ( defined( $urls{$opt_d} ) ) ? $urls{$opt_d} : $opt_d; 121 | 122 | my $curl = `curl -V`; 123 | 124 | if ($opt_i) { 125 | print ("=" x 78 . "\n"); 126 | print "Script Version : $version\n"; 127 | print "Perl Version : $]\n"; 128 | print "Operating System Name : $^O\n"; 129 | print "Getopt::Std.pm Version : ${Getopt::Std::VERSION}\n"; 130 | print "MIME::Base64.pm Version : ${MIME::Base64::VERSION}\n"; 131 | print "LWP::UserAgent.pm Version : ${LWP::UserAgent::VERSION}\n"; 132 | print "LWP.pm Version : ${LWP::VERSION}\n"; 133 | print "Digest::SHA.pm Version : ${Digest::SHA::VERSION}\n" if ($Digest::SHA::VERSION); 134 | print "Digest::SHA::PurePerl.pm Version : ${Digest::SHA::PurePerl::VERSION}\n" if ($Digest::SHA::PurePerl::VERSION); 135 | print ("=" x 78 . "\n"); 136 | } 137 | 138 | sub warning_message() { 139 | if ( $opt_d =~ m/^risk$/i ) { # Long Form Warning and Exit 140 | print "Warning: Use of this script may pose some risk:\n"; 141 | print "\n"; 142 | print " 1) Using http is subject to man in the middle attack of certdata content\n"; 143 | print " 2) Default to 'release', but more recent updates may be found in other trees\n"; 144 | print " 3) certdata.txt file format may change, lag time to update this script\n"; 145 | print " 4) Generally unwise to blindly trust CAs without manual review & verification\n"; 146 | print " 5) Mozilla apps use additional security checks aren't represented in certdata\n"; 147 | print " 6) Use of this script will make a security engineer grind his teeth and\n"; 148 | print " swear at you. ;)\n"; 149 | exit; 150 | } else { # Short Form Warning 151 | print "Warning: Use of this script may pose some risk, -d risk for more details.\n"; 152 | } 153 | } 154 | 155 | sub HELP_MESSAGE() { 156 | print "Usage:\t${0} [-b] [-d] [-f] [-i] [-l] [-n] [-p] [-q] [-s] [-t] [-u] [-v] [-w] []\n"; 157 | print "\t-b\tbackup an existing version of ca-bundle.crt\n"; 158 | print "\t-d\tspecify Mozilla tree to pull certdata.txt or custom URL\n"; 159 | print "\t\t Valid names are:\n"; 160 | print "\t\t ", join( ", ", map { ( $_ =~ m/$opt_d/ ) ? "$_ (default)" : "$_" } sort keys %urls ), "\n"; 161 | print "\t-f\tforce rebuild even if certdata.txt is current\n"; 162 | print "\t-i\tprint version info about used modules\n"; 163 | print "\t-l\tprint license info about certdata.txt\n"; 164 | print "\t-n\tno download of certdata.txt (to use existing)\n"; 165 | print wrap("\t","\t\t", "-p\tlist of Mozilla trust purposes and levels for certificates to include in output. Takes the form of a comma separated list of purposes, a colon, and a comma separated list of levels. (default: $default_mozilla_trust_purposes:$default_mozilla_trust_levels)"), "\n"; 166 | print "\t\t Valid purposes are:\n"; 167 | print wrap("\t\t ","\t\t ", join( ", ", "ALL", @valid_mozilla_trust_purposes ) ), "\n"; 168 | print "\t\t Valid levels are:\n"; 169 | print wrap("\t\t ","\t\t ", join( ", ", "ALL", @valid_mozilla_trust_levels ) ), "\n"; 170 | print "\t-q\tbe really quiet (no progress output at all)\n"; 171 | print wrap("\t","\t\t", "-s\tcomma separated list of certificate signatures/hashes to output in plain text mode. (default: $default_signature_algorithms)\n"); 172 | print "\t\t Valid signature algorithms are:\n"; 173 | print wrap("\t\t ","\t\t ", join( ", ", "ALL", @valid_signature_algorithms ) ), "\n"; 174 | print "\t-t\tinclude plain text listing of certificates\n"; 175 | print "\t-u\tunlink (remove) certdata.txt after processing\n"; 176 | print "\t-v\tbe verbose and print out processed CAs\n"; 177 | print "\t-w \twrap base64 output lines after chars (default: ${opt_w})\n"; 178 | exit; 179 | } 180 | 181 | sub VERSION_MESSAGE() { 182 | print "${0} version ${version} running Perl ${]} on ${^O}\n"; 183 | } 184 | 185 | warning_message() unless ($opt_q || $url =~ m/^(ht|f)tps:/i ); 186 | HELP_MESSAGE() if ($opt_h); 187 | 188 | sub is_in_list($@) { 189 | my $target = shift; 190 | 191 | return defined(List::Util::first { $target eq $_ } @_); 192 | } 193 | 194 | # Parses $param_string as a case insensitive comma separated list with optional whitespace 195 | # validates that only allowed parameters are supplied 196 | sub parse_csv_param($$@) { 197 | my $description = shift; 198 | my $param_string = shift; 199 | my @valid_values = @_; 200 | 201 | my @values = map { 202 | s/^\s+//; # strip leading spaces 203 | s/\s+$//; # strip trailing spaces 204 | uc $_ # return the modified string as upper case 205 | } split( ',', $param_string ); 206 | 207 | # Find all values which are not in the list of valid values or "ALL" 208 | my @invalid = grep { !is_in_list($_,"ALL",@valid_values) } @values; 209 | 210 | if ( scalar(@invalid) > 0 ) { 211 | # Tell the user which parameters were invalid and print the standard help message which will exit 212 | print "Error: Invalid ", $description, scalar(@invalid) == 1 ? ": " : "s: ", join( ", ", map { "\"$_\"" } @invalid ), "\n"; 213 | HELP_MESSAGE(); 214 | } 215 | 216 | @values = @valid_values if ( is_in_list("ALL",@values) ); 217 | 218 | return @values; 219 | } 220 | 221 | sub sha1 { 222 | my $result; 223 | if ($Digest::SHA::VERSION || $Digest::SHA::PurePerl::VERSION) { 224 | open(FILE, $_[0]) or die "Can't open '$_[0]': $!"; 225 | binmode(FILE); 226 | $result = $MOD_SHA->new(1)->addfile(*FILE)->hexdigest; 227 | close(FILE); 228 | } else { 229 | # Use OpenSSL command if Perl Digest::SHA modules not available 230 | $result = (split(/ |\r|\n/,`$openssl dgst -sha1 $_[0]`))[1]; 231 | } 232 | return $result; 233 | } 234 | 235 | 236 | sub oldsha1 { 237 | my $sha1 = ""; 238 | open(C, "<$_[0]") || return 0; 239 | while() { 240 | chomp; 241 | if($_ =~ /^\#\# SHA1: (.*)/) { 242 | $sha1 = $1; 243 | last; 244 | } 245 | } 246 | close(C); 247 | return $sha1; 248 | } 249 | 250 | if ( $opt_p !~ m/:/ ) { 251 | print "Error: Mozilla trust identifier list must include both purposes and levels\n"; 252 | HELP_MESSAGE(); 253 | } 254 | 255 | (my $included_mozilla_trust_purposes_string, my $included_mozilla_trust_levels_string) = split( ':', $opt_p ); 256 | my @included_mozilla_trust_purposes = parse_csv_param( "trust purpose", $included_mozilla_trust_purposes_string, @valid_mozilla_trust_purposes ); 257 | my @included_mozilla_trust_levels = parse_csv_param( "trust level", $included_mozilla_trust_levels_string, @valid_mozilla_trust_levels ); 258 | 259 | my @included_signature_algorithms = parse_csv_param( "signature algorithm", $opt_s, @valid_signature_algorithms ); 260 | 261 | sub should_output_cert(%) { 262 | my %trust_purposes_by_level = @_; 263 | 264 | foreach my $level (@included_mozilla_trust_levels) { 265 | # for each level we want to output, see if any of our desired purposes are included 266 | return 1 if ( defined( List::Util::first { is_in_list( $_, @included_mozilla_trust_purposes ) } @{$trust_purposes_by_level{$level}} ) ); 267 | } 268 | 269 | return 0; 270 | } 271 | 272 | my $crt = $ARGV[0] || 'ca-bundle.crt'; 273 | (my $txt = $url) =~ s@(.*/|\?.*)@@g; 274 | 275 | my $stdout = $crt eq '-'; 276 | my $resp; 277 | my $fetched; 278 | 279 | my $oldsha1 = oldsha1($crt); 280 | 281 | print STDERR "SHA1 of old file: $oldsha1\n" if (!$opt_q); 282 | 283 | print STDERR "Downloading '$txt' ...\n" if (!$opt_q); 284 | 285 | if($curl && !$opt_n) { 286 | my $https = $url; 287 | $https =~ s/^http:/https:/; 288 | print STDERR "Get certdata over HTTPS with curl!\n" if (!$opt_q); 289 | my $quiet = $opt_q ? "-s" : ""; 290 | my @out = `curl -w %{response_code} $quiet -O $https`; 291 | if(@out && $out[0] == 200) { 292 | $fetched = 1; 293 | } else { 294 | print STDERR "Failed downloading HTTPS with curl, trying HTTP with LWP\n" if (!$opt_q); 295 | } 296 | } 297 | 298 | unless ($fetched || ($opt_n and -e $txt)) { 299 | my $ua = new LWP::UserAgent(agent => "$0/$version"); 300 | $ua->env_proxy(); 301 | $resp = $ua->mirror($url, $txt); 302 | if ($resp && $resp->code eq '304') { 303 | print STDERR "Not modified\n" unless $opt_q; 304 | exit 0 if -e $crt && !$opt_f; 305 | } else { 306 | $fetched = 1; 307 | } 308 | if( !$resp || $resp->code !~ /^(?:200|304)$/ ) { 309 | print STDERR "Unable to download latest data: " 310 | . ($resp? $resp->code . ' - ' . $resp->message : "LWP failed") . "\n" 311 | unless $opt_q; 312 | exit 1 if -e $crt || ! -r $txt; 313 | } 314 | } 315 | 316 | my $filedate = $resp ? $resp->last_modified : (stat($txt))[9]; 317 | my $datesrc = "as of"; 318 | if(!$filedate) { 319 | # mxr.mozilla.org gave us a time, hg.mozilla.org does not! 320 | $filedate = time(); 321 | $datesrc="downloaded on"; 322 | } 323 | 324 | # get the hash from the download file 325 | my $newsha1= sha1($txt); 326 | 327 | if(!$opt_f && $oldsha1 eq $newsha1) { 328 | print STDERR "Downloaded file identical to previous run\'s source file. Exiting\n"; 329 | exit; 330 | } 331 | 332 | print STDERR "SHA1 of new file: $newsha1\n"; 333 | 334 | my $currentdate = scalar gmtime($filedate); 335 | 336 | my $format = $opt_t ? "plain text and " : ""; 337 | if( $stdout ) { 338 | open(CRT, '> -') or die "Couldn't open STDOUT: $!\n"; 339 | } else { 340 | open(CRT,">$crt.~") or die "Couldn't open $crt.~: $!\n"; 341 | } 342 | print CRT <) { 372 | if (/\*\*\*\*\* BEGIN LICENSE BLOCK \*\*\*\*\*/) { 373 | print CRT; 374 | print if ($opt_l); 375 | while () { 376 | print CRT; 377 | print if ($opt_l); 378 | last if (/\*\*\*\*\* END LICENSE BLOCK \*\*\*\*\*/); 379 | } 380 | } 381 | next if /^#|^\s*$/; 382 | chomp; 383 | if (/^CVS_ID\s+\"(.*)\"/) { 384 | print CRT "# $1\n"; 385 | } 386 | 387 | # this is a match for the start of a certificate 388 | if (/^CKA_CLASS CK_OBJECT_CLASS CKO_CERTIFICATE/) { 389 | $start_of_cert = 1 390 | } 391 | if ($start_of_cert && /^CKA_LABEL UTF8 \"(.*)\"/) { 392 | $caname = $1; 393 | } 394 | my %trust_purposes_by_level; 395 | if ($start_of_cert && /^CKA_VALUE MULTILINE_OCTAL/) { 396 | my $data; 397 | while () { 398 | last if (/^END/); 399 | chomp; 400 | my @octets = split(/\\/); 401 | shift @octets; 402 | for (@octets) { 403 | $data .= chr(oct); 404 | } 405 | } 406 | # scan forwards until the trust part 407 | while () { 408 | last if (/^CKA_CLASS CK_OBJECT_CLASS CKO_NSS_TRUST/); 409 | chomp; 410 | } 411 | # now scan the trust part to determine how we should trust this cert 412 | while () { 413 | last if (/^#/); 414 | if (/^CKA_TRUST_([A-Z_]+)\s+CK_TRUST\s+CKT_NSS_([A-Z_]+)\s*$/) { 415 | if ( !is_in_list($1,@valid_mozilla_trust_purposes) ) { 416 | print STDERR "Warning: Unrecognized trust purpose for cert: $caname. Trust purpose: $1. Trust Level: $2\n" if (!$opt_q); 417 | } elsif ( !is_in_list($2,@valid_mozilla_trust_levels) ) { 418 | print STDERR "Warning: Unrecognized trust level for cert: $caname. Trust purpose: $1. Trust Level: $2\n" if (!$opt_q); 419 | } else { 420 | push @{$trust_purposes_by_level{$2}}, $1; 421 | } 422 | } 423 | } 424 | 425 | if ( !should_output_cert(%trust_purposes_by_level) ) { 426 | $skipnum ++; 427 | } else { 428 | my $encoded = MIME::Base64::encode_base64($data, ''); 429 | $encoded =~ s/(.{1,${opt_w}})/$1\n/g; 430 | my $pem = "-----BEGIN CERTIFICATE-----\n" 431 | . $encoded 432 | . "-----END CERTIFICATE-----\n"; 433 | print CRT "\n$caname\n"; 434 | 435 | my $maxStringLength = length($caname); 436 | if ($opt_t) { 437 | foreach my $key (keys %trust_purposes_by_level) { 438 | my $string = $key . ": " . join(", ", @{$trust_purposes_by_level{$key}}); 439 | $maxStringLength = List::Util::max( length($string), $maxStringLength ); 440 | print CRT $string . "\n"; 441 | } 442 | } 443 | print CRT ("=" x $maxStringLength . "\n"); 444 | if (!$opt_t) { 445 | print CRT $pem; 446 | } else { 447 | my $pipe = ""; 448 | foreach my $hash (@included_signature_algorithms) { 449 | $pipe = "|$openssl x509 -" . $hash . " -fingerprint -noout -inform PEM"; 450 | if (!$stdout) { 451 | $pipe .= " >> $crt.~"; 452 | close(CRT) or die "Couldn't close $crt.~: $!"; 453 | } 454 | open(TMP, $pipe) or die "Couldn't open openssl pipe: $!"; 455 | print TMP $pem; 456 | close(TMP) or die "Couldn't close openssl pipe: $!"; 457 | if (!$stdout) { 458 | open(CRT, ">>$crt.~") or die "Couldn't open $crt.~: $!"; 459 | } 460 | } 461 | $pipe = "|$openssl x509 -text -inform PEM"; 462 | if (!$stdout) { 463 | $pipe .= " >> $crt.~"; 464 | close(CRT) or die "Couldn't close $crt.~: $!"; 465 | } 466 | open(TMP, $pipe) or die "Couldn't open openssl pipe: $!"; 467 | print TMP $pem; 468 | close(TMP) or die "Couldn't close openssl pipe: $!"; 469 | if (!$stdout) { 470 | open(CRT, ">>$crt.~") or die "Couldn't open $crt.~: $!"; 471 | } 472 | } 473 | print STDERR "Parsing: $caname\n" if ($opt_v); 474 | $certnum ++; 475 | $start_of_cert = 0; 476 | } 477 | } 478 | } 479 | close(TXT) or die "Couldn't close $txt: $!\n"; 480 | close(CRT) or die "Couldn't close $crt.~: $!\n"; 481 | unless( $stdout ) { 482 | if ($opt_b && -e $crt) { 483 | my $bk = 1; 484 | while (-e "$crt.~${bk}~") { 485 | $bk++; 486 | } 487 | rename $crt, "$crt.~${bk}~" or die "Failed to create backup $crt.~$bk}~: $!\n"; 488 | } elsif( -e $crt ) { 489 | unlink( $crt ) or die "Failed to remove $crt: $!\n"; 490 | } 491 | rename "$crt.~", $crt or die "Failed to rename $crt.~ to $crt: $!\n"; 492 | } 493 | unlink $txt if ($opt_u); 494 | print STDERR "Done ($certnum CA certs processed, $skipnum skipped).\n" if (!$opt_q); 495 | --------------------------------------------------------------------------------