Added support for iKEIntermediate flag to ipsec pki.

This commit is contained in:
Tobias Brunner 2011-12-15 16:56:07 +01:00
parent f29a4f1c64
commit 4bc4e8e17b
3 changed files with 12 additions and 0 deletions

View File

@ -229,6 +229,10 @@ static int issue()
{
flags |= X509_CLIENT_AUTH;
}
else if (streq(arg, "ikeIntermediate"))
{
flags |= X509_IKE_INTERMEDIATE;
}
else if (streq(arg, "crlSign"))
{
flags |= X509_CRL_SIGN;

View File

@ -133,6 +133,10 @@ static void print_x509(x509_t *x509)
{
printf("clientAuth ");
}
if (flags & X509_IKE_INTERMEDIATE)
{
printf("iKEIntermediate ");
}
if (flags & X509_SELF_SIGNED)
{
printf("self-signed ");

View File

@ -212,6 +212,10 @@ static int self()
{
flags |= X509_CLIENT_AUTH;
}
else if (streq(arg, "ikeIntermediate"))
{
flags |= X509_IKE_INTERMEDIATE;
}
else if (streq(arg, "crlSign"))
{
flags |= X509_CRL_SIGN;