aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2014-04-29 14:13:52 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-05-28 00:27:33 +0200
commit345bfab518ae2dddb534a74080d3c38e9d9f39e9 (patch)
tree897d4d7ce62a43dd4e00bd7667f7633a5620a434
parentfb4937a31185a967f874da1c1f679de7d0f9c16a (diff)
gnutls: don't use deprecated type names anymore
-rw-r--r--lib/urldata.h6
-rw-r--r--lib/vtls/gtls.c20
2 files changed, 13 insertions, 13 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 648187642..ebdad803d 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -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 */
diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c
index d6849cebc..628ae2138 100644
--- a/lib/vtls/gtls.c
+++ b/lib/vtls/gtls.c
@@ -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;