aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2011-05-02 04:49:06 +0200
committerJuanma Barranquero2011-05-02 04:49:06 +0200
commitbafcf6a5549e9b0fcce1671c1100716fc4c0c9b3 (patch)
tree0216671a89900f887afd40a3002fa4d2705d9b69 /src
parent84621b7162b84bffeb5e46bf975ccd7318ad7cfb (diff)
downloademacs-bafcf6a5549e9b0fcce1671c1100716fc4c0c9b3.tar.gz
emacs-bafcf6a5549e9b0fcce1671c1100716fc4c0c9b3.zip
src/gnutls.c: Make static a bunch of variables.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog12
-rw-r--r--src/gnutls.c35
2 files changed, 30 insertions, 17 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 625dfb07621..2137c133f54 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,15 @@
12011-05-02 Juanma Barranquero <lekktu@gmail.com>
2
3 * gnutls.c (Qgnutls_log_level, Qgnutls_code, Qgnutls_anon)
4 (Qgnutls_x509pki, Qgnutls_e_interrupted, Qgnutls_e_again)
5 (Qgnutls_e_invalid_session, Qgnutls_e_not_ready_for_handshake)
6 (gnutls_global_initialized, Qgnutls_bootprop_priority)
7 (Qgnutls_bootprop_trustfiles, Qgnutls_bootprop_keyfiles)
8 (Qgnutls_bootprop_callbacks, Qgnutls_bootprop_loglevel)
9 (Qgnutls_bootprop_hostname, Qgnutls_bootprop_verify_flags)
10 (Qgnutls_bootprop_verify_error, Qgnutls_bootprop_verify_hostname_error)
11 (Qgnutls_bootprop_callbacks_verify): Make static.
12
12011-05-01 Andreas Schwab <schwab@linux-m68k.org> 132011-05-01 Andreas Schwab <schwab@linux-m68k.org>
2 14
3 * callproc.c: Indentation fixup. 15 * callproc.c: Indentation fixup.
diff --git a/src/gnutls.c b/src/gnutls.c
index 16a459bd62f..8e41be20505 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -34,26 +34,26 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
34static int 34static int
35emacs_gnutls_handle_error (gnutls_session_t, int err); 35emacs_gnutls_handle_error (gnutls_session_t, int err);
36 36
37Lisp_Object Qgnutls_log_level; 37static Lisp_Object Qgnutls_log_level;
38Lisp_Object Qgnutls_code; 38static Lisp_Object Qgnutls_code;
39Lisp_Object Qgnutls_anon, Qgnutls_x509pki; 39static Lisp_Object Qgnutls_anon, Qgnutls_x509pki;
40Lisp_Object Qgnutls_e_interrupted, Qgnutls_e_again, 40static Lisp_Object Qgnutls_e_interrupted, Qgnutls_e_again,
41 Qgnutls_e_invalid_session, Qgnutls_e_not_ready_for_handshake; 41 Qgnutls_e_invalid_session, Qgnutls_e_not_ready_for_handshake;
42int gnutls_global_initialized; 42static int gnutls_global_initialized;
43 43
44/* The following are for the property list of `gnutls-boot'. */ 44/* The following are for the property list of `gnutls-boot'. */
45Lisp_Object Qgnutls_bootprop_priority; 45static Lisp_Object Qgnutls_bootprop_priority;
46Lisp_Object Qgnutls_bootprop_trustfiles; 46static Lisp_Object Qgnutls_bootprop_trustfiles;
47Lisp_Object Qgnutls_bootprop_keyfiles; 47static Lisp_Object Qgnutls_bootprop_keyfiles;
48Lisp_Object Qgnutls_bootprop_callbacks; 48static Lisp_Object Qgnutls_bootprop_callbacks;
49Lisp_Object Qgnutls_bootprop_loglevel; 49static Lisp_Object Qgnutls_bootprop_loglevel;
50Lisp_Object Qgnutls_bootprop_hostname; 50static Lisp_Object Qgnutls_bootprop_hostname;
51Lisp_Object Qgnutls_bootprop_verify_flags; 51static Lisp_Object Qgnutls_bootprop_verify_flags;
52Lisp_Object Qgnutls_bootprop_verify_error; 52static Lisp_Object Qgnutls_bootprop_verify_error;
53Lisp_Object Qgnutls_bootprop_verify_hostname_error; 53static Lisp_Object Qgnutls_bootprop_verify_hostname_error;
54 54
55/* Callback keys for `gnutls-boot'. Unused currently. */ 55/* Callback keys for `gnutls-boot'. Unused currently. */
56Lisp_Object Qgnutls_bootprop_callbacks_verify; 56static Lisp_Object Qgnutls_bootprop_callbacks_verify;
57 57
58static void 58static void
59gnutls_log_function (int level, const char* string) 59gnutls_log_function (int level, const char* string)
@@ -490,7 +490,7 @@ one trustfile (usually a CA bundle). */)
490 /* callbacks = Fplist_get (proplist, Qgnutls_bootprop_callbacks); */ 490 /* callbacks = Fplist_get (proplist, Qgnutls_bootprop_callbacks); */
491 loglevel = Fplist_get (proplist, Qgnutls_bootprop_loglevel); 491 loglevel = Fplist_get (proplist, Qgnutls_bootprop_loglevel);
492 verify_flags = Fplist_get (proplist, Qgnutls_bootprop_verify_flags); 492 verify_flags = Fplist_get (proplist, Qgnutls_bootprop_verify_flags);
493 /* verify_error = Fplist_get (proplist, Qgnutls_bootprop_verify_error); */ 493 /* verify_error = Fplist_get (proplist, Qgnutls_bootprop_verify_error); */
494 verify_hostname_error = Fplist_get (proplist, Qgnutls_bootprop_verify_hostname_error); 494 verify_hostname_error = Fplist_get (proplist, Qgnutls_bootprop_verify_hostname_error);
495 495
496 if (!STRINGP (hostname)) 496 if (!STRINGP (hostname))
@@ -918,4 +918,5 @@ syms_of_gnutls (void)
918 defsubr (&Sgnutls_deinit); 918 defsubr (&Sgnutls_deinit);
919 defsubr (&Sgnutls_bye); 919 defsubr (&Sgnutls_bye);
920} 920}
921#endif 921
922#endif /* HAVE_GNUTLS */