Avoid warnings: add missing prototype, don't shadow.
This commit is contained in:
parent
83eb412da8
commit
a08ced78c8
@ -2083,7 +2083,7 @@ int MAIN(int argc, char **argv)
|
|||||||
* otherwise, use result (see section 4.8 of draft-ietf-tls-ecc-03.txt).
|
* otherwise, use result (see section 4.8 of draft-ietf-tls-ecc-03.txt).
|
||||||
*/
|
*/
|
||||||
int field_size, outlen;
|
int field_size, outlen;
|
||||||
void *(*kdf)(void *in, size_t inlen, void *out, size_t outlen);
|
void *(*kdf)(void *in, size_t inlen, void *out, size_t xoutlen);
|
||||||
field_size = EC_GROUP_get_degree(ecdh_a[j]->group);
|
field_size = EC_GROUP_get_degree(ecdh_a[j]->group);
|
||||||
if (field_size <= 24 * 8)
|
if (field_size <= 24 * 8)
|
||||||
{
|
{
|
||||||
|
@ -1201,6 +1201,7 @@ const char * SSL_CIPHER_get_name(SSL_CIPHER *c);
|
|||||||
const COMP_METHOD *SSL_get_current_compression(SSL *s);
|
const COMP_METHOD *SSL_get_current_compression(SSL *s);
|
||||||
const COMP_METHOD *SSL_get_current_expansion(SSL *s);
|
const COMP_METHOD *SSL_get_current_expansion(SSL *s);
|
||||||
const char *SSL_COMP_get_name(const COMP_METHOD *comp);
|
const char *SSL_COMP_get_name(const COMP_METHOD *comp);
|
||||||
|
STACK_OF(SSL_COMP) *SSL_COMP_get_compression_methods(void);
|
||||||
|
|
||||||
int SSL_get_fd(SSL *s);
|
int SSL_get_fd(SSL *s);
|
||||||
int SSL_get_rfd(SSL *s);
|
int SSL_get_rfd(SSL *s);
|
||||||
|
@ -616,13 +616,13 @@ bad:
|
|||||||
ssl_comp_methods = SSL_COMP_get_compression_methods();
|
ssl_comp_methods = SSL_COMP_get_compression_methods();
|
||||||
fprintf(stderr, "Available compression methods:\n");
|
fprintf(stderr, "Available compression methods:\n");
|
||||||
{
|
{
|
||||||
int i, n = sk_SSL_COMP_num(ssl_comp_methods);
|
int j, n = sk_SSL_COMP_num(ssl_comp_methods);
|
||||||
if (n == 0)
|
if (n == 0)
|
||||||
fprintf(stderr, " NONE\n");
|
fprintf(stderr, " NONE\n");
|
||||||
else
|
else
|
||||||
for (i = 0; i < n; i++)
|
for (j = 0; j < n; j++)
|
||||||
{
|
{
|
||||||
SSL_COMP *c = sk_SSL_COMP_value(ssl_comp_methods, i);
|
SSL_COMP *c = sk_SSL_COMP_value(ssl_comp_methods, j);
|
||||||
fprintf(stderr, " %d: %s\n", c->id, c->name);
|
fprintf(stderr, " %d: %s\n", c->id, c->name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user