From 3124f259815208efaffe8ccb2dec6d745c062602 Mon Sep 17 00:00:00 2001 From: chris2511 Date: Thu, 14 Aug 2003 22:42:14 +0000 Subject: [PATCH] SmartCard Logon OID --- doc/xca.sgml | 2 +- lib/oid.cpp | 3 +++ widgets/NewX509.cpp | 7 ++++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/xca.sgml b/doc/xca.sgml index 7f994f0e..4c2751d5 100644 --- a/doc/xca.sgml +++ b/doc/xca.sgml @@ -491,7 +491,7 @@ signed by this issuer. and their revokation date. -Certificate Recokation Lists +Certificate Revokation Lists

All certificates are issued for a restricted timeperiod of validity. However it can happen that a certificate may not be used / gets invalid diff --git a/lib/oid.cpp b/lib/oid.cpp index e759aa60..5066deac 100644 --- a/lib/oid.cpp +++ b/lib/oid.cpp @@ -5,6 +5,9 @@ char *our_oids[] = { "1.3.6.1.4.1.311.20.2", "dom", "Domain Controller", "1.3.6.1.4.1.311.21.1", "MsCaV", "Microsoft CA Version", +#if OPENSSL_VERSION_NUMBER < 0x00907000L +"1.3.6.1.4.1.311.20.2.3", "msUPN", "Microsoft Universal Principal Name", +#endif NULL }; void initOIDs() { diff --git a/widgets/NewX509.cpp b/widgets/NewX509.cpp index 685c4f8a..b5addc57 100644 --- a/widgets/NewX509.cpp +++ b/widgets/NewX509.cpp @@ -93,7 +93,12 @@ int NewX509::eku_nid[EKUN_CNT] = { NID_ipsecTunnel, NID_ipsecUser, OBJ_create("1.3.6.1.5.5.8.2.2", "iKEIntermediate", - "IP security end entity") + "IP security end entity"), +#if OPENSSL_VERSION_NUMBER >= 0x00907000L + NID_msSmartcardLogin +#else + OBJ_create("1.3.6.1.4.1.311.20.2.2", "SmartCardLogon", "Smart Card Logon") +#endif }; int NewX509::dn_nid[DISTNAME_CNT] = {