How to get the specific error from the result of sectrustevaluate()

I am using SectrustEvaluate(trust,result) function to test the server certificate against the root ca installed in keychain.
Result of server certificate validation in case if comes as recoverable faliure how may i know what was the reason which causing it to recoverable failure.
I want to throw the specific error to UI to know why server certificate evaluation failed.
No API's available in ios , Some API's are there available in MAC.
Please Advise.

If you are on iOS I think you are out of luck.  See red text under kSecTrustResultRecoverableTrustFailure.
https://developer.apple.com/library/ios/documentation/Security/Reference/certifk eytrustservices/Reference/reference.html#//apple_ref/c/func/SecTrustEvaluate
The way you handle this depends on the OS.
In iOS, you should typically refuse the certificate. However, if you are performing signature validation and you know when the message was originally received, you should check again using that date to see if the message was valid when you originally received it.
In OS X, you can call the SecTrustGetTrustResult function to get more information about the results of the trust evaluation, or the SecTrustGetCssmResult function to get information about the evaluation in a form that can be passed to CSSM functions.

Similar Messages

  • HT1349 iTunes will not start on my PC. I get a runtime error from the Visual C== runtime library when iTunesHelper.exe is started. The message states the application attempted to load the library incorrectly. How is the problem to be resolved?

    iTunes will not start on my PC. I get a runtime error from the Visual C++ runtime library when iTunesHelper.exe is started. The message states the application attempted to load the library incorrectly. How is the problem to be resolved?

    Click here and follow the instructions.
    (99035)

  • How to get first 10 records from the database using JSP

    i want ot get first 10 records from the database and then after clicking the next button in the page,it must show the next precceding 10 records from the database.i am getting the first 10 records .but how to post to the same page to get another preceeding 10 record.

    Search the forums - this has been asked a lot. I usually recommend experimenting with tops and order bys until you're satisfied.
    Kind regards,
      Levi

  • How to get ther servlet name from the Httprequest / servletContext

    Hi,
    How can I get the servlet name from the Http Request / Servlet conext?
    Arthik

    I have a requirement to call the business logic either in local server / external server.
    Local / External server
    The original / main request is made to the server from the client and from the server if the main request requires some resource (second request from server side) available in the external server then I need to make a URL connection. If the requested resource is the local resource then I need to by-pass the HTTP call. So I need to verify the server name , port with the originally requested server.Then I need to check if the request servelt is available in local or not.
    Can you please help me.

  • ADF BC - How to get validation picked up from the database.

    Is there a way the ADF BC can be created so it contains the check constraints from the database?
    I assume if it did, it would pre-fill the "validation" branch in the Entity Object Editor.

    Frank,
    Thank you very much for your reply. I've set "valuePassThrough" property of the dropdownlist to true. In the valueChangeListener, my code looks like this.
    public void TD_valueChangeListener(ValueChangeEvent valueChangeEvent) {
    System.out.println("+++++++++");
    System.out.println("TD_valueChangeListener");
    Number n = null;
    BindingContainer bc = this.getBindings();
    if(bc != null){
    System.out.println("bc is not null");
    //get the selected TD
    FacesCtrlListBinding TdIter = (FacesCtrlListBinding)bc.get("LandLegalView1Td");
    if(TdIter != null){ 
    System.out.println("TdIter is not null");
    if(valueChangeEvent.getNewValue() != null)
    try{n = new Number(valueChangeEvent.getNewValue());}
    catch(Exception e){
    e.getMessage();
    System.out.println("selected TD index="+n);
    //Object td = TdIter.getAttributeFromRow(n.intValue(), "Td");
    Object td = TdIter.getAttribute(n.intValue());
    System.out.println("real value of td=" + td);
    }else{
    System.out.println("TD is null");
    }else{
    System.out.println("TdIter is null");
    My question here is: I tried two ways of getting the real value of the new selected value. One is "Object td = TdIter.getAttributeFromRow(n.intValue(), "Td");". The other is "Object td = TdIter.getAttribute(n.intValue());". None of them give me the new selected value but the old value. Did I do anything wrong?
    Regards,
    Annie

  • How to get Original Message ID from the MDN of Acknowledgment?

    Hi,
    Here is the usecase...
    Host Trading Partner: ABCHost (Host)
    Trading Partner: XYZPartner
    Transport Protocol: HTTP1.1
    Exchange Protocol: AS2
    Business Protocol: Custom Document over Internet
    There are 1000s of messages sent via B2B to the Trading partner and the Acknowledgement is received. Now that the Trading Partner system receives a lot of messages per day, they are asking us to give them the MDN Ids from the Acknowledgment they sent in order to find the transaction.
    Is there a way to generate a report to do that using the Timestamp, Business Action, Sending/Host Trading Partner, AS2 Identifiers etc.?
    If not thru' the B2B Console, is there a way to write a query to run on the backend to generate the report?
    Thanks
    Bala

    Hi Bala,
    You can see the details of MDN in the B2B repository in the view "b2b_instancemessage" or in the table "tip_businessmessage_rt".
    You can refer InstanceMessageUtil (http://download.oracle.com/docs/cd/B14099_19/integrate.1012/b19324/oracle/tip/adapter/b2b/utility/InstanceMessageUtil.html).
    Rgds,
    Nitesh Jain
    [email protected]

  • How to print a specific page from the internet

    I have tried to print a specific page, and get about seven pages that are linked to it, without
    seeing the specific page I wanted printed out. The page settings under printer only lists header and footer
    info, and no choices to print only this page or frame. There is no way to print  one specific page on this printer?
    I always was able to do this  with the Epson printer I just replaced, but unable to with this printer.
    Please help! There must be a way to do this when printing from the internet. Thanks for any help.

    deezire
    Welcome to the HP Community Forum.
    I don't have any idea what you are trying to print, nor do I wish to know.  Smiling.
    The key may be to control this in Print Preview like you would with most things when you are printing from a Browser.
    Manage Print Output with Print Preview
    ========================================================================
    Depending on which browser you are using, you might also be able to make use of Smart Print:
    Downloads and Information:
    HP Printing Software
    Scroll down > look on the right side of the page under Web Page Printing for the HP Smart Print download
    How-To:
    Smart Print Help and FAQ
    Includes: How to update your installed version of Smart Print:
    #6: How do I get the latest version of Smart Print?
    Smart Print updates automatically using the default settings. You can choice to update manually by selecting the "?" on the Smart Print Preview/Print bar located in the upper left corner of Smart Print. Select the Updates tab to get the latest version.
    Click the Kudos Thumbs-Up to say Thank You!
    And...Click Accept as Solution when my Answer provides a Fix or Workaround!
    I am pleased to provide assistance on behalf of HP. I do not work for HP. 
    Kind Regards,
    Dragon-Fur

  • How to pull a Specific files from the local path using SSIS package

    Hi Friends,
    I have 15 Dealers files .With the Files name as follows
    1. ''ACTEST00001_20141112_0408_INV.TXT''
    2. ''ACTEST00002_20141112_0408_INV.TXT''
    I will get these files through FTP on Daily basis with changes on date alone.
    I will have 4 files for each dealers.like INV,SERVICE,SALES,APPOINTMENT.
    SO i need to fetch a particular dealer with particular date.
    I need to create this scenario in SSIS package.Please suggest me how to create this and what are all the Tasks i need to use to implement this process.
    Arunraj Kumar

    http://microsoft-ssis.blogspot.jp/2011/08/foreach-ftp-file-enumerator.html
    http://www.bidn.com/blogs/MikeDavis/ssis/559/ssis-skip-certain-files-in-a-for-each-loop
    http://www.sqlis.com/sqlis/post/Looping-over-files-with-the-Foreach-Loop.aspx
    http://www.rad.pasfu.com/index.php?/archives/22-Looping-through-specific-files-SSIS.html
    http://www.mssqltips.com/sqlservertip/1641/get-list-of-files-from-an-ftp-server-in-sql-server-integration-services/

  • How to get file input stream from the client machine by JSF Fileupload API?

    Dear Friends,
    How to get the file input stream from the client machine by JSF HtmlFileupload or fileupload API. At present, if i execute the file upload code in the client machine, it is able to get the local path of the file and looking for the file in server machine. So i am getting FileNotFoundException.
    E.g., If a file is located at client machine at following location means "C:\Test\Test.txt",
    uploadClass.getFileuploadComponent().getFilename().toString() returns "C:\Test\Test.txt". But it is looking for that file in server and throwing FileNotFoundException.
    Please post your replies soon.
    Thanks,
    JP

    Depends on which version of JSF you're using. If JSF 1.2, I wouldn't even bother trying to hack this into JSF itself unless you can use something like Seam 2 or richfaces.
    http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_fileUpload.html
    http://docs.jboss.org/seam/2.2.1.CR3/reference/en-US/html/controls.html#d0e29259 (look for s:fileUpload)
    But if I were you, a simple non-jsf form with a servlet works best for taking file uploads.
    As for JSF 2.0, there are other ways of getting it done.
    http://balusc.blogspot.com/2009/12/uploading-files-with-jsf-20-and-servlet.html

  • How to get a specific layout with the available layout managers?

    Hi
    Not done java GUI's (approximately 5 and a half years) for a while (I havn't even touched java for ages until a few months ago), and I am a little embarrased by how much I have forgotten.
    After tring unsuccessfully several times with TableLayouts and GridBagLayouts to produce this [ [http://i32.tinypic.com/fl94kp.png] ] sort of layout, I have decided I am either being incredibly stupid, or It's a rather difficult thing to do.
    (Sorry about the crudeness of the drawing)
    Please can someone point me on the right track as to what combination of layout managers + components I should be using to achive this, or even be super kind and post a code snippet for it.
    Preferably, I would like to use just the default layout manages / components that come with java, which will allow me to continue working on the GUI in netbeans without it complaining, but I'll use external libraries if absolutely nesecarry.
    Thanks
    A completely unrelated side note, but where the heck have all my past posts and dukes gone. :(
    Edited by: DarthCrap on Aug 2, 2010 5:14 PM

    Yes, A BorderLayout did solve my problems. It appears I was being stupid after all. :)
    @Encephalopathic. Using a gridbaglayout does indeed help with the centering issue for the smaller panel on the right. I had just worked that out myself when you posted. I had been reluctant to try the gridbaglayout for that, because it caused me a load of pain when I tried using it for the original problem.
    Thanks

  • How to get Fennec full screen from the android project's source code?

    Hi,
    First and foremost, I'm sure this was not the proper category to post that question but I couldn't really figure out a better one. Hopefully you'll forward it to a better place.
    We would like to take the advantages of Fennec with out HTML5 framework by wrapping it into a somewhat WebView like you can do on Android. The native implementation of the webview on Android turns out to be very disappointing so far whereas Fennec runs seamlessly.
    Could you recommend us any tips to do that properly from the Fennec's Android app project?
    Basically we just want to be able to call sort of a new FennecWebView() class instance in our code (instead of the formerly new WebView() ) that will run full-screen and won't call any further things such as, bookmark manager, setting. We just want to scale this down to the very strict minimum in order to run our Canvas framework in a native app thanks to the Fennec's engine.
    Thank you very much!
    BR,
    Armand

    I've seen some interest in this from others. It was suggested that they build a web app manifest.
    https://developer.mozilla.org/en-US/docs/Apps/Getting_Started
    https://hacks.mozilla.org/2013/01/join-us-for-firefox-os-app-days/

  • How to get time specification detail from database

    Dear All,
    How can I get the time specification detail from data base?
    Time specification is a 32 bit hexadecimal no type guid_32.
    Function wfd_timespec_reload provide the modified time specification detail.
    FUNCTION wfd_timespecs_reload
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_LOGSYS) TYPE  LOGSYS
    *"     VALUE(I_AWTYP) TYPE  WFD_AWTYP
    *"     VALUE(IT_TIMESPEC_KEYS) TYPE  WFD_KEY_TAB
    *"  EXPORTING
    *"     VALUE(ET_TIMESPEC_DETAILS) TYPE  WFD_TIMESPEC_TAB
    *"     VALUE(ET_INVALID_TIMESPECS) TYPE  WFD_KEY_TAB
    *"     VALUE(ET_CHANGED_TIMESPEC_KEYS) TYPE  WFD_KEY_TAB
    *"     VALUE(ET_RETURN) TYPE  BAPIRET2_T
    This function take time spec from data base not from cache(buffer) so provide the modified time spec in the same session.
    I need any newly created time specification detail also. So I can show all the time spec detail in my function module for any user in the same session.
    Can anyone provide the sample code for it?
    Thanks,
    Anup Garg

    Yes I can see the pattern.
    When I get the set of numbers from database UI doesn't know what is the the list of numbers database has. I need to choose some next available number that is not in database. In the list that u are talking about next available number is 7. Its something similar to when we try to create any mailid, while registration it gives some default id which is not existing which user can choose to create his mailid. How can I get similar feature?

  • How to get your $200 back from the price drop.

    Many of you likely paid with a credit card and many of the credit card companies have a price protection policy. I know american express and some mastercards do. Basically if you buy a product and the price goes down within 60 or 90 days depending on the credit card company, you get back the price difference. I know for mastercard they will refund up to $250. Try that out.

    I just got off the phone with my credit card company (ATT Universal) and they have confirmed that they do indeed honor "retail purchase protection." If you have purchased an item and the merchant drops the price within 60 days, then you can obtain a refund of up to $250.
    To all of us jilted Apple-lovers, I would suggest this course of action to resolve if possible. It's one thing to have a lone customer whining to an assistant manager of an Apple store, it's another thing to have a room full of lawyers for credit card companies in an Apple board room asking Apple how it plans to resolve the large numbers of refunds that the credit card companies were forced to pay out.
    Good luck, all!

  • How to get rid of stuff from the hard drive

    Our family iMac, with a 500GB hard drive, has only 5 GB of space left. Is there a quick, efficient way to get rid of duplicate stuff, large files, unused programs that just take up space?

    take a look @ [WhatSize|http://www.id-design.com/software/whatsize>.
    also, here's some reads to peruse:
    Your Mac needs adequate hard drive space to operate normally. How full can a drive be before it's too full? There is no hard and fast rule that says “X” amount or “%” of free drive space is needed. A low amount of RAM requires more drive space for Virtual Memory’s swap files.
    Problems from insufficient RAM and free hard disk space are discussed in this link
    http://www.thexlab.com/faqs/lackofram.html
    Here’s some general guidelines for minimum hard drive free space:
    1. As a general rule, your available space should be 5GB as an absolute minimum as it generally requires that much free space to perform an Archive and Install of Mac OS X and still preserve some free space for VM swap files.
    2. Some say that your hard drive should have at least 5% of it's capacity available for use. Still others say 10% to 15%. If you routinely process complex graphics and videos, even more space is required.
    Look at these links about freeing up more space.
    Where did my disk space go?
    _*http://www.macfixitforums.com/showflat.php?Cat=&Board=Forum38&Number=770243*_
    Download & use WhatSize described in this link or Disk Inventory X @ _*http://www.derlien.com/*_
    Freeing space on your Mac OS X startup disk
    _*http://www.thexlab.com/faqs/freeingspace.html*_
    Amazing Disappearing Drive Space
    _*http://www.pinkmutant.com/articles/TigerMisc.html*_
    Increase HD Free Space
    _*http://macosx.com/forums/howto-faqs/275191-how-easily-increase-hd-free-space-lap top.html*_
    How to free up my disk space
    http://www.macmaps.com/diskfull.html
    JGG

  • How to Get a transformation Error from a previous step in cc BPM

    Hello gurus!
    I have an important situation, in a BPM step I make a SendSync Call, if there is an error, it goes to the exception branch, and then I do a transformation step (to assign some values to an Idoc) and then I send the Idoc to an R3 system to inform the error.
    Sometimes, for example in the sync call throws this error: (that can be seen in the abap monitor)
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Inbound Message --> <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code area="MESSAGE">GENERAL</SAP:Code><SAP:P1/><SAP:P2/><SAP:P3/><SAP:P4/><SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.net.UnknownHostException: safcc.pfc.gov.tt</SAP:AdditionalText><SAP:Stack/><SAP:Retry>M</SAP:Retry></SAP:Error>
    My need is to get the error message,and to map it in an idoc field (with an UDF in the transformation exception branch for example), the error is exactly in this part of the result:
    <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.net.UnknownHostException: safcc.pfc.gov.tt</SAP:AdditionalText>
    Is there any way to achieve this?
    Thanks in advance !
      Juan.

    You wont be able to get the error details....just an indication that an error has occured can be obtained (the exception branch)...no error text can be extracted.
    Regards,
    Abhishek.

Maybe you are looking for

  • When you buy a macbook pro does it come with all the software you need

    when i purchase a macbook pro with retina display. will it come with all the software i need

  • IWeb will not publish to Mobile Me

    I made several changes to our iWeb site last night and have published to the default Mobile Me location. While everything seems to publish correctly it obviously isn't happening. All the changed page icons in iWeb remain red instead of turning to the

  • Oracle CEP and JDBC Adapter

    I am using Oracle CEP 10g on WIndows. I wrote the following code on CEP: OracleDataSource ods = new OracleDataSource(); ods.setURL("jdbc:oracle:thin:scott/[email protected]:1521/orcl"); Connection conn = ods.getConnection(); // Check for the existenc

  • Final IV Indicator Check/Uncheck in PO Change results in PO Print

    Hi In ME22N when i check/uncheck the Final Invoice Indicator..... a new message with green Indicator is generated which is as well generating PO Print, inspite of removing Print relevant Changes for EKPO - EREKZ(Final IV Indicator) in Configuration.

  • The new retina display is insanity!

    The new retina display from the iphone is just insanity. but also is the variety of the wallpapers for it very big. but i don't want to choose one of it. is it possible in future that apple makes it that i can choose more wallpaper which change? sorr