91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2.59MB
    文件類型: .7z
    金幣: 1
    下載: 0 次
    發布日期: 2023-09-12
  • 語言: 其他
  • 標簽: capicom??

資源簡介

包括capicom的cab包,dll庫和在各種環境下的調用demo。

資源截圖

代碼片段和文件信息

//*****************************************************************************
//
//??THIS?CODE?AND?INFORMATION?IS?PROVIDED?“AS?IS“?WITHOUT?WARRANTY?OF?ANY?KIND
//??EITHER?EXPRESSED?OR?IMPLIED?INCLUDING?BUT?NOT?LIMITED?TO?THE?IMPLIED
//??WARRANTIES?OF?MERCHANTABILITY?AND/OR?FITNESS?FOR?A?PARTICULAR?PURPOSE.
//
//??isapiCertPolicy?by?Jim?Harkins
//
//??This?sample?code?demonstrates?how?the?Capicom?Certificate?and?Chain?objects
//??can?be?used?to?implement?a?simple?ISAPI?filter?to?enforce?additional
//??restrictions?on?Client?Certificates?used?for?an?SSL?session.
//
//??When?using?SSL?and?Client?Certificates?IIS?supports?Certificate?Trust
//??Lists?to?limit?the?Root?Certificates?used?to?authenticate?Client
//??Certificates.??In?some?applications?it‘s?desirable?to?have?finer?grained
//??control?over?which?Client?Certificates?are?accepted.
//
//??This?ISAPI?filter?uses?capicom?to?simplify?the?implementation?of?the
//??following?additional?Client?Certificate?checks:
//
//??????A?set?of?required?Extended?Key?Usage?OIDs?are?matched?in?the
//??????Client?Certificate.??In?this?example?we?check?for?“Smart?Card
//??????Logon“?but?the?same?technique?can?be?used?to?require?any
//??????EKU.?Following?accepted?practice?for?X.509?certs?if?no?EKUs
//??????are?present?the?certificate?is?assumed?good?for?all?purposes
//??????and?this?check?is?passed.
//
//??????Issuing?Certificate‘s?Thumbprint?matches?an?entry?in?a?short?list
//??????of?accepted?Thumbprints.??This?is?an?effective?and?recommended
//??????way?to?limit?accepted?Client?Certificates?to?a?specific?set?of
//??????Intermediate?issuing?authorities.
//
//??If?no?Client?Certificate?is?available?this?filter?allows?the?connection.
//??A?certificate?should?be?available?when?IIS?is?configured?to?Require?Client
//??Certificates.??But?even?secure?sites?can?allow?some?public?content?for
//??example?a?start?page?containing?information?and?instructions.??In?this?case
//??there?may?be?no?requirement?for?Client?Certificates?or?even?SLL?and?it‘s
//??appropriate?to?bypass?the?additional?checks?this?filter?implements.
//
//??This?structure?and?capicom?make?it?easy?to?implement?additional?checks.
//
//??Copyright?(C)?2002.??Microsoft?Corporation.??All?rights?reserved.
//
//*****************************************************************************

//?ISAPICERTPOLICY.CPP?-?Implementation?file?for?your?Internet?Server
//????isapiCertPolicy?Filter

#include?“stdafx.h“
#include?“isapiCertPolicy.h“
#include?“ErrorTxt.h“

#define?ARRAY_SIZE(a)?(sizeof(a)/sizeof(*(a)))

const?LPWSTR?CAPICOM_SMART_CARD_LOGON_OID_W?=?L“1.3.6.1.4.1.311.20.2.2“;
const?LPWSTR?CORP_HIGH_ASSUR_OID_W?=?L“1.3.6.1.4.1.311.42.2.1“;

const?LPWSTR?MS_INTRA_L2_USER_1_THUMBPRINT?=
????L“15B1691A542A99D7BC3724ABA68FBA7C01B2DEE1“;

const?LPWSTR?MS_INTRA_L2_USER_2_THUMBPRINT?=
????L“FA744DC332740D6BD34A708453B79026BBD92DC4“;

const?LPWSTR?MS_INTRA_L2_USER_3_THUMBPRINT?=
????L“528567A45B2D

評論

共有 條評論