{"force_postinstall", OPKG_OPT_TYPE_BOOL, &_conf.force_postinstall},
{"force_checksum", OPKG_OPT_TYPE_BOOL, &_conf.force_checksum},
{"check_signature", OPKG_OPT_TYPE_BOOL, &_conf.check_signature},
+ {"no_check_certificate", OPKG_OPT_TYPE_BOOL, &_conf.no_check_certificate},
{"ftp_proxy", OPKG_OPT_TYPE_STRING, &_conf.ftp_proxy},
{"http_proxy", OPKG_OPT_TYPE_STRING, &_conf.http_proxy},
{"no_proxy", OPKG_OPT_TYPE_STRING, &_conf.no_proxy},
ARGS_OPT_AUTOREMOVE,
ARGS_OPT_CACHE,
ARGS_OPT_FORCE_SIGNATURE,
+ ARGS_OPT_NO_CHECK_CERTIFICATE,
ARGS_OPT_SIZE,
};
{"force_checksum", 0, 0, ARGS_OPT_FORCE_CHECKSUM},
{"force-signature", 0, 0, ARGS_OPT_FORCE_SIGNATURE},
{"force_signature", 0, 0, ARGS_OPT_FORCE_SIGNATURE},
+ {"no-check-certificate", 0, 0, ARGS_OPT_NO_CHECK_CERTIFICATE},
+ {"no_check_certificate", 0, 0, ARGS_OPT_NO_CHECK_CERTIFICATE},
{"noaction", 0, 0, ARGS_OPT_NOACTION},
{"download-only", 0, 0, ARGS_OPT_DOWNLOAD_ONLY},
{"nodeps", 0, 0, ARGS_OPT_NODEPS},
case ARGS_OPT_FORCE_SIGNATURE:
conf->force_signature = 1;
break;
+ case ARGS_OPT_NO_CHECK_CERTIFICATE:
+ conf->no_check_certificate = 1;
+ break;
case ':':
parse_err = -1;
break;
printf
("\t--force-remove Remove package even if prerm script fails\n");
printf("\t--force-checksum Don't fail on checksum mismatches\n");
+ printf("\t--no-check-certificate Don't validate SSL certificates\n");
printf("\t--noaction No action -- test only\n");
printf("\t--download-only No action -- download only\n");
printf("\t--nodeps Do not follow dependencies\n");