aboutsummaryrefslogtreecommitdiffstats
path: root/src/makefile.w32-in
diff options
context:
space:
mode:
authorTed Zlatanov2011-04-24 20:30:51 -0500
committerTed Zlatanov2011-04-24 20:30:51 -0500
commite061a11b5a59f02fac66184e991f01a433f6dc8d (patch)
treeccff6a6012dbc1ed4ce247b9e4e84a38c5eb34af /src/makefile.w32-in
parent33630d51504adc5b2a0289f356c0a1a49f0bd10a (diff)
downloademacs-e061a11b5a59f02fac66184e991f01a433f6dc8d.tar.gz
emacs-e061a11b5a59f02fac66184e991f01a433f6dc8d.zip
Add GnuTLS support for W32 and certificate and hostname verification in GnuTLS.
* src/gnutls.c: Renamed global_initialized to gnutls_global_initialized. Added internals for the :verify-hostname-error, :verify-error, and :verify-flags parameters of `gnutls-boot' and documented those parameters in the docstring. Start callback support. (emacs_gnutls_handshake): Add Woe32 support. Retry handshake unless a fatal error occured. Call gnutls_alert_send_appropriate on error. Return error code. (emacs_gnutls_write): Call emacs_gnutls_handle_error. (emacs_gnutls_read): Likewise. (Fgnutls_boot): Return handshake error code. (emacs_gnutls_handle_error): New function. (wsaerror_to_errno): Likewise. * src/gnutls.h: Add GNUTLS_STAGE_CALLBACKS enum to denote we're in the callbacks stage. * src/w32.c (emacs_gnutls_pull): New function for GnuTLS on Woe32. (emacs_gnutls_push): Likewise. * src/w32.h (emacs_gnutls_pull): Add prototype. (emacs_gnutls_push): Likewise.
Diffstat (limited to 'src/makefile.w32-in')
-rw-r--r--src/makefile.w32-in10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/makefile.w32-in b/src/makefile.w32-in
index 0dd06b7efc3..4ba314318db 100644
--- a/src/makefile.w32-in
+++ b/src/makefile.w32-in
@@ -105,6 +105,7 @@ OBJ2 = $(BLD)/sysdep.$(O) \
105 $(BLD)/floatfns.$(O) \ 105 $(BLD)/floatfns.$(O) \
106 $(BLD)/frame.$(O) \ 106 $(BLD)/frame.$(O) \
107 $(BLD)/gmalloc.$(O) \ 107 $(BLD)/gmalloc.$(O) \
108 $(BLD)/gnutls.$(O) \
108 $(BLD)/intervals.$(O) \ 109 $(BLD)/intervals.$(O) \
109 $(BLD)/composite.$(O) \ 110 $(BLD)/composite.$(O) \
110 $(BLD)/ralloc.$(O) \ 111 $(BLD)/ralloc.$(O) \
@@ -150,6 +151,7 @@ LIBS = $(TLIB0) \
150 $(OLE32) \ 151 $(OLE32) \
151 $(COMCTL32) \ 152 $(COMCTL32) \
152 $(UNISCRIBE) \ 153 $(UNISCRIBE) \
154 $(USER_LIBS) \
153 $(libc) 155 $(libc)
154 156
155# 157#
@@ -950,6 +952,14 @@ $(BLD)/gmalloc.$(O) : \
950 $(EMACS_ROOT)/nt/inc/unistd.h \ 952 $(EMACS_ROOT)/nt/inc/unistd.h \
951 $(SRC)/getpagesize.h 953 $(SRC)/getpagesize.h
952 954
955$(BLD)/gnutls.$(O) : \
956 $(SRC)/gnutls.h \
957 $(SRC)/gnutls.c \
958 $(CONFIG_H) \
959 $(EMACS_ROOT)/nt/inc/sys/socket.h \
960 $(SRC)/lisp.h \
961 $(SRC)/process.h
962
953$(BLD)/image.$(O) : \ 963$(BLD)/image.$(O) : \
954 $(SRC)/image.c \ 964 $(SRC)/image.c \
955 $(CONFIG_H) \ 965 $(CONFIG_H) \