Re: Help with CryptAcquireContext and Mandatory Profiles!



Jeffrey,
Thanks for the reply, it was very informative!!

I'm looking at your option 3 with the CRYPT_VERIFYCONTEXT flag, and we are actually already using that flag in our code.
CryptAcquireContext( &_cryptProvider, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT )

But it doesn't work and we still get the NTE_TEMPORARY_PROFILE error code. Our customer uses the mandatory profiles with a Citrix connection. Would that have any effect? Is it possible there is a bug in the CryptAcquireContext() method that is triggering that error when it shouldn't be?

Thanks!
nmaier



On Mon, 20 Aug 2007 04:17:50 -0500, "Jeffrey Tan[MSFT]" <jetan@xxxxxxxxxxxxxxxxxxxx> wrote:

Jeffrey



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
.



Relevant Pages

  • Re: CryptUnprotectData in DPAPI returning 0x8009000b - undocumented
    ... The "machine" flag is ignored by CryptUnprotectData. ... problem with the user password such as the user password has changed ... since the CryptProtectData function was called and the automatic recovery ... This error code is not typically returned when the "machine" flag was passed ...
    (microsoft.public.platformsdk.security)
  • RE: CryptAcquireContext fails with "ERROR_FILE_NOT_FOUND"
    ... Regular Application has the code which calls CryptAcquireContext ... I'm not using any Impersonation in my code. ... Is there any other possible reason for this error code apart from the two ...
    (microsoft.public.platformsdk.security)
  • Re: media may have changed error
    ... system will send an error code to the calling process, ... After ejecting the disk and then re-inserting ... sort of global flag is being set to let me know ...
    (microsoft.public.win32.programmer.kernel)
  • CryptAcquireContext() Failure
    ... Unprotection of auditable protected data. ... Data Description: Export Flag ... The message is generated by a call to CryptAcquireContext(). ... and compared traces from a successful and unsuccessful attempt, ...
    (microsoft.public.windowsxp.security_admin)
  • Unprotection of auditable protected data
    ... We are getting the following Event Viewer message for a particular ... Unprotection of auditable protected data. ... Data Description: Export Flag ... The message is generated by a call to CryptAcquireContext(). ...
    (microsoft.public.windowsxp.security_admin)