diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-06-12 13:59:05 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-06-12 16:15:03 +0200 |
commit | 25fb9d3f4a9cf4f955f13722788d7af22d8afbef (patch) | |
tree | f18b8366c5d9884dd04742dd88a16b6b1aa2e79c /src/starter | |
parent | 9707d9db798aaef0b31ded7b3a8685bf298fa7a3 (diff) | |
download | strongswan-25fb9d3f4a9cf4f955f13722788d7af22d8afbef.tar.bz2 strongswan-25fb9d3f4a9cf4f955f13722788d7af22d8afbef.tar.xz |
starter: Print additional help texts for selected deprecated keywords.
Diffstat (limited to 'src/starter')
-rw-r--r-- | src/starter/args.c | 2 | ||||
-rw-r--r-- | src/starter/confread.c | 15 | ||||
-rw-r--r-- | src/starter/keywords.h | 2 | ||||
-rw-r--r-- | src/starter/keywords.txt | 12 |
4 files changed, 25 insertions, 6 deletions
diff --git a/src/starter/args.c b/src/starter/args.c index 36f12057b..5aaf764db 100644 --- a/src/starter/args.c +++ b/src/starter/args.c @@ -120,6 +120,7 @@ static const token_info_t token_info[] = { ARG_ENUM, offsetof(starter_config_t, setup.uniqueids), LST_unique }, { ARG_ENUM, offsetof(starter_config_t, setup.cachecrls), LST_bool }, { ARG_ENUM, offsetof(starter_config_t, setup.strictcrlpolicy), LST_strict }, + { ARG_MISC, 0, NULL /* KW_PKCS11_DEPRECATED */ }, { ARG_MISC, 0, NULL /* KW_SETUP_DEPRECATED */ }, /* conn section keywords */ @@ -165,6 +166,7 @@ static const token_info_t token_info[] = { ARG_MISC, 0, NULL /* KW_MARK_IN */ }, { ARG_MISC, 0, NULL /* KW_MARK_OUT */ }, { ARG_MISC, 0, NULL /* KW_TFC */ }, + { ARG_MISC, 0, NULL /* KW_PFS_DEPRECATED */ }, { ARG_MISC, 0, NULL /* KW_CONN_DEPRECATED */ }, /* ca section keywords */ diff --git a/src/starter/confread.c b/src/starter/confread.c index 81db70a1f..cee9e9d80 100644 --- a/src/starter/confread.c +++ b/src/starter/confread.c @@ -59,11 +59,13 @@ static bool is_deprecated(kw_token_t token, kw_list_t *kw, char *name) switch (token) { case KW_SETUP_DEPRECATED: + case KW_PKCS11_DEPRECATED: DBG1(DBG_APP, "# deprecated keyword '%s' in config setup", kw->entry->name); break; case KW_CONN_DEPRECATED: case KW_END_DEPRECATED: + case KW_PFS_DEPRECATED: DBG1(DBG_APP, "# deprecated keyword '%s' in conn '%s'", kw->entry->name, name); break; @@ -74,6 +76,19 @@ static bool is_deprecated(kw_token_t token, kw_list_t *kw, char *name) default: return FALSE; } + /* additional messages for some */ + switch (token) + { + case KW_PKCS11_DEPRECATED: + DBG1(DBG_APP, " use the 'pkcs11' plugin instead", kw->entry->name); + break; + case KW_PFS_DEPRECATED: + DBG1(DBG_APP, " PFS is enabled by specifying a DH group in the " + "'esp' cipher suite", kw->entry->name); + break; + default: + break; + } return TRUE; } diff --git a/src/starter/keywords.h b/src/starter/keywords.h index c1347dc94..c053db1d9 100644 --- a/src/starter/keywords.h +++ b/src/starter/keywords.h @@ -22,6 +22,7 @@ typedef enum { KW_UNIQUEIDS, KW_CACHECRLS, KW_STRICTCRLPOLICY, + KW_PKCS11_DEPRECATED, KW_SETUP_DEPRECATED, #define KW_SETUP_FIRST KW_CHARONDEBUG @@ -70,6 +71,7 @@ typedef enum { KW_MARK_IN, KW_MARK_OUT, KW_TFC, + KW_PFS_DEPRECATED, KW_CONN_DEPRECATED, #define KW_CONN_FIRST KW_CONN_SETUP diff --git a/src/starter/keywords.txt b/src/starter/keywords.txt index eab8bd503..238b3fda5 100644 --- a/src/starter/keywords.txt +++ b/src/starter/keywords.txt @@ -147,12 +147,12 @@ nat_traversal, KW_SETUP_DEPRECATED keep_alive, KW_SETUP_DEPRECATED force_keepalive, KW_SETUP_DEPRECATED virtual_private, KW_SETUP_DEPRECATED -pkcs11module, KW_SETUP_DEPRECATED -pkcs11initargs, KW_SETUP_DEPRECATED -pkcs11keepstate, KW_SETUP_DEPRECATED -pkcs11proxy, KW_SETUP_DEPRECATED -pfs, KW_CONN_DEPRECATED -pfsgroup, KW_CONN_DEPRECATED +pkcs11module, KW_PKCS11_DEPRECATED +pkcs11initargs, KW_PKCS11_DEPRECATED +pkcs11keepstate, KW_PKCS11_DEPRECATED +pkcs11proxy, KW_PKCS11_DEPRECATED +pfs, KW_PFS_DEPRECATED +pfsgroup, KW_PFS_DEPRECATED eap, KW_CONN_DEPRECATED leftnexthop, KW_LEFT_DEPRECATED leftsubnetwithin, KW_LEFT_DEPRECATED |