Commit Graph

8 Commits

Author SHA1 Message Date
c6ee3d79ad Fix syntax-check 'sc_prohibit_have_config_h'
* cfg.mk: Remove sc_prohibit_have_config_h from local-checks-to-skip
* libwget/*.c: Include <config.h> unconditionally
* src/*.c: Likewise
* tests/*.c: Likewise
2017-04-30 22:01:34 +02:00
ec396c577f Fix URLs to HTTPS where possible 2017-02-28 15:31:30 +01:00
9568b0c87e Rename include/libwget.h to include/wget/wget.h+wgetver.h 2016-09-30 09:47:32 +02:00
9cf7d2f81f Add docs for MD5 convenience functions
* libwget/md5.c: Add docs
* docs/Makefile.am: Add rule for man pages
2016-02-07 19:13:58 +01:00
31f0fc0190 Added printf-style functions
* libwget/printf.c: New file
* docs/libwget/Makefile.am: Add libwget-printf.3
* docs/libwget/libwget-docs.sgml: Add printf section
* docs/libwget/libwget-sections.txt: Add SECTION libwget-printf
* include/libwget.h.in: Add function prototypes
* libwget/Makefile.am: Add printf.c
* libwget/base64.c, libwget/http.c, libwget/iri.c, libwget/logger.c,
  libwget/md5.c, libwget/vector.c, src/options.c:
  Use new functions instead of asprintf/vasprintf
2016-01-13 13:33:51 +01:00
d2f20fd787 Fix hashing with GnuTLS
* libwget/ssl_gnutls.c: Do not skip automatic library initialization
* libwget/md5.c (wget_md5_printf_hex): Print message on error
* tests/test.c: New tests for hashing functionality

GnuTLS automatically initializes on application startup.
This wastes CPU cycles when not using HTTPS.
Switched off, simple functionality like MD5 fail (needed for metalink and
authorization). We have to implement hashing via -lcrypt or -lgcrypt
later - and than we could  use GNUTLS_SKIP_GLOBAL_INIT again.
2016-01-06 12:53:56 +01:00
0f8e49128a Transfer copyright to Free Software Foundation, Inc. 2015-09-22 11:50:06 +02:00
c6b0e461a1 Transform Mget into Wget 2015-09-19 22:54:38 +02:00