Commit 023f7700 authored by Andy Polyakov's avatar Andy Polyakov
Browse files

Further work on MacOS port. See INSTALL.MacOS for details.

parent 3a4f14f3
Loading
Loading
Loading
Loading
+21 −11
Original line number Diff line number Diff line
@@ -10,8 +10,8 @@ guarantee that all algorithms are operational.

Required software:

- StuffIt Expander	(or any program capable to "unbinhex");
- DropStuff w/EE	(or MacGzip and SUNtar);
- StuffIt Expander 5.5 or later, alternatively MacGzip and SUNtar;
- Scriptable Finder;
- CodeWarrior Pro 5;

Installation procedure:
@@ -19,21 +19,31 @@ Installation procedure:
- fetch the source at ftp://ftp.openssl.org/ (well, you probably already
  did, huh?)
- unpack the .tar.gz file:
	- if you have DropStuff w/EE installed then just drag it over
	  StuffIt Expander;
	- otherwise process it first with MacGzip and then with SUNtar;
	- if you have StuffIt Expander then just drag it over it;
	- otherwise uncompress it with MacGzip and then unpack with SUNtar;
- locate MacOS folder in OpenSSL source tree and open it;
- if present (**) unbinhex mklinks.as.hqx and OpenSSL.mcp.hqx, do it
  "in-place", i.e. unpacked files should end-up in the same folder;
- double-click on mklinks.as;
- open OpenSSL.mcp and build 'GetHTTPS PPC' target (the only one working
  for the moment);
- that's it;
- unbinhex mklinks.as.hqx and OpenSSL.mcp.hqx if present (**), do it
  "in-place", i.e. unpacked files should end-up in the very same folder;
- execute mklinks.as;
- open OpenSSL.mcp(***) and build 'GetHTTPS PPC' target(****);
- that's it for now;

(*)	URL is hardcoded into ./MacOS/GetHTTPS.src/GetHTTPS.cpp, lines 40
        to 42, change appropriately.
(**)	If you use SUNtar, then it might have already unbinhexed the files
	in question.
(***)	The project file was saved with CW Pro 5.3. If you have earlier
	version and it refuses to open it, then download
	http://www.openssl.org/~appro/OpenSSL.mcp.xml and import it
	overwriting the original OpenSSL.mcp.
(****)	Other targets are work in progress. If you feel like giving 'em a
	shot, then you should know that OpenSSL* and Lib* targets are
	supposed to be built with the GUSI, MacOS library which mimics
	BSD sockets and some other POSIX APIs. The GUSI distribution is
	expected to be found in the same directory as openssl source tree,
	i.e. in the parent directory to the one where this very file,
	namely INSTALL.MacOS. For more informations about GUSI, see
	http://www.iis.ee.ethz.ch/~neeri/macintosh/gusi-qa.html

Finally some essential comments from our generous contributor:-)

MacOS/GUSI_Init.cpp

0 → 100644
+62 −0
Original line number Diff line number Diff line
/**************** BEGIN GUSI CONFIGURATION ****************************
 *
 * GUSI Configuration section generated by GUSI Configurator
 * last modified: Wed Jan  5 20:33:51 2000
 *
 * This section will be overwritten by the next run of Configurator.
 */

#define GUSI_SOURCE
#include <GUSIConfig.h>
#include <sys/cdefs.h>

/* Declarations of Socket Factories */

__BEGIN_DECLS
void GUSIwithInetSockets();
void GUSIwithLocalSockets();
void GUSIwithMTInetSockets();
void GUSIwithMTTcpSockets();
void GUSIwithMTUdpSockets();
void GUSIwithOTInetSockets();
void GUSIwithOTTcpSockets();
void GUSIwithOTUdpSockets();
void GUSIwithPPCSockets();
void GUSISetupFactories();
__END_DECLS

/* Configure Socket Factories */

void GUSISetupFactories()
{
#ifdef GUSISetupFactories_BeginHook
	GUSISetupFactories_BeginHook
#endif
	GUSIwithInetSockets();
#ifdef GUSISetupFactories_EndHook
	GUSISetupFactories_EndHook
#endif
}

/* Declarations of File Devices */

__BEGIN_DECLS
void GUSIwithDConSockets();
void GUSIwithNullSockets();
void GUSISetupDevices();
__END_DECLS

/* Configure File Devices */

void GUSISetupDevices()
{
#ifdef GUSISetupDevices_BeginHook
	GUSISetupDevices_BeginHook
#endif
	GUSIwithNullSockets();
#ifdef GUSISetupDevices_EndHook
	GUSISetupDevices_EndHook
#endif
}

/**************** END GUSI CONFIGURATION *************************/
+4210 −3744

File changed.

Preview size limit exceeded, changes collapsed.

+9 −0
Original line number Diff line number Diff line
#include <MacHeaders.h>
#define B_ENDIAN
#ifdef __POWERPC__
#pragma longlong on
#endif
#if 1
#define MAC_OS_GUSI_SOURCE
#endif
#define MONOLITH