how to cancel call to CSSM_SignData
how to cancel call to CSSM_SignData
- Subject: how to cancel call to CSSM_SignData
- From: Rajendran P <email@hidden>
- Date: Thu, 29 Dec 2011 23:53:42 +0530 (IST)
I have multithreaded App which uses the certificate . the call to CSSM_SignData function invokes the ( SecurityAgent - keychains ) prompt for keychain password . the call to CSSM_SignData is blocking till the user responds to prompts (the current thread is blocked). i need to cancel the prompts on few scenarios :( . how to cancel the prompts through another thread ? .
crtn = CSSM_SignData(sigHand,
text,
1,
CSSM_ALGID_NONE,
sig);
currently i have an apple script doing this job for me , i am not an expert in apple script and certainly prefer cpp or obj
tell application "System Events"
set theWindows to windows of process "SecurityAgent"
repeat with theWindow in theWindows
(every UI element of group 1 of theWindow whose name contains "myapp")
tell theWindow
set theStattext to (every static text of theWindow)
if (theStattext count) > 0 then
if button 1 of sheet 1 of theWindow exists then
click button 1 of sheet 1 of theWindow
end if
if button 2 of group 1 exists then
click button 2 of group 1
return
end if
end if
end tell
end repeat
end tell
P.Rajendran or Raju
(for further details contact
me )
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden