diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2014-11-09 14:38:55 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2014-11-29 14:51:16 +0100 |
commit | f673966b9fb1f2fe8b94b9377e7159f7dcc2f8c6 (patch) | |
tree | 74eeb8210e9f8a0da344cd5f95da648c2b267a18 /src/pki/commands/self.c | |
parent | 56009f2001a4678872c360d143fc3095803cb824 (diff) | |
download | strongswan-f673966b9fb1f2fe8b94b9377e7159f7dcc2f8c6.tar.bz2 strongswan-f673966b9fb1f2fe8b94b9377e7159f7dcc2f8c6.tar.xz |
Started implementing BLISS signature generation
Diffstat (limited to 'src/pki/commands/self.c')
-rw-r--r-- | src/pki/commands/self.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/pki/commands/self.c b/src/pki/commands/self.c index daefcdc10..813efb40f 100644 --- a/src/pki/commands/self.c +++ b/src/pki/commands/self.c @@ -57,7 +57,8 @@ static int self() identification_t *id = NULL; linked_list_t *san, *ocsp, *permitted, *excluded, *policies, *mappings; int pathlen = X509_NO_CONSTRAINT, inhibit_any = X509_NO_CONSTRAINT; - int inhibit_mapping = X509_NO_CONSTRAINT, require_explicit = X509_NO_CONSTRAINT; + int inhibit_mapping = X509_NO_CONSTRAINT; + int require_explicit = X509_NO_CONSTRAINT; chunk_t serial = chunk_empty; chunk_t encoding = chunk_empty; time_t not_before, not_after, lifetime = 1095 * 24 * 60 * 60; @@ -88,6 +89,11 @@ static int self() { type = KEY_ECDSA; } + else if (streq(arg, "bliss")) + { + type = KEY_BLISS; + digest = HASH_SHA512; + } else { error = "invalid input type"; @@ -407,7 +413,7 @@ static void __attribute__ ((constructor))reg() command_register((command_t) { self, 's', "self", "create a self signed certificate", - {" [--in file|--keyid hex] [--type rsa|ecdsa]", + {" [--in file|--keyid hex] [--type rsa|ecdsa|bliss]", " --dn distinguished-name [--san subjectAltName]+", "[--lifetime days] [--serial hex] [--ca] [--ocsp uri]+", "[--flag serverAuth|clientAuth|crlSign|ocspSigning|msSmartcardLogon]+", |