summaryrefslogtreecommitdiff
path: root/src/lib/emile
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2015-03-17 08:50:47 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-17 09:58:20 +0100
commit987607a3c2f1c9d492e2cd09c7f3f871c995a0d4 (patch)
tree275a5a09cbead39e12d49d5234eeec336833eede /src/lib/emile
parentce394fae9537935102b4dbde94bf830ef986c1da (diff)
emile: fix some warnings in gnutls component
Diffstat (limited to 'src/lib/emile')
-rw-r--r--src/lib/emile/emile_cipher_gnutls.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/emile/emile_cipher_gnutls.c b/src/lib/emile/emile_cipher_gnutls.c
index eda1d54b09..e5a9cb8933 100644
--- a/src/lib/emile/emile_cipher_gnutls.c
+++ b/src/lib/emile/emile_cipher_gnutls.c
@@ -413,8 +413,9 @@ emile_cipher_server_listen(Emile_Cipher_Type t)
413} 413}
414 414
415EAPI Emile_SSL * 415EAPI Emile_SSL *
416emile_cipher_client_connect(Emile_SSL *server, int fd) 416emile_cipher_client_connect(Emile_SSL *server EINA_UNUSED, int fd EINA_UNUSED)
417{ 417{
418 return NULL;
418} 419}
419 420
420EAPI Emile_SSL * 421EAPI Emile_SSL *
@@ -462,14 +463,15 @@ emile_cipher_server_connect(Emile_Cipher_Type t)
462 if (ret) goto on_error; 463 if (ret) goto on_error;
463 464
464 gnutls_handshake_set_private_extensions(r->session, 1); 465 gnutls_handshake_set_private_extensions(r->session, 1);
465 ret = gnutls_credentials_set(r->session, GNUTLS_CRD_CERTIFICATE, r->cert)); 466 ret = gnutls_credentials_set(r->session, GNUTLS_CRD_CERTIFICATE, r->cert);
466 467
467 return r; 468 return r;
468} 469}
469 470
470EAPI Eina_Bool 471EAPI Eina_Bool
471emile_cipher_free(Emile_SSL *emile) 472emile_cipher_free(Emile_SSL *emile EINA_UNUSED)
472{ 473{
474 return EINA_TRUE;
473} 475}
474 476
475EAPI Eina_Bool 477EAPI Eina_Bool
@@ -562,11 +564,13 @@ emile_cipher_read(Emile_SSL *emile, Eina_Binbuf *buffer)
562 num = gnutls_record_recv(emile->session, 564 num = gnutls_record_recv(emile->session,
563 (void*) eina_binbuf_string_get(buffer), 565 (void*) eina_binbuf_string_get(buffer),
564 eina_binbuf_length_get(buffer)); 566 eina_binbuf_length_get(buffer));
567 return 0;
565} 568}
566 569
567EAPI int 570EAPI int
568emile_cipher_write(Emile_SSL *emile, const Eina_Binbuf *buffer) 571emile_cipher_write(Emile_SSL *emile EINA_UNUSED, const Eina_Binbuf *buffer EINA_UNUSED)
569{ 572{
573 return 0;
570} 574}
571 575
572EAPI const char * 576EAPI const char *