From a6fbcb42209e2818c3d479da07aa71a7c1b2dd1a Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 7 Sep 2007 13:25:15 +0000 Subject: Change safestack reimplementation to match 0.9.8. Fix additional gcc 4.2 value not used warnings. --- ssl/s2_clnt.c | 4 ++-- ssl/s2_srvr.c | 2 +- ssl/ssl_cert.c | 2 +- ssl/ssl_ciph.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'ssl') diff --git a/ssl/s2_clnt.c b/ssl/s2_clnt.c index 7b3b7d8eac..e976ba82e9 100644 --- a/ssl/s2_clnt.c +++ b/ssl/s2_clnt.c @@ -466,11 +466,11 @@ static int get_server_hello(SSL *s) return(-1); } - sk_SSL_CIPHER_set_cmp_func(sk,ssl_cipher_ptr_id_cmp); + (void)sk_SSL_CIPHER_set_cmp_func(sk,ssl_cipher_ptr_id_cmp); /* get the array of ciphers we will accept */ cl=SSL_get_ciphers(s); - sk_SSL_CIPHER_set_cmp_func(cl,ssl_cipher_ptr_id_cmp); + (void)sk_SSL_CIPHER_set_cmp_func(cl,ssl_cipher_ptr_id_cmp); /* * If server preference flag set, choose the first diff --git a/ssl/s2_srvr.c b/ssl/s2_srvr.c index fa21d6fe68..6490d0bf1b 100644 --- a/ssl/s2_srvr.c +++ b/ssl/s2_srvr.c @@ -657,7 +657,7 @@ static int get_client_hello(SSL *s) { if (sk_SSL_CIPHER_find(allow,sk_SSL_CIPHER_value(prio,z)) < 0) { - sk_SSL_CIPHER_delete(prio,z); + (void)sk_SSL_CIPHER_delete(prio,z); z--; } } diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index bb07175dcf..ccb30e0760 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -764,7 +764,7 @@ err: if(x != NULL) X509_free(x); - sk_X509_NAME_set_cmp_func(stack,oldcmp); + (void)sk_X509_NAME_set_cmp_func(stack,oldcmp); return ret; } diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c index e5730251ae..5ba5b32a07 100644 --- a/ssl/ssl_ciph.c +++ b/ssl/ssl_ciph.c @@ -1417,7 +1417,7 @@ STACK_OF(SSL_CIPHER) *ssl_create_cipher_list(const SSL_METHOD *ssl_method, if (*cipher_list_by_id != NULL) sk_SSL_CIPHER_free(*cipher_list_by_id); *cipher_list_by_id = tmp_cipher_list; - sk_SSL_CIPHER_set_cmp_func(*cipher_list_by_id,ssl_cipher_ptr_id_cmp); + (void)sk_SSL_CIPHER_set_cmp_func(*cipher_list_by_id,ssl_cipher_ptr_id_cmp); return(cipherstack); } -- cgit v1.2.3