فهرست منبع

2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Added `https' tag to help option category.  Added https tag to
	--ca-certificate, --certificate, --check-certificate and
	--private-key option.
	* src/OptionHandlerFactory.cc
	* src/help_tags.h
	* src/option_processing.cc
Tatsuhiro Tsujikawa 17 سال پیش
والد
کامیت
fa882f3240
4فایلهای تغییر یافته به همراه23 افزوده شده و 6 حذف شده
  1. 9 0
      ChangeLog
  2. 6 1
      src/OptionHandlerFactory.cc
  3. 1 0
      src/help_tags.h
  4. 7 5
      src/option_processing.cc

+ 9 - 0
ChangeLog

@@ -1,3 +1,12 @@
+2008-12-03  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Added `https' tag to help option category.  Added https tag to
+	--ca-certificate, --certificate, --check-certificate and
+	--private-key option.
+	* src/OptionHandlerFactory.cc
+	* src/help_tags.h
+	* src/option_processing.cc
+
 2008-12-02  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Changed the package name from `aria2c' to `aria2' in order to fix

+ 6 - 1
src/OptionHandlerFactory.cc

@@ -434,6 +434,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
 				   (PREF_CA_CERTIFICATE,
 				    TEXT_CA_CERTIFICATE));
     op->addTag(TAG_HTTP);
+    op->addTag(TAG_HTTPS);
     handlers.push_back(op);
   }
   {
@@ -441,6 +442,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
 				   (PREF_CERTIFICATE,
 				    TEXT_CERTIFICATE));
     op->addTag(TAG_HTTP);
+    op->addTag(TAG_HTTPS);
     handlers.push_back(op);
   }
   {
@@ -449,6 +451,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
 				    TEXT_CHECK_CERTIFICATE,
 				    V_FALSE));
     op->addTag(TAG_HTTP);
+    op->addTag(TAG_HTTPS);
     handlers.push_back(op);
   }
   {
@@ -525,6 +528,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
 				   (PREF_PRIVATE_KEY,
 				    TEXT_PRIVATE_KEY));
     op->addTag(TAG_HTTP);
+    op->addTag(TAG_HTTPS);
     handlers.push_back(op);
   }
   {
@@ -952,10 +956,11 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
 				   ("help",
 				    TEXT_HELP,
 				    TAG_BASIC,
-				    StringFormat("%s,%s,%s,%s,%s,%s,%s,all",
+				    StringFormat("%s,%s,%s,%s,%s,%s,%s,%s,all",
 						 TAG_BASIC,
 						 TAG_ADVANCED,
 						 TAG_HTTP,
+						 TAG_HTTPS,
 						 TAG_FTP,
 						 TAG_METALINK,
 						 TAG_BITTORRENT,

+ 1 - 0
src/help_tags.h

@@ -38,6 +38,7 @@
 #define TAG_BASIC "basic"
 #define TAG_ADVANCED "advanced"
 #define TAG_HTTP "http"
+#define TAG_HTTPS "https"
 #define TAG_FTP "ftp"
 #define TAG_METALINK "metalink"
 #define TAG_BITTORRENT "bittorrent"

+ 7 - 5
src/option_processing.cc

@@ -33,6 +33,13 @@
  */
 /* copyright --> */
 #include "common.h"
+
+#include <cstdlib>
+#include <cstring>
+#include <fstream>
+#include <sstream>
+#include <iostream>
+
 #include "Option.h"
 #include "prefs.h"
 #include "OptionParser.h"
@@ -46,11 +53,6 @@
 #include "File.h"
 #include "StringFormat.h"
 #include "OptionHandlerException.h"
-#include <cstdlib>
-#include <cstring>
-#include <fstream>
-#include <sstream>
-#include <iostream>
 
 extern char* optarg;
 extern int optind, opterr, optopt;