Added support for iKEIntermediate flag to ipsec pki.
This commit is contained in:
parent
f29a4f1c64
commit
4bc4e8e17b
|
@ -229,6 +229,10 @@ static int issue()
|
||||||
{
|
{
|
||||||
flags |= X509_CLIENT_AUTH;
|
flags |= X509_CLIENT_AUTH;
|
||||||
}
|
}
|
||||||
|
else if (streq(arg, "ikeIntermediate"))
|
||||||
|
{
|
||||||
|
flags |= X509_IKE_INTERMEDIATE;
|
||||||
|
}
|
||||||
else if (streq(arg, "crlSign"))
|
else if (streq(arg, "crlSign"))
|
||||||
{
|
{
|
||||||
flags |= X509_CRL_SIGN;
|
flags |= X509_CRL_SIGN;
|
||||||
|
|
|
@ -133,6 +133,10 @@ static void print_x509(x509_t *x509)
|
||||||
{
|
{
|
||||||
printf("clientAuth ");
|
printf("clientAuth ");
|
||||||
}
|
}
|
||||||
|
if (flags & X509_IKE_INTERMEDIATE)
|
||||||
|
{
|
||||||
|
printf("iKEIntermediate ");
|
||||||
|
}
|
||||||
if (flags & X509_SELF_SIGNED)
|
if (flags & X509_SELF_SIGNED)
|
||||||
{
|
{
|
||||||
printf("self-signed ");
|
printf("self-signed ");
|
||||||
|
|
|
@ -212,6 +212,10 @@ static int self()
|
||||||
{
|
{
|
||||||
flags |= X509_CLIENT_AUTH;
|
flags |= X509_CLIENT_AUTH;
|
||||||
}
|
}
|
||||||
|
else if (streq(arg, "ikeIntermediate"))
|
||||||
|
{
|
||||||
|
flags |= X509_IKE_INTERMEDIATE;
|
||||||
|
}
|
||||||
else if (streq(arg, "crlSign"))
|
else if (streq(arg, "crlSign"))
|
||||||
{
|
{
|
||||||
flags |= X509_CRL_SIGN;
|
flags |= X509_CRL_SIGN;
|
||||||
|
|
Loading…
Reference in New Issue