Added support for msSmartcardLogon EKU
This commit is contained in:
@@ -251,6 +251,10 @@ static int issue()
|
||||
{
|
||||
flags |= X509_OCSP_SIGNER;
|
||||
}
|
||||
else if (streq(arg, "msSmartcardLogon"))
|
||||
{
|
||||
flags |= X509_MS_SMARTCARD_LOGON;
|
||||
}
|
||||
continue;
|
||||
case 'f':
|
||||
if (!get_form(arg, &form, CRED_CERTIFICATE))
|
||||
@@ -549,7 +553,7 @@ static void __attribute__ ((constructor))reg()
|
||||
{"[--in file] [--type pub|pkcs10] --cakey file|--cakeyid hex",
|
||||
" --cacert file [--dn subject-dn] [--san subjectAltName]+",
|
||||
"[--lifetime days] [--serial hex] [--ca] [--pathlen len]",
|
||||
"[--flag serverAuth|clientAuth|crlSign|ocspSigning]+",
|
||||
"[--flag serverAuth|clientAuth|crlSign|ocspSigning|msSmartcardLogon]+",
|
||||
"[--crl uri [--crlissuer i]]+ [--ocsp uri]+ [--nc-permitted name]",
|
||||
"[--nc-excluded name] [--policy-mapping issuer-oid:subject-oid]",
|
||||
"[--policy-explicit len] [--policy-inhibit len] [--policy-any len]",
|
||||
|
||||
@@ -140,6 +140,10 @@ static void print_x509(x509_t *x509)
|
||||
{
|
||||
printf("iKEIntermediate ");
|
||||
}
|
||||
if (flags & X509_MS_SMARTCARD_LOGON)
|
||||
{
|
||||
printf("msSmartcardLogon ");
|
||||
}
|
||||
if (flags & X509_SELF_SIGNED)
|
||||
{
|
||||
printf("self-signed ");
|
||||
|
||||
@@ -235,6 +235,10 @@ static int self()
|
||||
{
|
||||
flags |= X509_OCSP_SIGNER;
|
||||
}
|
||||
else if (streq(arg, "msSmartcardLogon"))
|
||||
{
|
||||
flags |= X509_MS_SMARTCARD_LOGON;
|
||||
}
|
||||
continue;
|
||||
case 'f':
|
||||
if (!get_form(arg, &form, CRED_CERTIFICATE))
|
||||
@@ -406,7 +410,7 @@ static void __attribute__ ((constructor))reg()
|
||||
{" [--in file|--keyid hex] [--type rsa|ecdsa]",
|
||||
" --dn distinguished-name [--san subjectAltName]+",
|
||||
"[--lifetime days] [--serial hex] [--ca] [--ocsp uri]+",
|
||||
"[--flag serverAuth|clientAuth|crlSign|ocspSigning]+",
|
||||
"[--flag serverAuth|clientAuth|crlSign|ocspSigning|msSmartcardLogon]+",
|
||||
"[--nc-permitted name] [--nc-excluded name]",
|
||||
"[--policy-map issuer-oid:subject-oid]",
|
||||
"[--policy-explicit len] [--policy-inhibit len] [--policy-any len]",
|
||||
|
||||
Reference in New Issue
Block a user