• 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
Re: kCFStreamPropertySSLPeerCertificates issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kCFStreamPropertySSLPeerCertificates issue


  • Subject: Re: kCFStreamPropertySSLPeerCertificates issue
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 07 Aug 2013 17:42:14 -0700

On Aug 7, 2013, at 3:17 AM, Kevin Yu <email@hidden> wrote:

> Undefined symbols for architecture i386:
>   "_kCFStreamPropertySSLPeerCertificates", referenced from:

That symbol is in the CFNetwork framework on iOS. You need to update your target to link against that framework.

> when I checked the CFSocketStream.h it said the kCFStreamPropertySSLPeerCertificates is considered deprecated in Mac OS 10.6 and later.

If you look a bit above above there in the header, you’ll see:

/*
 * The following properties are considered deprecated in Mac OS 10.6 and later.
 *
 * kCFStreamPropertySSLPeerCertificates:
 *			The peer certificates are available as part of the SecTrustRef object.  See <Security/SecTrust.h>

In other words, you get the kCFStreamPropertySSLPeerTrust property, cast the result to a SecTrustRef, and call SecTrustEvaluate on that. (And you’ll need to link against Security.framework.)

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: kCFStreamPropertySSLPeerCertificates issue
      • From: Kevin Yu <email@hidden>
References: 
 >kCFStreamPropertySSLPeerCertificates issue (From: Kevin Yu <email@hidden>)

  • Prev by Date: kCFStreamPropertySSLPeerCertificates issue
  • Next by Date: Re: kCFStreamPropertySSLPeerCertificates issue
  • Previous by thread: kCFStreamPropertySSLPeerCertificates issue
  • Next by thread: Re: kCFStreamPropertySSLPeerCertificates issue
  • Index(es):
    • Date
    • Thread