diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-10-13 05:02:52 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-10-13 05:02:52 +0000 |
commit | 458e18ffad053301c7648deec7ad1da6f873747c (patch) | |
tree | 2612644d85306184254b31150b10264911b42b1c /lib/auth_cert.h | |
parent | 22853894970ea9db7e7bf34206f3a7abf514d1fa (diff) | |
download | gnutls-458e18ffad053301c7648deec7ad1da6f873747c.tar.gz |
several fixes in the codebase, mostly in signed/unsigned checkings.
Diffstat (limited to 'lib/auth_cert.h')
-rw-r--r-- | lib/auth_cert.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/auth_cert.h b/lib/auth_cert.h index adeb6a8c1c..347cb95c1d 100644 --- a/lib/auth_cert.h +++ b/lib/auth_cert.h @@ -16,11 +16,11 @@ typedef struct { * (if more than one, one certificate certifies the one before) * [1] certificate2, certificate22, ... */ - int * cert_list_length; + uint * cert_list_length; /* contains the number of the certificates in a * row (should be 1 for OpenPGP keys). */ - int ncerts; /* contains the number of columns in cert_list. + uint ncerts; /* contains the number of columns in cert_list. * This is the same with the number of pkeys. */ @@ -41,7 +41,7 @@ typedef struct { /* X509 specific stuff */ gnutls_cert * x509_ca_list; - int x509_ncas; /* number of CAs in the ca_list + uint x509_ncas; /* number of CAs in the ca_list */ /* holds a sequence of the @@ -67,7 +67,7 @@ typedef struct CERTIFICATE_AUTH_INFO_INT { gnutls_datum* raw_certificate_list; /* holds the raw certificate of the * peer. */ - int ncerts; /* holds the size of the list above */ + unsigned int ncerts; /* holds the size of the list above */ } *CERTIFICATE_AUTH_INFO; typedef struct CERTIFICATE_AUTH_INFO_INT CERTIFICATE_AUTH_INFO_INT; @@ -77,13 +77,12 @@ int _gnutls_gen_cert_server_certificate(gnutls_session, opaque **); int _gnutls_gen_cert_client_certificate(gnutls_session, opaque **); int _gnutls_gen_cert_client_cert_vrfy(gnutls_session, opaque **); int _gnutls_gen_cert_server_cert_req(gnutls_session, opaque **); -int _gnutls_proc_cert_cert_req(gnutls_session, opaque *, int); -int _gnutls_proc_cert_client_cert_vrfy(gnutls_session, opaque *, int); -int _gnutls_proc_cert_server_certificate(gnutls_session, opaque *, int); +int _gnutls_proc_cert_cert_req(gnutls_session, opaque *, size_t); +int _gnutls_proc_cert_client_cert_vrfy(gnutls_session, opaque *, size_t); +int _gnutls_proc_cert_server_certificate(gnutls_session, opaque *, size_t); int _gnutls_find_apr_cert( gnutls_session session, gnutls_cert** apr_cert_list, int *apr_cert_list_length, gnutls_private_key** apr_pkey); int _gnutls_find_dn( gnutls_datum* odn, gnutls_cert* cert); const gnutls_cert* _gnutls_server_find_cert( struct gnutls_session_int*, gnutls_pk_algorithm); -int _gnutls_server_find_cert_list_index( struct gnutls_session_int*, gnutls_cert ** cert_list, int cert_list_length, gnutls_pk_algorithm); #define _gnutls_proc_cert_client_certificate _gnutls_proc_cert_server_certificate |