• 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: Kevin Yu <email@hidden>
  • Date: Thu, 08 Aug 2013 08:55:12 +0800



Jens Alfke <email@hidden> 於 2013/8/8 上午8:42 寫道:


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.
Thanks Jens, this move resolve the compile issue!

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
So that means I should use kCFStreamPropertySSLPeerTrust to replace kCFStreamPropertySSLPeerCertificates?

Kevin

 _______________________________________________
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: Jens Alfke <email@hidden>
References: 
 >kCFStreamPropertySSLPeerCertificates issue (From: Kevin Yu <email@hidden>)
 >Re: kCFStreamPropertySSLPeerCertificates issue (From: Jens Alfke <email@hidden>)

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