mirror of
https://github.com/strongswan/strongswan.git
synced 2025-12-08 00:00:29 -05:00
Added ASN debug group to log low-level encoding/decoding (ASN.1, X.509).
This will allow us to remove quite some clutter from the LIB debug group for higher debug levels.
This commit is contained in:
parent
c17f6f96e2
commit
54d096a712
@ -1315,7 +1315,7 @@ A comma separated list containing type/level-pairs may
|
|||||||
be specified, e.g:
|
be specified, e.g:
|
||||||
.B dmn 3, ike 1, net -1.
|
.B dmn 3, ike 1, net -1.
|
||||||
Acceptable values for types are
|
Acceptable values for types are
|
||||||
.B dmn, mgr, ike, chd, job, cfg, knl, net, enc, lib, tls, tnc, imc, imv, pts
|
.B dmn, mgr, ike, chd, job, cfg, knl, net, asn, enc, lib, tls, tnc, imc, imv, pts
|
||||||
and the level is one of
|
and the level is one of
|
||||||
.B -1, 0, 1, 2, 3, 4
|
.B -1, 0, 1, 2, 3, 4
|
||||||
(for silent, audit, control, controlmore, raw, private). By default, the level
|
(for silent, audit, control, controlmore, raw, private). By default, the level
|
||||||
|
|||||||
@ -833,6 +833,9 @@ IPsec/Networking kernel interface
|
|||||||
.B net
|
.B net
|
||||||
IKE network communication
|
IKE network communication
|
||||||
.TP
|
.TP
|
||||||
|
.B asn
|
||||||
|
Low-level encoding/decoding (ASN.1, X.509 etc.)
|
||||||
|
.TP
|
||||||
.B enc
|
.B enc
|
||||||
Packet encoding/decoding encryption/decryption operations
|
Packet encoding/decoding encryption/decryption operations
|
||||||
.TP
|
.TP
|
||||||
|
|||||||
@ -426,7 +426,7 @@ static void usage(const char *msg)
|
|||||||
" [--version]\n"
|
" [--version]\n"
|
||||||
" [--use-syslog]\n"
|
" [--use-syslog]\n"
|
||||||
" [--debug-<type> <level>]\n"
|
" [--debug-<type> <level>]\n"
|
||||||
" <type>: log context type (dmn|mgr|ike|chd|job|cfg|knl|net|enc|tnc|imc|imv|pts|tls|lib)\n"
|
" <type>: log context type (dmn|mgr|ike|chd|job|cfg|knl|net|asn|enc|tnc|imc|imv|pts|tls|lib)\n"
|
||||||
" <level>: log verbosity (-1 = silent, 0 = audit, 1 = control,\n"
|
" <level>: log verbosity (-1 = silent, 0 = audit, 1 = control,\n"
|
||||||
" 2 = controlmore, 3 = raw, 4 = private)\n"
|
" 2 = controlmore, 3 = raw, 4 = private)\n"
|
||||||
"\n"
|
"\n"
|
||||||
@ -497,6 +497,7 @@ int main(int argc, char *argv[])
|
|||||||
{ "debug-cfg", required_argument, &group, DBG_CFG },
|
{ "debug-cfg", required_argument, &group, DBG_CFG },
|
||||||
{ "debug-knl", required_argument, &group, DBG_KNL },
|
{ "debug-knl", required_argument, &group, DBG_KNL },
|
||||||
{ "debug-net", required_argument, &group, DBG_NET },
|
{ "debug-net", required_argument, &group, DBG_NET },
|
||||||
|
{ "debug-asn", required_argument, &group, DBG_ASN },
|
||||||
{ "debug-enc", required_argument, &group, DBG_ENC },
|
{ "debug-enc", required_argument, &group, DBG_ENC },
|
||||||
{ "debug-tnc", required_argument, &group, DBG_TNC },
|
{ "debug-tnc", required_argument, &group, DBG_TNC },
|
||||||
{ "debug-imc", required_argument, &group, DBG_IMC },
|
{ "debug-imc", required_argument, &group, DBG_IMC },
|
||||||
|
|||||||
@ -26,6 +26,7 @@ ENUM(debug_names, DBG_DMN, DBG_LIB,
|
|||||||
"CFG",
|
"CFG",
|
||||||
"KNL",
|
"KNL",
|
||||||
"NET",
|
"NET",
|
||||||
|
"ASN",
|
||||||
"ENC",
|
"ENC",
|
||||||
"TNC",
|
"TNC",
|
||||||
"IMC",
|
"IMC",
|
||||||
@ -44,6 +45,7 @@ ENUM(debug_lower_names, DBG_DMN, DBG_LIB,
|
|||||||
"cfg",
|
"cfg",
|
||||||
"knl",
|
"knl",
|
||||||
"net",
|
"net",
|
||||||
|
"asn",
|
||||||
"enc",
|
"enc",
|
||||||
"tnc",
|
"tnc",
|
||||||
"imc",
|
"imc",
|
||||||
|
|||||||
@ -48,6 +48,8 @@ enum debug_t {
|
|||||||
DBG_KNL,
|
DBG_KNL,
|
||||||
/** networking/sockets */
|
/** networking/sockets */
|
||||||
DBG_NET,
|
DBG_NET,
|
||||||
|
/** low-level encoding/decoding (ASN.1, X.509 etc.) */
|
||||||
|
DBG_ASN,
|
||||||
/** message encoding/decoding */
|
/** message encoding/decoding */
|
||||||
DBG_ENC,
|
DBG_ENC,
|
||||||
/** trusted network connect */
|
/** trusted network connect */
|
||||||
|
|||||||
@ -393,7 +393,7 @@ static void exit_usage(char *error)
|
|||||||
printf(" where: START and optional END define the clients source IP\n");
|
printf(" where: START and optional END define the clients source IP\n");
|
||||||
printf(" Set loglevel for a logging type:\n");
|
printf(" Set loglevel for a logging type:\n");
|
||||||
printf(" stroke loglevel TYPE LEVEL\n");
|
printf(" stroke loglevel TYPE LEVEL\n");
|
||||||
printf(" where: TYPE is any|dmn|mgr|ike|chd|job|cfg|knl|net|enc|tnc|imc|imv|pts|tls|lib\n");
|
printf(" where: TYPE is any|dmn|mgr|ike|chd|job|cfg|knl|net|asn|enc|tnc|imc|imv|pts|tls|lib\n");
|
||||||
printf(" LEVEL is -1|0|1|2|3|4\n");
|
printf(" LEVEL is -1|0|1|2|3|4\n");
|
||||||
printf(" Show connection status:\n");
|
printf(" Show connection status:\n");
|
||||||
printf(" stroke status\n");
|
printf(" stroke status\n");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user