Commit 41a15c4f authored by Ben Laurie's avatar Ben Laurie
Browse files

Give everything prototypes (well, everything that's actually used).

parent fea4280a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4,6 +4,11 @@

 Changes between 0.9.7e and 0.9.8  [xx XXX xxxx]

  *) Compile clean with "-Wall -Wmissing-prototypes
     -Wstrict-prototypes -Wmissing-declarations -Werror". Currently
     DEBUG_SAFESTACK must also be set.
     [Ben Laurie]

  *) Change ./Configure so that certain algorithms can be disabled by default.
     The new counterpiece to "no-xxx" is "enable-xxx".

+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ extern int ocsp_main(int argc,char *argv[]);
typedef struct {
	int type;
	char *name;
	int (*func)();
	int (*func)(int argc,char *argv[]);
	} FUNCTION;

FUNCTION functions[] = {
+1 −1
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@ typedef fd_mask fd_set;
#define PORT_STR        "4433"
#define PROTOCOL        "tcp"

int do_server(int port, int *ret, int (*cb) (), char *context);
int do_server(int port, int *ret, int (*cb) (char *hostname, int s, unsigned char *context), char *context);
#ifdef HEADER_X509_H
int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx);
#endif
+1 −1
Original line number Diff line number Diff line
@@ -270,7 +270,7 @@ static int init_client_ip(int *sock, unsigned char ip[4], int port)
	return(1);
	}

int do_server(int port, int *ret, int (*cb)(), char *context)
int do_server(int port, int *ret, int (*cb)(char *hostname, int s, unsigned char *context), char *context)
	{
	int sock;
	char *name;
+1 −1
Original line number Diff line number Diff line
@@ -241,7 +241,7 @@ bad:
	if (!noout && !cert)
		{
		if 	(outformat == FORMAT_ASN1)
			i=(int)i2d_SSL_SESSION_bio(out,x);
			i=i2d_SSL_SESSION_bio(out,x);
		else if (outformat == FORMAT_PEM)
			i=PEM_write_bio_SSL_SESSION(out,x);
		else	{
Loading