Correct warnings.
This commit is contained in:
parent
396f631458
commit
d680ba8617
@ -229,7 +229,7 @@ static size_t bio_nread0(BIO *bio, char **buf)
|
|||||||
char dummy;
|
char dummy;
|
||||||
|
|
||||||
/* avoid code duplication -- nothing available for reading */
|
/* avoid code duplication -- nothing available for reading */
|
||||||
return bio_read(bio, &dummy, num); /* returns 0 or -1 */
|
return bio_read(bio, &dummy, 1); /* returns 0 or -1 */
|
||||||
}
|
}
|
||||||
|
|
||||||
num = peer_b->len;
|
num = peer_b->len;
|
||||||
@ -401,7 +401,7 @@ static size_t bio_nwrite0(BIO *bio, char **buf)
|
|||||||
|
|
||||||
static size_t bio_nwrite(BIO *bio, char **buf, size_t num)
|
static size_t bio_nwrite(BIO *bio, char **buf, size_t num)
|
||||||
{
|
{
|
||||||
struct bio_bio_st *b;
|
struct bio_bio_st *b=bio->ptr;
|
||||||
size_t space;
|
size_t space;
|
||||||
|
|
||||||
space = bio_nwrite0(bio, buf);
|
space = bio_nwrite0(bio, buf);
|
||||||
|
@ -77,7 +77,9 @@ static int RSA_null_public_decrypt(int flen, unsigned char *from,
|
|||||||
unsigned char *to, RSA *rsa,int padding);
|
unsigned char *to, RSA *rsa,int padding);
|
||||||
static int RSA_null_private_decrypt(int flen, unsigned char *from,
|
static int RSA_null_private_decrypt(int flen, unsigned char *from,
|
||||||
unsigned char *to, RSA *rsa,int padding);
|
unsigned char *to, RSA *rsa,int padding);
|
||||||
|
#if 0 /* not currently used */
|
||||||
static int RSA_null_mod_exp(BIGNUM *r0, BIGNUM *i, RSA *rsa);
|
static int RSA_null_mod_exp(BIGNUM *r0, BIGNUM *i, RSA *rsa);
|
||||||
|
#endif
|
||||||
static int RSA_null_init(RSA *rsa);
|
static int RSA_null_init(RSA *rsa);
|
||||||
static int RSA_null_finish(RSA *rsa);
|
static int RSA_null_finish(RSA *rsa);
|
||||||
static RSA_METHOD rsa_null_meth={
|
static RSA_METHOD rsa_null_meth={
|
||||||
@ -126,11 +128,13 @@ static int RSA_null_public_decrypt(int flen, unsigned char *from,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0 /* not currently used */
|
||||||
static int RSA_null_mod_exp(BIGNUM *r0, BIGNUM *I, RSA *rsa)
|
static int RSA_null_mod_exp(BIGNUM *r0, BIGNUM *I, RSA *rsa)
|
||||||
{
|
{
|
||||||
RSAerr(RSA_F_RSA_NULL, RSA_R_RSA_OPERATIONS_NOT_SUPPORTED);
|
RSAerr(RSA_F_RSA_NULL, RSA_R_RSA_OPERATIONS_NOT_SUPPORTED);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int RSA_null_init(RSA *rsa)
|
static int RSA_null_init(RSA *rsa)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user