1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

gnutls: don't use deprecated type names anymore

This commit is contained in:
Alessandro Ghedini 2014-04-29 14:13:52 +02:00 committed by Daniel Stenberg
parent fb4937a311
commit 345bfab518
2 changed files with 13 additions and 13 deletions

View File

@ -296,10 +296,10 @@ struct ssl_connect_data {
ssl_connect_state connecting_state;
#endif /* USE_SSLEAY */
#ifdef USE_GNUTLS
gnutls_session session;
gnutls_certificate_credentials cred;
gnutls_session_t session;
gnutls_certificate_credentials_t cred;
#ifdef USE_TLS_SRP
gnutls_srp_client_credentials srp_client_cred;
gnutls_srp_client_credentials_t srp_client_cred;
#endif
ssl_connect_state connecting_state;
#endif /* USE_GNUTLS */

View File

@ -216,10 +216,10 @@ static void showtime(struct SessionHandle *data,
infof(data, "%s\n", data->state.buffer);
}
static gnutls_datum load_file (const char *file)
static gnutls_datum_t load_file (const char *file)
{
FILE *f;
gnutls_datum loaded_file = { NULL, 0 };
gnutls_datum_t loaded_file = { NULL, 0 };
long filelen;
void *ptr;
@ -242,7 +242,7 @@ out:
return loaded_file;
}
static void unload_file(gnutls_datum data) {
static void unload_file(gnutls_datum_t data) {
free(data.data);
}
@ -255,7 +255,7 @@ static CURLcode handshake(struct connectdata *conn,
{
struct SessionHandle *data = conn->data;
struct ssl_connect_data *connssl = &conn->ssl[sockindex];
gnutls_session session = conn->ssl[sockindex].session;
gnutls_session_t session = conn->ssl[sockindex].session;
curl_socket_t sockfd = conn->sock[sockindex];
long timeout_ms;
int rc;
@ -344,7 +344,7 @@ static CURLcode handshake(struct connectdata *conn,
}
}
static gnutls_x509_crt_fmt do_file_type(const char *type)
static gnutls_x509_crt_fmt_t do_file_type(const char *type)
{
if(!type || !type[0])
return GNUTLS_X509_FMT_PEM;
@ -360,7 +360,7 @@ gtls_connect_step1(struct connectdata *conn,
int sockindex)
{
struct SessionHandle *data = conn->data;
gnutls_session session;
gnutls_session_t session;
int rc;
void *ssl_sessionid;
size_t ssl_idsize;
@ -651,10 +651,10 @@ gtls_connect_step3(struct connectdata *conn,
int sockindex)
{
unsigned int cert_list_size;
const gnutls_datum *chainp;
const gnutls_datum_t *chainp;
unsigned int verify_status;
gnutls_x509_crt x509_cert,x509_issuer;
gnutls_datum issuerp;
gnutls_x509_crt_t x509_cert,x509_issuer;
gnutls_datum_t issuerp;
char certbuf[256]; /* big enough? */
size_t size;
unsigned int algo;
@ -662,7 +662,7 @@ gtls_connect_step3(struct connectdata *conn,
time_t certclock;
const char *ptr;
struct SessionHandle *data = conn->data;
gnutls_session session = conn->ssl[sockindex].session;
gnutls_session_t session = conn->ssl[sockindex].session;
int rc;
int incache;
void *ssl_sessionid;