Yes you are right. It is available on the explicit function call. However when you are specifying private key to use via KeyName in template key loading is done for you. Hence the need for the callback.
Wouter responded separately saying it is CSP specific, not always the same, and not available in all version of Windows. Hence he didn't do one. Can NSS do this ? It has the same challenge with private keys loaded from NSS database and specified by KeyName in templates ? Ed -----Original Message----- From: Aleksey Sanin [mailto:[EMAIL PROTECTED] Sent: December 16, 2005 3:12 PM To: [EMAIL PROTECTED] Cc: xmlsec@aleksey.com Subject: Re: [xmlsec] Password Callback I believe in xmlsec you should be able specify callback in the function call (e.g. read key from file). However, I don't know if xmlsec-mscrypto or mscrypto itself supports it or not. Aleksey Edward Shallow wrote: > Hi Aleksey, > > Is there an equivalent password callback that is similar in > functionality to the xmlsec xmlSecErrorsSetCallback ? > > I am using private keys with passwords loaded by name from the MS > Crypto Store. At run time the Windows password prompt dialog box pops > up. I would like to be able to specify/set a password callback which > would take a string argument and return a password. > > Is this possible with mscrypto ? If not is there another way to do this ? > > Ed > > > _______________________________________________ > xmlsec mailing list > xmlsec@aleksey.com > http://www.aleksey.com/mailman/listinfo/xmlsec _______________________________________________ xmlsec mailing list xmlsec@aleksey.com http://www.aleksey.com/mailman/listinfo/xmlsec