Make NO_RSA compile with pedantic.
This commit is contained in:
parent
c3ed3b6eab
commit
752d706aaf
@ -216,4 +216,10 @@ static void MS_CALLBACK genrsa_cb(int p, int n, void *arg)
|
|||||||
p=n;
|
p=n;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#else /* !NO_RSA */
|
||||||
|
|
||||||
|
# if PEDANTIC
|
||||||
|
static void *dummy=&dummy;
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -120,7 +120,9 @@ static int add_attribute_object(STACK_OF(X509_ATTRIBUTE) *n, char *text,
|
|||||||
int max);
|
int max);
|
||||||
static int add_DN_object(X509_NAME *n, char *text, char *def, char *value,
|
static int add_DN_object(X509_NAME *n, char *text, char *def, char *value,
|
||||||
int nid,int min,int max);
|
int nid,int min,int max);
|
||||||
|
#ifndef NO_RSA
|
||||||
static void MS_CALLBACK req_cb(int p,int n,void *arg);
|
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 req_fix_data(int nid,int *type,int len,int min,int max);
|
||||||
static int check_end(char *str, char *end);
|
static int check_end(char *str, char *end);
|
||||||
static int add_oid_section(LHASH *conf);
|
static int add_oid_section(LHASH *conf);
|
||||||
@ -1403,6 +1405,7 @@ err:
|
|||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NO_RSA
|
||||||
static void MS_CALLBACK req_cb(int p, int n, void *arg)
|
static void MS_CALLBACK req_cb(int p, int n, void *arg)
|
||||||
{
|
{
|
||||||
char c='*';
|
char c='*';
|
||||||
@ -1417,6 +1420,7 @@ static void MS_CALLBACK req_cb(int p, int n, void *arg)
|
|||||||
p=n;
|
p=n;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int req_fix_data(int nid, int *type, int len, int min, int max)
|
static int req_fix_data(int nid, int *type, int len, int min, int max)
|
||||||
{
|
{
|
||||||
|
@ -395,4 +395,10 @@ end:
|
|||||||
if (rsa != NULL) RSA_free(rsa);
|
if (rsa != NULL) RSA_free(rsa);
|
||||||
EXIT(ret);
|
EXIT(ret);
|
||||||
}
|
}
|
||||||
|
#else /* !NO_RSA */
|
||||||
|
|
||||||
|
# if PEDANTIC
|
||||||
|
static void *dummy=&dummy;
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -119,4 +119,10 @@ err:
|
|||||||
|
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
#else /* !NO_RSA */
|
||||||
|
|
||||||
|
# if PEDANTIC
|
||||||
|
static void *dummy=&dummy;
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -94,4 +94,10 @@ err:
|
|||||||
if (bs != NULL) M_ASN1_INTEGER_free(bs);
|
if (bs != NULL) M_ASN1_INTEGER_free(bs);
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
#else /* !NO_RSA */
|
||||||
|
|
||||||
|
# if PEDANTIC
|
||||||
|
static void *dummy=&dummy;
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -123,5 +123,11 @@ int i2d_RSAPrivateKey(RSA *a, unsigned char **pp)
|
|||||||
*pp=p;
|
*pp=p;
|
||||||
return(t);
|
return(t);
|
||||||
}
|
}
|
||||||
|
#else /* !NO_RSA */
|
||||||
|
|
||||||
|
# if PEDANTIC
|
||||||
|
static void *dummy=&dummy;
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -109,4 +109,10 @@ int i2d_RSAPublicKey(RSA *a, unsigned char **pp)
|
|||||||
*pp=p;
|
*pp=p;
|
||||||
return(t);
|
return(t);
|
||||||
}
|
}
|
||||||
|
#else /* !NO_RSA */
|
||||||
|
|
||||||
|
# if PEDANTIC
|
||||||
|
static void *dummy=&dummy;
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -338,4 +338,11 @@ static void NETSCAPE_PKEY_free(NETSCAPE_PKEY *a)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif /* NO_RC4 */
|
#endif /* NO_RC4 */
|
||||||
|
|
||||||
|
#else /* !NO_RSA */
|
||||||
|
|
||||||
|
# if PEDANTIC
|
||||||
|
static void *dummy=&dummy;
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -110,4 +110,10 @@ int EVP_OpenFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
|
|||||||
EVP_DecryptInit(ctx,NULL,NULL,NULL);
|
EVP_DecryptInit(ctx,NULL,NULL,NULL);
|
||||||
return(i);
|
return(i);
|
||||||
}
|
}
|
||||||
|
#else /* !NO_RSA */
|
||||||
|
|
||||||
|
# ifdef PEDANTIC
|
||||||
|
static void *dummy=&dummy;
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -175,4 +175,10 @@ err:
|
|||||||
if (s != NULL) Free(s);
|
if (s != NULL) Free(s);
|
||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
#else /* !NO_RSA */
|
||||||
|
|
||||||
|
# if PEDANTIC
|
||||||
|
static void *dummy=&dummy;
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -298,4 +298,10 @@ err:
|
|||||||
memset(&rnd,0,sizeof(rnd));
|
memset(&rnd,0,sizeof(rnd));
|
||||||
return(outlen);
|
return(outlen);
|
||||||
}
|
}
|
||||||
|
#else /* !NO_RSA */
|
||||||
|
|
||||||
|
# if PEDANTIC
|
||||||
|
static void *dummy=&dummy;
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -974,4 +974,10 @@ end:
|
|||||||
EVP_PKEY_free(pkey);
|
EVP_PKEY_free(pkey);
|
||||||
return(i);
|
return(i);
|
||||||
}
|
}
|
||||||
|
#else /* !NO_RSA */
|
||||||
|
|
||||||
|
# if PEDANTIC
|
||||||
|
static void *dummy=&dummy;
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -421,4 +421,10 @@ int ssl2_shutdown(SSL *s)
|
|||||||
s->shutdown=(SSL_SENT_SHUTDOWN|SSL_RECEIVED_SHUTDOWN);
|
s->shutdown=(SSL_SENT_SHUTDOWN|SSL_RECEIVED_SHUTDOWN);
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
|
#else /* !NO_RSA */
|
||||||
|
|
||||||
|
# if PEDANTIC
|
||||||
|
static void *dummy=&dummy;
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -86,4 +86,10 @@ SSL_METHOD *SSLv2_method(void)
|
|||||||
}
|
}
|
||||||
return(&SSLv2_data);
|
return(&SSLv2_data);
|
||||||
}
|
}
|
||||||
|
#else /* !NO_RSA */
|
||||||
|
|
||||||
|
# if PEDANTIC
|
||||||
|
static void *dummy=&dummy;
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -966,4 +966,10 @@ static int ssl_rsa_private_decrypt(CERT *c, int len, unsigned char *from,
|
|||||||
SSLerr(SSL_F_SSL_RSA_PRIVATE_DECRYPT,ERR_R_RSA_LIB);
|
SSLerr(SSL_F_SSL_RSA_PRIVATE_DECRYPT,ERR_R_RSA_LIB);
|
||||||
return(i);
|
return(i);
|
||||||
}
|
}
|
||||||
|
#else /* !NO_RSA */
|
||||||
|
|
||||||
|
# if PEDANTIC
|
||||||
|
static void *dummy=&dummy;
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -900,6 +900,7 @@ static int ssl3_send_server_key_exchange(SSL *s)
|
|||||||
int j,num;
|
int j,num;
|
||||||
RSA *rsa;
|
RSA *rsa;
|
||||||
unsigned char md_buf[MD5_DIGEST_LENGTH+SHA_DIGEST_LENGTH];
|
unsigned char md_buf[MD5_DIGEST_LENGTH+SHA_DIGEST_LENGTH];
|
||||||
|
unsigned int u;
|
||||||
#endif
|
#endif
|
||||||
#ifndef NO_DH
|
#ifndef NO_DH
|
||||||
DH *dh,*dhp;
|
DH *dh,*dhp;
|
||||||
@ -907,7 +908,6 @@ static int ssl3_send_server_key_exchange(SSL *s)
|
|||||||
EVP_PKEY *pkey;
|
EVP_PKEY *pkey;
|
||||||
unsigned char *p,*d;
|
unsigned char *p,*d;
|
||||||
int al,i;
|
int al,i;
|
||||||
unsigned int u;
|
|
||||||
unsigned long type;
|
unsigned long type;
|
||||||
int n;
|
int n;
|
||||||
CERT *cert;
|
CERT *cert;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user