Commit 752d706a authored by Ben Laurie's avatar Ben Laurie
Browse files

Make NO_RSA compile with pedantic.

parent c3ed3b6e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -216,4 +216,10 @@ static void MS_CALLBACK genrsa_cb(int p, int n, void *arg)
	p=n;
#endif
	}
#else /* !NO_RSA */

# if PEDANTIC
static void *dummy=&dummy;
# endif

#endif
+4 −0
Original line number Diff line number Diff line
@@ -120,7 +120,9 @@ static int add_attribute_object(STACK_OF(X509_ATTRIBUTE) *n, char *text,
				int max);
static int add_DN_object(X509_NAME *n, char *text, char *def, char *value,
	int nid,int min,int max);
#ifndef NO_RSA
static void MS_CALLBACK req_cb(int p,int n,void *arg);
#endif
static int req_fix_data(int nid,int *type,int len,int min,int max);
static int check_end(char *str, char *end);
static int add_oid_section(LHASH *conf);
@@ -1403,6 +1405,7 @@ err:
	return(0);
	}

#ifndef NO_RSA
static void MS_CALLBACK req_cb(int p, int n, void *arg)
	{
	char c='*';
@@ -1417,6 +1420,7 @@ static void MS_CALLBACK req_cb(int p, int n, void *arg)
	p=n;
#endif
	}
#endif

static int req_fix_data(int nid, int *type, int len, int min, int max)
	{
+6 −0
Original line number Diff line number Diff line
@@ -395,4 +395,10 @@ end:
	if (rsa != NULL) RSA_free(rsa);
	EXIT(ret);
	}
#else /* !NO_RSA */

# if PEDANTIC
static void *dummy=&dummy;
# endif

#endif
+6 −0
Original line number Diff line number Diff line
@@ -119,4 +119,10 @@ err:

	return(NULL);
	}
#else /* !NO_RSA */

# if PEDANTIC
static void *dummy=&dummy;
# endif

#endif
+6 −0
Original line number Diff line number Diff line
@@ -94,4 +94,10 @@ err:
	if (bs != NULL) M_ASN1_INTEGER_free(bs);
	return(NULL);
	}
#else /* !NO_RSA */

# if PEDANTIC
static void *dummy=&dummy;
# endif

#endif
Loading