Microsoft KB Archive/329631

= You Cannot Validate S/MIME Messages with Cdosys.dll =

Article ID: 329631

Article Last Modified on 2/20/2007

-

APPLIES TO


 * Microsoft Windows 2000 Service Pack 1
 * Microsoft Windows 2000 Service Pack 2
 * Microsoft Windows 2000 Service Pack 1
 * Microsoft Windows 2000 Service Pack 2
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Advanced Server

-



This article was previously published under Q329631



SYMPTOMS
If you use Collaboration Data Objects (CDO) and the COM version of the Cryptography API (CAPICOM) to validate Secure MIME (S/MIME) signatures, the validation does not succeed. The following sample code demonstrates how this validation typically occurs: Sub Command1_Click (ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click Dim oCDO As New CDO.Message Dim oST As ADODB.Stream Dim sContent, sSignature As String

oST = oCDO.GetStream oST.Type = ADODB.StreamTypeEnum.adTypeText oST.LoadFromFile(&quot;Test.eml&quot;) oST.Flush

sContent =oCDO.BodyPart.BodyParts(1).GetStream.ReadText sSignature = oCDO.BodyPart.BodyParts(2).GetEncodedContentStream.ReadText

Dim oC As New CAPICOM.SignedData oC.Content = sContent oC.Verify(sSignature, True,CAPICOM.CAPICOM_SIGNED_DATA_VERIFY_FLAG.CAPICOM_VERIFY_SIGNATURE_ONLY) MsgBox(&quot;done&quot;) End Sub First, the caller requests the message content that is stored in the first body part of the message. Next, the caller requests the S/MIME signature that is stored in the second body part of the message. Then, the caller sends each body part to CAPICOM for signature validation.



Service Pack Information
To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack

Hotfix Information
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Windows 2000 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.   Date         Time   Version      Size       File name --  22-Nov-2002  22:42  6.1.3940.32  2,531,088  Cdosys.dll



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 3.



MORE INFORMATION
For additional information about how to obtain a hotfix for Windows 2000 Datacenter Server, click the article number below to view the article in the Microsoft Knowledge Base:

265173 The Datacenter Program and Windows 2000 Datacenter Server Product

Keywords: kbbug kbfix kbqfe kbwin2000sp3fix kbhotfixserver KB329631

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.