diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-09-03 11:05:23 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-09-03 11:05:23 +0000 |
commit | 4f465eaf3f507362143d009535cf3019c6ab0374 (patch) | |
tree | fd5779554547141c98be2b0a162d38774bcd1629 /lib | |
parent | 0098fdea961b151fd2c4eb7b4d5bf03998a13673 (diff) | |
download | gnutls-4f465eaf3f507362143d009535cf3019c6ab0374.tar.gz |
gnutls_list replaced by const int*
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gnutls_priority.c | 24 | ||||
-rw-r--r-- | lib/gnutls_priority.h | 12 |
2 files changed, 18 insertions, 18 deletions
diff --git a/lib/gnutls_priority.c b/lib/gnutls_priority.c index cfa26dacf4..919a48d599 100644 --- a/lib/gnutls_priority.c +++ b/lib/gnutls_priority.c @@ -39,8 +39,8 @@ * not use the algorithm's priority except for disabling * algorithms that were not specified. **/ -int gnutls_cipher_set_priority( gnutls_session session, gnutls_list list) { -gnutls_list _list = list; +int gnutls_cipher_set_priority( gnutls_session session, const int* list) { +const int* _list = list; int num=0, i; while( *_list != 0) { @@ -70,8 +70,8 @@ int num=0, i; * not use the algorithm's priority except for disabling * algorithms that were not specified. **/ -int gnutls_kx_set_priority( gnutls_session session, gnutls_list list) { -gnutls_list _list = list; +int gnutls_kx_set_priority( gnutls_session session, const int* list) { +const int* _list = list; int num=0, i; while( *_list != 0) { @@ -102,8 +102,8 @@ int num=0, i; * not use the algorithm's priority except for disabling * algorithms that were not specified. **/ -int gnutls_mac_set_priority( gnutls_session session, gnutls_list list) { -gnutls_list _list = list; +int gnutls_mac_set_priority( gnutls_session session, const int* list) { +const int* _list = list; int num=0, i; while( *_list != 0) { @@ -139,8 +139,8 @@ int num=0, i; * as gnutls extensions. * **/ -int gnutls_compression_set_priority( gnutls_session session, gnutls_list list) { -gnutls_list _list = list; +int gnutls_compression_set_priority( gnutls_session session, const int* list) { +const int* _list = list; int num=0, i; while( *_list != 0) { @@ -167,8 +167,8 @@ int num=0, i; * versions always have highest priority. * **/ -int gnutls_protocol_set_priority( gnutls_session session, gnutls_list list) { -gnutls_list _list = list; +int gnutls_protocol_set_priority( gnutls_session session, const int* list) { +const int* _list = list; int num=0, i; while( *_list != 0) { @@ -205,9 +205,9 @@ int num=0, i; * The server does not use the cert type priority except for disabling * types that were not specified. **/ -int gnutls_certificate_type_set_priority( gnutls_session session, gnutls_list list) { +int gnutls_certificate_type_set_priority( gnutls_session session, const int* list) { #ifdef HAVE_LIBOPENCDK -gnutls_list _list = list; +const int* _list = list; int num=0, i; diff --git a/lib/gnutls_priority.h b/lib/gnutls_priority.h index d70cb5eedd..43cee47ea9 100644 --- a/lib/gnutls_priority.h +++ b/lib/gnutls_priority.h @@ -18,9 +18,9 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ -int gnutls_cipher_set_priority( gnutls_session session, gnutls_list); -int gnutls_kx_set_priority( gnutls_session session, gnutls_list); -int gnutls_mac_set_priority( gnutls_session session, gnutls_list); -int gnutls_compression_set_priority( gnutls_session session, gnutls_list); -int gnutls_protocol_set_priority( gnutls_session session, gnutls_list); -int gnutls_certificate_type_set_priority( gnutls_session session, gnutls_list); +int gnutls_cipher_set_priority( gnutls_session session, const int*); +int gnutls_kx_set_priority( gnutls_session session, const int*); +int gnutls_mac_set_priority( gnutls_session session, const int*); +int gnutls_compression_set_priority( gnutls_session session, const int*); +int gnutls_protocol_set_priority( gnutls_session session, const int*); +int gnutls_certificate_type_set_priority( gnutls_session session, const int*); |