diff options
author | Martin Willi <martin@strongswan.org> | 2009-09-10 12:44:06 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-09-10 16:18:30 +0200 |
commit | 3ce9438b6010e6fd5f61531ae25473ea60a83cd9 (patch) | |
tree | fcd733fb577ce734edf8f3f9eacae37e498dc954 /src/pki/commands/self.c | |
parent | 6be68cc1c72ab076fbdfd05f24662519e62cfca8 (diff) | |
download | strongswan-3ce9438b6010e6fd5f61531ae25473ea60a83cd9.tar.bz2 strongswan-3ce9438b6010e6fd5f61531ae25473ea60a83cd9.tar.xz |
Use dynamic registration/usage invocation of command types
Diffstat (limited to 'src/pki/commands/self.c')
-rw-r--r-- | src/pki/commands/self.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pki/commands/self.c b/src/pki/commands/self.c index 1f1138e9c..de1761c9c 100644 --- a/src/pki/commands/self.c +++ b/src/pki/commands/self.c @@ -206,7 +206,7 @@ end: usage: san->destroy_offset(san, offsetof(identification_t, destroy)); options->destroy(options); - return command_usage(CMD_SELF, error); + return command_usage(error); } /** @@ -214,7 +214,7 @@ usage: */ static void __attribute__ ((constructor))reg() { - command_register(CMD_SELF, (command_t) { + command_register((command_t) { self, 's', "self", "create a self signed certificate", {"[--in file] [--type rsa|ecdsa]", |