diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-10-08 10:10:45 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-10-08 10:10:45 +0300 |
commit | 555363f056377508040d3a555d198c4b87aff3a3 (patch) | |
tree | 85b07e13b3c5e17ee07f37925122dd06808f0c4a /src/apk.c | |
parent | aab5f469596fb6e2b69dd847743d5ae16ee604da (diff) | |
download | apk-tools-555363f056377508040d3a555d198c4b87aff3a3.tar.gz apk-tools-555363f056377508040d3a555d198c4b87aff3a3.tar.bz2 apk-tools-555363f056377508040d3a555d198c4b87aff3a3.tar.xz apk-tools-555363f056377508040d3a555d198c4b87aff3a3.zip |
url: use libfetch to retrieve http/https/ftp files
Diffstat (limited to 'src/apk.c')
-rw-r--r-- | src/apk.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -26,6 +26,8 @@ #include <openssl/engine.h> #endif +#include <fetch.h> + #include "apk_defines.h" #include "apk_database.h" #include "apk_applet.h" @@ -367,6 +369,7 @@ int main(int argc, char **argv) init_openssl(); setup_automatic_flags(); + fetchConnectionCacheInit(16, 1); optindex = 0; while ((r = getopt_long(argc, argv, short_options, @@ -554,5 +557,7 @@ int main(int argc, char **argv) err: if (ctx) free(ctx); + + fetchConnectionCacheClose(); return r; } |