aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorJuanma Barranquero2011-05-04 16:03:16 +0200
committerJuanma Barranquero2011-05-04 16:03:16 +0200
commit0898ca10c0109274d24f91453036c065f9f5c056 (patch)
tree32c087173edd460b860b5c3ec8298777a39b52ca /src/ChangeLog
parent67a2aecd40f802838d97f2aeb81f0a3698c68f62 (diff)
downloademacs-0898ca10c0109274d24f91453036c065f9f5c056.tar.gz
emacs-0898ca10c0109274d24f91453036c065f9f5c056.zip
Implement dynamic loading of GnuTLS on Windows.
* lisp/term/w32-win.el (dynamic-library-alist): Add `gnutls'. * nt/INSTALL: Clarify GnuTLS support. * src/callproc.c, src/emacs.c: Include lisp.h before src/w32.h, not after. * src/gnutls.c (Qgnutls_dll): Define. (DEF_GNUTLS_FN, LOAD_GNUTLS_FN): New macros. (gnutls_*): Declare function pointers. (init_gnutls_functions): New function to initialize function pointers. (emacs_gnutls_handshake, Fgnutls_error_string, Fgnutls_deinit) (emacs_gnutls_global_init, Fgnutls_bye): Use function pointers. (emacs_gnutls_record_check_pending, emacs_gnutls_transport_set_errno): Wrappers for gnutls_record_check_pending and gnutls_transport_set_errno. (emacs_gnutls_write, emacs_gnutls_read) (emacs_gnutls_handle_error, Fgnutls_error_fatalp) (Fgnutls_available_p): New function. (Fgnutls_boot): Call Fgnutls_available_p. Use function pointers. (syms_of_gnutls) <Qgnutls_dll>: Initialize and staticpro it. (syms_of_gnutls) <Sgnutls_available_p>: defsubr it. * src/gnutls.h (GNUTLS_EMACS_ERROR_NOT_LOADED): New macro. (emacs_gnutls_write, emacs_gnutls_read): Mark as extern. (emacs_gnutls_record_check_pending, emacs_gnutls_transport_set_errno): Declare. * src/w32.c (QCloaded_from, Vlibrary_cache): Define. (w32_delayed_load): Move from image.c. When loading a library, record its filename in the :loaded-from property of the library id. (globals_of_w32) <QCloaded_from, Vlibrary_cache>: Initialize and staticpro them. (emacs_gnutls_pull, emacs_gnutls_push): Call emacs_gnutls_* functions. * src/image.c: Include w32.h. (Vimage_type_cache): Delete. (syms_of_image) <Vimage_type_cache>: Don't initialize and staticpro it. (CACHE_IMAGE_TYPE, Finit_image_library): Use Vlibrary_cache instead. (w32_delayed_load): Move to w32.c. * src/process.c: Include lisp.h before src/w32.h, not after. (wait_reading_process_output): Call emacs_gnutls_record_check_pending instead of gnutls_record_check_pending. * src/w32.h (VlibraryCache, QCloaded_from, w32_delayed_load): Declare.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bc6b89f1450..9e1705339de 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,48 @@
12011-05-04 Juanma Barranquero <lekktu@gmail.com>
2
3 Implement dynamic loading of GnuTLS on Windows.
4
5 * gnutls.h (GNUTLS_EMACS_ERROR_NOT_LOADED): New macro.
6 (emacs_gnutls_write, emacs_gnutls_read): Mark as extern.
7 (emacs_gnutls_record_check_pending, emacs_gnutls_transport_set_errno):
8 Declare.
9
10 * gnutls.c (Qgnutls_dll): Define.
11 (DEF_GNUTLS_FN, LOAD_GNUTLS_FN): New macros.
12 (gnutls_*): Declare function pointers.
13 (init_gnutls_functions): New function to initialize function pointers.
14 (emacs_gnutls_handshake, Fgnutls_error_string, Fgnutls_deinit)
15 (emacs_gnutls_global_init, Fgnutls_bye): Use function pointers.
16 (emacs_gnutls_record_check_pending, emacs_gnutls_transport_set_errno):
17 Wrappers for gnutls_record_check_pending and gnutls_transport_set_errno.
18 (emacs_gnutls_write, emacs_gnutls_read)
19 (emacs_gnutls_handle_error, Fgnutls_error_fatalp)
20 (Fgnutls_available_p): New function.
21 (Fgnutls_boot): Call Fgnutls_available_p. Use function pointers.
22 (syms_of_gnutls) <Qgnutls_dll>: Initialize and staticpro it.
23 (syms_of_gnutls) <Sgnutls_available_p>: defsubr it.
24
25 * image.c: Include w32.h.
26 (Vimage_type_cache): Delete.
27 (syms_of_image) <Vimage_type_cache>: Don't initialize and staticpro it.
28 (CACHE_IMAGE_TYPE, Finit_image_library): Use Vlibrary_cache instead.
29 (w32_delayed_load): Move to w32.c.
30
31 * w32.h (VlibraryCache, QCloaded_from, w32_delayed_load): Declare.
32
33 * w32.c (QCloaded_from, Vlibrary_cache): Define.
34 (w32_delayed_load): Move from image.c. When loading a library, record
35 its filename in the :loaded-from property of the library id.
36 (globals_of_w32) <QCloaded_from, Vlibrary_cache>:
37 Initialize and staticpro them.
38 (emacs_gnutls_pull, emacs_gnutls_push): Call emacs_gnutls_* functions.
39
40 * process.c: Include lisp.h before w32.h, not after.
41 (wait_reading_process_output): Call emacs_gnutls_record_check_pending
42 instead of gnutls_record_check_pending.
43
44 * callproc.c, emacs.c: Include lisp.h before w32.h, not after.
45
12011-05-04 Teodor Zlatanov <tzz@lifelogs.com> 462011-05-04 Teodor Zlatanov <tzz@lifelogs.com>
2 47
3 * gnutls.c (Fgnutls_boot): Support :keylist and :crlfiles options 48 * gnutls.c (Fgnutls_boot): Support :keylist and :crlfiles options