• 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: Base64 encoding on Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Base64 encoding on Leopard


  • Subject: Re: Base64 encoding on Leopard
  • From: Jaime Magiera <email@hidden>
  • Date: Tue, 20 Nov 2007 14:57:15 -0500


On Nov 20, 2007, at 5:46 AM, Quinn wrote:

At 21:06 -0500 19/11/07, Jaime Magiera wrote:
- Has anyone experienced problems with this call on Leopard? It works fine on Tiger.
It seems that the function signature for Curl_base64_encode has changed between the version that shipped with 10.4 and the version that ships with 10.5. The 10.4 prototype is:

<snip>

Looking at the code snippet you posted, it seems to assume the 10.4 prototype. Hence the crash: you're not provided it with the "data" parameter.

Good eye. I didn't think to look. That would be easy enough to fix, just add an if/else for OS version. However, factoring in what's below, I'll avoid using it in favor of a public solution.


If this was an official API, I'd consider it to be a major binary compatibility bug. However, it seems that Curl_base64_encode is not a public API for libcurl. Specifically, it doesn't show up in any header that we ship with our developer tools:

Oooo. Thanks for pointing that out. This actually falls into my greater scheme of making sure my app only uses plain vanilla, public API code.


That's a good question. There are lots of different implementations in the system, but it's hard to recommend one that's truly appropriate. For something as trivial as base64, I'd probably just write it myself (or cut'n'paste the code from an appropriate source, that is, one with a permissive licence).

Thanks. A couple folks have sent me examples offlist. That's enough to get me started in understanding and writing my own.


btw I filed a bug <rdar://problem/5608839> requesting a nice, general purpose base64 encode/decode API.

That would be super-useful. Thank you Quinn.

IMPORTANT:

Thanks for the explanation and in general for taking the time.

Jaime
_______________________________________________
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


References: 
 >Base64 encoding on Leopard (From: Jaime Magiera <email@hidden>)
 >Re: Base64 encoding on Leopard (From: Quinn <email@hidden>)

  • Prev by Date: Re: Why is Leopard annoying my users?
  • Next by Date: Re: Base64 encoding on Leopard
  • Previous by thread: Re: Base64 encoding on Leopard
  • Next by thread: Re: Base64 encoding on Leopard
  • Index(es):
    • Date
    • Thread