#include <errno.h>
#define USE_SOCKETS
#include "cryptlib.h"
-#include "bio.h"
+#include <openssl/bio.h>
/* BIOerr(BIO_F_WSASTARTUP,BIO_R_WSASTARTUP ); */
int BIO_sock_error(int sock)
{
int j,i;
- unsigned int size;
+ int size;
size=sizeof(int);
- i=getsockopt(sock,SOL_SOCKET,SO_ERROR,(char *)&j,&size);
+ i=getsockopt(sock,SOL_SOCKET,SO_ERROR,&j,&size);
if (i < 0)
return(1);
else
static struct sockaddr_in from;
unsigned long l;
unsigned short port;
- unsigned int len;
+ int len;
char *p;
memset((char *)&from,0,sizeof(from));