aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2010-09-28 23:55:34 +0200
committerStefan Monnier2010-09-28 23:55:34 +0200
commita6f3211f1090a904aaa81c388fbae7b560794432 (patch)
tree638c1b7f4fbebb4f032699a6943ca77c62aecb82 /src
parent5b5dafd2cb164810a458c3ce52dce099ecbf8546 (diff)
downloademacs-a6f3211f1090a904aaa81c388fbae7b560794432.tar.gz
emacs-a6f3211f1090a904aaa81c388fbae7b560794432.zip
* src/gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
(Fgnutls_boot): Use SDATA. (Fgnutls_handshake): Remove unused var `max_log_level'.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/gnutls.c9
2 files changed, 10 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a378097d7fd..269483f1625 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
4 (Fgnutls_boot): Use SDATA.
5 (Fgnutls_handshake): Remove unused var `max_log_level'.
6
12010-09-27 Michael Albinus <michael.albinus@gmx.de> 72010-09-27 Michael Albinus <michael.albinus@gmx.de>
2 8
3 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0". 9 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
diff --git a/src/gnutls.c b/src/gnutls.c
index c2d664ff97e..4b8016aab37 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -265,8 +265,6 @@ KEYFILE and optionally CALLBACK. */)
265 gnutls_session_t state; 265 gnutls_session_t state;
266 gnutls_certificate_credentials_t x509_cred; 266 gnutls_certificate_credentials_t x509_cred;
267 gnutls_anon_client_credentials_t anon_cred; 267 gnutls_anon_client_credentials_t anon_cred;
268 gnutls_srp_client_credentials_t srp_cred;
269 gnutls_datum_t data;
270 Lisp_Object global_init; 268 Lisp_Object global_init;
271 269
272 CHECK_PROCESS (proc); 270 CHECK_PROCESS (proc);
@@ -355,7 +353,7 @@ KEYFILE and optionally CALLBACK. */)
355 GNUTLS_LOG (1, max_log_level, "setting the trustfile"); 353 GNUTLS_LOG (1, max_log_level, "setting the trustfile");
356 ret = gnutls_certificate_set_x509_trust_file 354 ret = gnutls_certificate_set_x509_trust_file
357 (x509_cred, 355 (x509_cred,
358 XSTRING (trustfile)->data, 356 SDATA (trustfile),
359 file_format); 357 file_format);
360 358
361 if (ret < GNUTLS_E_SUCCESS) 359 if (ret < GNUTLS_E_SUCCESS)
@@ -367,7 +365,7 @@ KEYFILE and optionally CALLBACK. */)
367 GNUTLS_LOG (1, max_log_level, "setting the keyfile"); 365 GNUTLS_LOG (1, max_log_level, "setting the keyfile");
368 ret = gnutls_certificate_set_x509_crl_file 366 ret = gnutls_certificate_set_x509_crl_file
369 (x509_cred, 367 (x509_cred,
370 XSTRING (keyfile)->data, 368 SDATA (keyfile),
371 file_format); 369 file_format);
372 370
373 if (ret < GNUTLS_E_SUCCESS) 371 if (ret < GNUTLS_E_SUCCESS)
@@ -478,7 +476,6 @@ or `gnutls-e-interrupted'. In that case you may resume the handshake
478{ 476{
479 gnutls_session_t state; 477 gnutls_session_t state;
480 int ret; 478 int ret;
481 int max_log_level = XPROCESS (proc)->gnutls_log_level;
482 479
483 CHECK_PROCESS (proc); 480 CHECK_PROCESS (proc);
484 state = XPROCESS (proc)->gnutls_state; 481 state = XPROCESS (proc)->gnutls_state;
@@ -494,6 +491,8 @@ or `gnutls-e-interrupted'. In that case you may resume the handshake
494 message ("gnutls: handshake: setting the transport pointers to %d/%d", 491 message ("gnutls: handshake: setting the transport pointers to %d/%d",
495 XPROCESS (proc)->infd, XPROCESS (proc)->outfd); 492 XPROCESS (proc)->infd, XPROCESS (proc)->outfd);
496 493
494 /* FIXME: This can't be right: infd and outfd are integers (file handles)
495 whereas the function expects args of type gnutls_transport_ptr_t. */
497 gnutls_transport_set_ptr2 (state, XPROCESS (proc)->infd, 496 gnutls_transport_set_ptr2 (state, XPROCESS (proc)->infd,
498 XPROCESS (proc)->outfd); 497 XPROCESS (proc)->outfd);
499 498