INSTALL.MacOS 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. OpenSSL - Port To The Macintosh
  2. ===============================
  3. Thanks to Roy Wood <roy@centricsystems.ca> initial support for MacOS (pre
  4. X) is now provided. "Initial" means that unlike other platforms where you
  5. get an SDK and a "swiss army" openssl application, on Macintosh you only
  6. get one sample application which fetches a page over HTTPS(*) and dumps it
  7. in a window. We don't even build the test applications so that we can't
  8. guarantee that all algorithms are operational.
  9. Required software:
  10. - StuffIt Expander 5.5 or later, alternatively MacGzip and SUNtar;
  11. - Scriptable Finder;
  12. - CodeWarrior Pro 5;
  13. Installation procedure:
  14. - fetch the source at ftp://ftp.openssl.org/ (well, you probably already
  15. did, huh?)
  16. - unpack the .tar.gz file:
  17. - if you have StuffIt Expander then just drag it over it;
  18. - otherwise uncompress it with MacGzip and then unpack with SUNtar;
  19. - locate MacOS folder in OpenSSL source tree and open it;
  20. - unbinhex mklinks.as.hqx and OpenSSL.mcp.hqx if present (**), do it
  21. "in-place", i.e. unpacked files should end-up in the very same folder;
  22. - execute mklinks.as;
  23. - open OpenSSL.mcp(***) and build 'GetHTTPS PPC' target(****);
  24. - that's it for now;
  25. (*) URL is hardcoded into ./MacOS/GetHTTPS.src/GetHTTPS.cpp, lines 40
  26. to 42, change appropriately.
  27. (**) If you use SUNtar, then it might have already unbinhexed the files
  28. in question.
  29. (***) The project file was saved with CW Pro 5.3. If you have an earlier
  30. version and it refuses to open it, then download
  31. http://www.openssl.org/~appro/OpenSSL.mcp.xml and import it
  32. overwriting the original OpenSSL.mcp.
  33. (****) Other targets are works in progress. If you feel like giving 'em a
  34. shot, then you should know that OpenSSL* and Lib* targets are
  35. supposed to be built with the GUSI, MacOS library which mimics
  36. BSD sockets and some other POSIX APIs. The GUSI distribution is
  37. expected to be found in the same directory as the openssl source tree,
  38. i.e., in the parent directory to the one where this very file,
  39. namely INSTALL.MacOS, resides. For more information about GUSI, see
  40. http://www.iis.ee.ethz.ch/~neeri/macintosh/gusi-qa.html
  41. Finally some essential comments from our generous contributor:-)
  42. "I've gotten OpenSSL working on the Macintosh. It's probably a bit of a
  43. hack, but it works for what I'm doing. If you don't like the way I've done
  44. it, then feel free to change what I've done. I freely admit that I've done
  45. some less-than-ideal things in my port, and if you don't like the way I've
  46. done something, then feel free to change it-- I won't be offended!
  47. ... I've tweaked "bss_sock.c" a little to call routines in a "MacSocket"
  48. library I wrote. My MacSocket library is a wrapper around OpenTransport,
  49. handling stuff like endpoint creation, reading, writing, etc. It is not
  50. designed as a high-performance package such as you'd use in a webserver,
  51. but is fine for lots of other applications. MacSocket also uses some other
  52. code libraries I've written to deal with string manipulations and error
  53. handling. Feel free to use these things in your own code, but give me
  54. credit and/or send me free stuff in appreciation! :-)
  55. ...
  56. If you have any questions, feel free to email me as the following:
  57. roy@centricsystems.ca
  58. -Roy Wood"