• 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
URLAccessManager and SSL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

URLAccessManager and SSL


  • Subject: URLAccessManager and SSL
  • From: Sandeep <email@hidden>
  • Date: Fri, 21 Feb 2003 14:52:55 +0530

Hi everybody

In one of my carbon projects, I need to have a secure connection to a site.

Carbon documentation for URLAccessManager says that it supports secure
Hypertext Transfer Protocol (HTTPS). But I could not connect to a secure
server (e.g. https://connect.apple.com/) using URLAccessManager.
I followed the following steps:

1. Check for the availability of URLAccessManager.
2. Create a URLReference.
3. Set the property kURLIsSecure.

OSStatus err = URLSetProperty(urlRef, kURLIsSecure, true, sizeof(Boolean));

The error code returned was -30778, which is kURLUnknownPropertyError.

4. Since this call failed, I then tried to set the property
kURLSSLCipherSuite.

OSStatus err = URLSetProperty(urlRef, kURLSSLCipherSuite,
SSL_RSA_WITH_NULL_MD5, sizeof(UInt16));

Again the error code returned was -30778, which is kURLUnknownPropertyError.

5. As the previous steps failed I tried the https url directly hoping that
URLAccessManager would take care of SSL. But it replies with an error 3SSL
required2.

I have searched the web and many mailing lists including 3Macintosh Network
Programming2 mailing list, but without a solution for using URLAccessManager
to connect to a site over SSL.

Has anybody used URLAccessManager for a secure connection. If so, could you
please provide me with a sample code or point me to some URL/document which
explains how to use URLAccessManager for a secure connection.

TIA

With regards

Sandeep


--------------------------------------------------------------
Robosoft Technologies - Partners in Product Development
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: FW: Open Transport file transfers
  • Next by Date: configd and ppp
  • Previous by thread: Re: FW: Open Transport file transfers
  • Next by thread: configd and ppp
  • Index(es):
    • Date
    • Thread