Commit 17f389bb authored by Andy Polyakov's avatar Andy Polyakov
Browse files

Initial support for MacOS.

This will soon be complemented with MacOS specific source code files and
INSTALL.MacOS.

I (Andy) have decided to get rid of a number of #include <sys/types.h>.
I've verified it's ok (both by examining /usr/include/*.h and compiling)
on a number of Unix platforms. Unfortunately I don't have Windows box
to verify this on. I really appreciate if somebody could try to compile
it and contact me a.s.a.p. in case a problem occurs.

Submitted by: Roy Wood <roy@centricsystems.ca>
Reviewed by: Andy Polyakov <appro@fy.chalmers.se>
parent 5bdae167
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -58,10 +58,13 @@

#include <stdio.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>

#include "cryptlib.h"

#ifndef NO_SYS_TYPES_H
# include <sys/types.h>
#endif

#include <openssl/evp.h>
#include <openssl/buffer.h>
#include <openssl/x509.h>
+5 −2
Original line number Diff line number Diff line
@@ -58,10 +58,13 @@

#include <stdio.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>

#include "cryptlib.h"

#ifndef NO_SYS_TYPES_H
# include <sys/types.h>
#endif

#include <openssl/bn.h>
#include <openssl/evp.h>
#include <openssl/x509.h>
+5 −2
Original line number Diff line number Diff line
@@ -58,10 +58,13 @@

#include <stdio.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>

#include "cryptlib.h"

#ifndef NO_SYS_TYPES_H
# include <sys/types.h>
#endif

#include <openssl/bn.h>
#include <openssl/x509.h>
#include <openssl/objects.h>
+1 −2
Original line number Diff line number Diff line
@@ -163,8 +163,7 @@ static int fd_free(BIO *a)
		if (a->init)
			{
#ifndef BIO_FD
			shutdown(a->num,2);
			closesocket(a->num);
			SHUTDOWN2(a->num);
#else			/* BIO_FD */
			close(a->num);
#endif
+2 −2
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ int des_enc_read(int fd, void *buf, int len, des_key_schedule sched,
	/* first - get the length */
	while (net_num < HDRSIZE) 
		{
		i=read(fd,&(net[net_num]),HDRSIZE-net_num);
		i=read(fd,(void *)&(net[net_num]),HDRSIZE-net_num);
#ifdef EINTR
		if ((i == -1) && (errno == EINTR)) continue;
#endif
@@ -169,7 +169,7 @@ int des_enc_read(int fd, void *buf, int len, des_key_schedule sched,
	net_num=0;
	while (net_num < rnum)
		{
		i=read(fd,&(net[net_num]),rnum-net_num);
		i=read(fd,(void *)&(net[net_num]),rnum-net_num);
#ifdef EINTR
		if ((i == -1) && (errno == EINTR)) continue;
#endif
Loading