• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
how to cancel call to CSSM_SignData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: how to cancel call to CSSM_SignData
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Converting to ARC
  • Next by Date: Why is +[NSFileVersion(NSTemporaryCompatibility) unresolvedConflictsExistForItemAtURL:] hanging/
  • Previous by thread: Re: Converting to ARC
  • Next by thread: Re: how to cancel call to CSSM_SignData
  • Index(es):
    • Date
    • Thread