diff options
author | Timo Teräs <timo.teras@iki.fi> | 2022-12-20 23:16:12 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2022-12-21 00:26:53 +0200 |
commit | 8ad1884f1f42c6ba3d21832d57287028eedd6f03 (patch) | |
tree | e0c31f75b5207b1ab7c595eede95c38be87d00c7 /src | |
parent | c1370f9f50708c8777eac3131cab337c16968175 (diff) | |
download | apk-tools-8ad1884f1f42c6ba3d21832d57287028eedd6f03.tar.gz apk-tools-8ad1884f1f42c6ba3d21832d57287028eedd6f03.tar.bz2 apk-tools-8ad1884f1f42c6ba3d21832d57287028eedd6f03.tar.xz apk-tools-8ad1884f1f42c6ba3d21832d57287028eedd6f03.zip |
apk, fetch: implement --no-check-certificate
fixes #10650
Diffstat (limited to 'src')
-rw-r--r-- | src/apk.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -86,6 +86,7 @@ static struct apk_repository_list *apk_repository_new(const char *url) OPT(OPT_GLOBAL_interactive, APK_OPT_SH("i") "interactive") \ OPT(OPT_GLOBAL_keys_dir, APK_OPT_ARG "keys-dir") \ OPT(OPT_GLOBAL_no_cache, "no-cache") \ + OPT(OPT_GLOBAL_no_check_certificate, "no-check-certificate") \ OPT(OPT_GLOBAL_no_interactive, "no-interactive") \ OPT(OPT_GLOBAL_no_network, "no-network") \ OPT(OPT_GLOBAL_no_progress, "no-progress") \ @@ -196,6 +197,9 @@ static int option_parse_global(void *ctx, struct apk_db_options *dbopts, int opt case OPT_GLOBAL_no_cache: apk_flags |= APK_NO_CACHE; break; + case OPT_GLOBAL_no_check_certificate: + fetch_no_check_certificate(); + break; case OPT_GLOBAL_cache_dir: dbopts->cache_dir = optarg; break; |