aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorKenichi Handa2011-07-07 08:28:00 +0900
committerKenichi Handa2011-07-07 08:28:00 +0900
commitd2a0a50628933d3cdb09818eee2e17f55e22531f (patch)
treed19c8e71eb63eb6ccd204c2f36f406e4cf853154 /src/ChangeLog
parentc805dec0b5fa81b5c9f2b724e2ec12a17d723aca (diff)
parent354cf0ba0b20108c9776be1d868458893bc2cd54 (diff)
downloademacs-d2a0a50628933d3cdb09818eee2e17f55e22531f.tar.gz
emacs-d2a0a50628933d3cdb09818eee2e17f55e22531f.zip
merge trunk
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog432
1 files changed, 426 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 1a56298ee20..a3536cda7a4 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -40,6 +40,426 @@
40 * font.c (font_range): Adjusted for the change of 40 * font.c (font_range): Adjusted for the change of
41 Vunicode_category_table. 41 Vunicode_category_table.
42 42
432011-07-06 Paul Eggert <eggert@cs.ucla.edu>
44
45 Remove unportable assumption about struct layout (Bug#8884).
46 * alloc.c (mark_buffer):
47 * buffer.c (reset_buffer_local_variables, Fbuffer_local_variables)
48 (clone_per_buffer_values): Don't assume that
49 sizeof (struct buffer) is a multiple of sizeof (Lisp_Object).
50 This isn't true in general, and it's particularly not true
51 if Emacs is configured with --with-wide-int.
52 * buffer.h (FIRST_FIELD_PER_BUFFER, LAST_FIELD_PER_BUFFER):
53 New macros, used in the buffer.c change.
54
552011-07-05 Jan Djärv <jan.h.d@swipnet.se>
56
57 * xsettings.c: Use both GConf and GSettings if both are available.
58 (store_config_changed_event): Add comment.
59 (dpyinfo_valid, store_font_name_changed, map_tool_bar_style)
60 (store_tool_bar_style_changed): New functions.
61 (store_monospaced_changed): Add comment. Call dpyinfo_valid.
62 (struct xsettings): Move font inside HAVE_XFT.
63 (GSETTINGS_TOOL_BAR_STYLE, GSETTINGS_FONT_NAME): New defines.
64 (GSETTINGS_MONO_FONT): Renamed from SYSTEM_MONO_FONT.
65 Move inside HAVE_XFT.
66 (something_changed_gsettingsCB): Renamed from something_changedCB.
67 Check for changes in GSETTINGS_TOOL_BAR_STYLE and GSETTINGS_FONT_NAME
68 also.
69 (GCONF_TOOL_BAR_STYLE, GCONF_FONT_NAME): New defines.
70 (GCONF_MONO_FONT): Renamed from SYSTEM_MONO_FONT. Move inside HAVE_XFT.
71 (something_changed_gconfCB): Renamed from something_changedCB.
72 Check for changes in GCONF_TOOL_BAR_STYLE and GCONF_FONT_NAME also.
73 (parse_settings): Move check for font inside HAVE_XFT.
74 (read_settings, apply_xft_settings): Add comment.
75 (read_and_apply_settings): Add comment. Call map_tool_bar_style and
76 store_tool_bar_style_changed. Move check for font inside HAVE_XFT and
77 call store_font_name_changed.
78 (xft_settings_event): Add comment.
79 (init_gsettings): Add comment. Get values for GSETTINGS_TOOL_BAR_STYLE
80 and GSETTINGS_FONT_NAME. Move check for fonts within HAVE_XFT.
81 (init_gconf): Add comment. Get values for GCONF_TOOL_BAR_STYLE
82 and GCONF_FONT_NAME. Move check for fonts within HAVE_XFT.
83 (xsettings_initialize): Call init_gsettings last.
84 (xsettings_get_system_font, xsettings_get_system_normal_font): Add
85 comment.
86
872011-07-05 Paul Eggert <eggert@cs.ucla.edu>
88
89 Random fixes. E.g., (random) never returned negative values.
90 * fns.c (Frandom): Use GET_EMACS_TIME for random seed, and add the
91 subseconds part to the entropy, as that's a bit more random.
92 Prefer signed to unsigned, since the signedness doesn't matter and
93 in general we prefer signed. When given a limit, use a
94 denominator equal to INTMASK + 1, not to VALMASK + 1, because the
95 latter isn't right if USE_2_TAGS_FOR_INTS.
96 * sysdep.c (get_random): Return a value in the range 0..INTMASK,
97 not 0..VALMASK. Don't discard "excess" bits that random () returns.
98
992011-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
100
101 * textprop.c (text_property_stickiness):
102 Obey Vtext_property_default_nonsticky.
103 (syms_of_textprop): Add `display' to Vtext_property_default_nonsticky.
104 * w32fns.c (syms_of_w32fns):
105 * xfns.c (syms_of_xfns): Don't Add `display' since it's there by default.
106
1072011-07-04 Paul Eggert <eggert@cs.ucla.edu>
108
109 * fileio.c (barf_or_query_if_file_exists): Use S_ISDIR.
110 This is more efficient than Ffile_directory_p and avoids a minor race.
111
1122011-07-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
113
114 * buffer.c (Foverlay_put): Say what the return value is
115 (bug#7835).
116
117 * fileio.c (barf_or_query_if_file_exists): Check first if the file
118 is a directory before asking whether to use the file name
119 (bug#7564).
120 (barf_or_query_if_file_exists): Make the "File is a directory"
121 error be more correct.
122
123 * fns.c (Frequire): Remove the mention of the .gz files, since
124 that's installation-specific, but keep the mention of
125 `get-load-suffixes'.
126
1272011-07-04 Paul Eggert <eggert@cs.ucla.edu>
128
129 * editfns.c (Fformat_time_string): Don't assume strlen fits in int.
130 Report string overflow if the output is too long.
131
1322011-07-04 Juanma Barranquero <lekktu@gmail.com>
133
134 * gnutls.c (Fgnutls_boot): Don't mention :verify-error.
135 (syms_of_gnutls): Remove duplicate DEFSYM for
136 Qgnutls_bootprop_verify_hostname_error, an error for
137 Qgnutls_bootprop_verify_error (which is no longer used).
138
139 * eval.c (find_handler_clause): Remove parameters `sig' and `data',
140 unused since 2011-01-26T20:02:07Z!monnier@iro.umontreal.ca. All callers changed.
141 Also (re)move comments that are misplaced or no longer relevant.
142
1432011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
144
145 * callint.c (Finteractive): Clarify the meaning of "@" (bug#8813).
146
1472011-07-03 Chong Yidong <cyd@stupidchicken.com>
148
149 * xfaces.c (Finternal_merge_in_global_face): Modify the foreground
150 and background color parameters if they have been changed.
151
1522011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
153
154 * editfns.c (Fformat): Clarify the - and 0 flags (bug#6659).
155
1562011-07-03 Paul Eggert <eggert@cs.ucla.edu>
157
158 * xsettings.c (SYSTEM_FONT): Define only when used.
159 No need to define when HAVE_GSETTINGS || !HAVE_XFT.
160
161 * keymap.c (access_keymap_1): Now static.
162
1632011-07-02 Chong Yidong <cyd@stupidchicken.com>
164
165 * keyboard.c (command_loop_1): If a down-mouse event is unbound,
166 leave any prefix arg for the up event (Bug#1586).
167
1682011-07-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
169
170 * lread.c (syms_of_lread): Mention single symbols defined by
171 `defvar' or `defconst' (bug#7154).
172
173 * fns.c (Frequire): Mention .el.gz files (bug#7314).
174 (Frequire): Mention get-load-suffixes.
175
1762011-07-02 Martin Rudalics <rudalics@gmx.at>
177
178 * window.h (window): Remove clone_number slot.
179 * window.c (Fwindow_clone_number, Fset_window_clone_number):
180 Remove.
181 (make_parent_window, make_window, saved_window)
182 (Fset_window_configuration, save_window_save): Don't deal with
183 clone numbers.
184 * buffer.c (Qclone_number): Remove declaration.
185 (sort_overlays, overlay_strings): Don't deal with clone numbers.
186
1872011-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
188
189 Add multiple inheritance to keymaps.
190 * keymap.c (Fmake_composed_keymap): New function.
191 (Fset_keymap_parent): Simplify.
192 (fix_submap_inheritance): Remove.
193 (access_keymap_1): New function extracted from access_keymap to handle
194 embedded parents and handle lists of maps.
195 (access_keymap): Use it.
196 (Fkeymap_prompt, map_keymap_internal, map_keymap, store_in_keymap)
197 (Fcopy_keymap): Handle embedded parents.
198 (Fcommand_remapping, define_as_prefix): Simplify.
199 (Fkey_binding): Simplify.
200 (syms_of_keymap): Move minibuffer-local-completion-map,
201 minibuffer-local-filename-completion-map,
202 minibuffer-local-must-match-map, and
203 minibuffer-local-filename-must-match-map to Elisp.
204 (syms_of_keymap): Defsubr make-composed-keymap.
205 * keyboard.c (menu_bar_items): Use map_keymap_canonical.
206 (parse_menu_item): Trivial simplification.
207
2082011-07-01 Glenn Morris <rgm@gnu.org>
209
210 * Makefile.in (SETTINGS_LIBS): Fix typo.
211
2122011-07-01 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny patch)
213
214 * coding.c (Fencode_coding_string): Record the last coding system
215 used, as the function doc string says (bug#8738).
216
2172011-07-01 Jan Djärv <jan.h.d@swipnet.se>
218
219 * xsettings.c (store_monospaced_changed): Take new font as arg and
220 check for change against current_mono_font.
221 (EMACS_TYPE_SETTINGS): Remove this and related defines.
222 (emacs_settings_constructor, emacs_settings_get_property)
223 (emacs_settings_set_property, emacs_settings_class_init)
224 (emacs_settings_init, gsettings_obj): Remove.
225 (something_changedCB): New function for HAVE_GSETTINGS.
226 (something_changedCB): HAVE_GCONF: Call store_monospaced_changed
227 with value as argument.
228 (init_gsettings): Check that GSETTINGS_SCHEMA exists before calling
229 g_settings_new (Bug#8967). Do not create gsettings_obj.
230 Remove calls to g_settings_bind. Connect something_changedCB to
231 "changed".
232
233 * xgselect.c: Add defined (HAVE_GSETTINGS).
234 (xgselect_initialize): Ditto.
235
236 * process.c: Add defined (HAVE_GSETTINGS) for xgselect.h
237 (wait_reading_process_output): Add defined (HAVE_GSETTINGS) for
238 xg_select.
239
2402011-07-01 Paul Eggert <eggert@cs.ucla.edu>
241
242 * eval.c (struct backtrace): Simplify and port the data structure.
243 Do not assume that "int nargs : BITS_PER_INT - 2;" produces a
244 signed bit field, as this assumption is not portable and it makes
245 Emacs crash when compiled with Sun C 5.8 on sparc. Do not use
246 "char debug_on_exit : 1" as this is not portable either; instead,
247 use the portable "unsigned int debug_on_exit : 1". Remove unused
248 member evalargs. Remove obsolete comments about cc bombing out.
249
2502011-06-30 Jan Djärv <jan.h.d@swipnet.se>
251
252 * xsettings.c: Include glib-object.h, gio/gio.h if HAVE_GSETTINGS.
253 Let HAVE_GSETTINGS override HAVE_GCONF.
254 (store_monospaced_changed): New function.
255 (EMACS_SETTINGS): A new type derived from GObject to handle
256 GSettings notifications.
257 (emacs_settings_constructor, emacs_settings_get_property)
258 (emacs_settings_set_property, emacs_settings_class_init):
259 New functions.
260 (gsettings_client, gsettings_obj): New variables.
261 (GSETTINGS_SCHEMA): New define.
262 (something_changedCB): Call store_monospaced_changed.
263 (init_gsettings): New function.
264 (xsettings_initialize): Call init_gsettings.
265 (syms_of_xsettings): Initialize gsettings_client, gsettings_obj
266 to NULL.
267
268 * Makefile.in (SETTINGS_CFLAGS, SETTINGS_LIBS): Renamed from
269 GCONF_CFLAGS/LIBS.
270
2712011-06-29 Martin Rudalics <rudalics@gmx.at>
272
273 * window.c (resize_root_window, grow_mini_window)
274 (shrink_mini_window): Rename Qresize_root_window to
275 Qwindow_resize_root_window and Qresize_root_window_vertically to
276 Qwindow_resize_root_window_vertically.
277
2782011-06-28 Paul Eggert <eggert@cs.ucla.edu>
279
280 * gnutls.c (Qgnutls_bootprop_verify_error): Remove unused var.
281
2822011-06-27 Juanma Barranquero <lekktu@gmail.com>
283
284 * makefile.w32-in: Redesign dependencies so they reflect more
285 clearly which files are directly included by each source file,
286 and not through other includes.
287
2882011-06-27 Martin Rudalics <rudalics@gmx.at>
289
290 * buffer.c (Qclone_number): Declare static and DEFSYM it.
291 (sort_overlays, overlay_strings): When an overlay's clone number
292 matches the window's clone number process the overlay even if
293 the overlay's window property doesn't match the current window.
294
295 * window.c (Fwindow_vchild): Rename to Fwindow_top_child.
296 (Fwindow_hchild): Rename to Fwindow_left_child.
297 (Fwindow_next): Rename to Fwindow_next_sibling.
298 (Fwindow_prev): Rename to Fwindow_prev_sibling.
299 (resize_window_check): Rename to window_resize_check.
300 (resize_window_apply): Rename to window_resize_apply.
301 (Fresize_window_apply): Rename to Fwindow_resize_apply.
302 (Fdelete_other_windows_internal, resize_frame_windows)
303 (Fsplit_window_internal, Fdelete_window_internal)
304 (grow_mini_window, shrink_mini_window)
305 (Fresize_mini_window_internal): Fix callers accordingly.
306
3072011-06-26 Jan Djärv <jan.h.d@swipnet.se>
308
309 * emacsgtkfixed.h: State that this is only used with Gtk+3.
310 (emacs_fixed_set_min_size): Remove.
311 (emacs_fixed_new): Take frame as argument.
312
313 * emacsgtkfixed.c: State that this is only used with Gtk+3.
314 (_EmacsFixedPrivate): Remove minwidth/height.
315 Add struct frame *f.
316 (emacs_fixed_init): Initialize priv->f.
317 (get_parent_class, emacs_fixed_set_min_size): Remove.
318 (emacs_fixed_new): Set priv->f to argument.
319 (emacs_fixed_get_preferred_width)
320 (emacs_fixed_get_preferred_height): Use min_width/height from
321 frames size_hint to set minimum and natural (Bug#8919).
322 (XSetWMSizeHints, XSetWMNormalHints): Override these functions
323 and use min_width/height from frames size_hint to set
324 min_width/height (Bug#8919).
325
326 * gtkutil.c (xg_create_frame_widgets): Pass f to emacs_fixed_new.
327 (x_wm_set_size_hint): Remove call to emacs_fixed_set_min_size.
328 Fix indentation.
329
3302011-06-26 Eli Zaretskii <eliz@gnu.org>
331
332 * bidi.c (bidi_paragraph_init): Test for ZV_BYTE before calling
333 bidi_at_paragraph_end, since fast_looking_at doesn't like to be
334 called at ZV.
335
3362011-06-26 Chong Yidong <cyd@stupidchicken.com>
337
338 * process.c (wait_reading_process_output): Bypass select if
339 waiting for a cell while ignoring keyboard input, and input is
340 pending. Suggested by Jan Djärv (Bug#8869).
341
3422011-06-25 Paul Eggert <eggert@cs.ucla.edu>
343
344 Use gnulib's dup2 module instead of rolling our own.
345 * sysdep.c (dup2) [!HAVE_DUP2]: Remove; gnulib now does this.
346
3472011-06-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
348
349 * dispnew.c (scrolling_window): Before scrolling, turn off a
350 mouse-highlight in the window being scrolled.
351
3522011-06-24 Juanma Barranquero <lekktu@gmail.com>
353
354 Move DEFSYM to lisp.h and use everywhere.
355
356 * character.h (DEFSYM): Move declaration...
357 * lisp.h (DEFSYM): ...here.
358
359 * gnutls.c:
360 * minibuf.c:
361 * w32menu.c:
362 * w32proc.c:
363 * w32select.c: Don't include character.h.
364
365 * alloc.c (syms_of_alloc):
366 * buffer.c (syms_of_buffer):
367 * bytecode.c (syms_of_bytecode):
368 * callint.c (syms_of_callint):
369 * casefiddle.c (syms_of_casefiddle):
370 * casetab.c (init_casetab_once):
371 * category.c (init_category_once, syms_of_category):
372 * ccl.c (syms_of_ccl):
373 * cmds.c (syms_of_cmds):
374 * composite.c (syms_of_composite):
375 * dbusbind.c (syms_of_dbusbind):
376 * dired.c (syms_of_dired):
377 * dispnew.c (syms_of_display):
378 * doc.c (syms_of_doc):
379 * editfns.c (syms_of_editfns):
380 * emacs.c (syms_of_emacs):
381 * eval.c (syms_of_eval):
382 * fileio.c (syms_of_fileio):
383 * fns.c (syms_of_fns):
384 * frame.c (syms_of_frame):
385 * fringe.c (syms_of_fringe):
386 * insdel.c (syms_of_insdel):
387 * keymap.c (syms_of_keymap):
388 * lread.c (init_obarray, syms_of_lread):
389 * macros.c (syms_of_macros):
390 * msdos.c (syms_of_msdos):
391 * print.c (syms_of_print):
392 * process.c (syms_of_process):
393 * search.c (syms_of_search):
394 * sound.c (syms_of_sound):
395 * syntax.c (init_syntax_once, syms_of_syntax):
396 * terminal.c (syms_of_terminal):
397 * textprop.c (syms_of_textprop):
398 * undo.c (syms_of_undo):
399 * w32.c (globals_of_w32):
400 * window.c (syms_of_window):
401 * xdisp.c (syms_of_xdisp):
402 * xfaces.c (syms_of_xfaces):
403 * xfns.c (syms_of_xfns):
404 * xmenu.c (syms_of_xmenu):
405 * xsettings.c (syms_of_xsettings):
406 * xterm.c (syms_of_xterm): Use DEFSYM.
407
4082011-06-24 Teodor Zlatanov <tzz@lifelogs.com>
409
410 * gnutls.c (syms_of_gnutls): Use the DEFSYM macro from character.h.
411
4122011-06-23 Paul Eggert <eggert@cs.ucla.edu>
413
414 Integer and buffer overflow fixes (Bug#8873).
415
416 * print.c (printchar, strout): Check for string overflow.
417 (PRINTPREPARE, printchar, strout):
418 Don't set size unless allocation succeeds.
419
420 * minibuf.c (read_minibuf_noninteractive): Use ptrdiff_t, not int,
421 for sizes. Check for string overflow more accurately.
422 Simplify newline removal at end; this suppresses a GCC 4.6.0 warning.
423
424 * macros.c: Integer and buffer overflow fixes.
425 * keyboard.h (struct keyboard.kbd_macro_bufsize):
426 * macros.c (Fstart_kbd_macro, store_kbd_macro_char):
427 Use ptrdiff_t, not int, for sizes.
428 Don't increment bufsize until after realloc succeeds.
429 Check for size-calculation overflow.
430 (Fstart_kbd_macro): Use EMACS_INT, not int, for XINT result.
431
432 * lisp.h (DEFVAR_KBOARD): Use offsetof instead of char * finagling.
433
434 * lread.c: Integer overflow fixes.
435 (read_integer): Radix is now EMACS_INT, not int,
436 to improve quality of diagnostics for out-of-range radices.
437 Calculate buffer size correctly for out-of-range radices.
438 (read1): Check for integer overflow in radices, and in
439 read-circle numbers.
440 (read_escape): Avoid int overflow.
441 (Fload, openp, read_buffer_size, read1)
442 (substitute_object_recurse, read_vector, read_list, map_obarray):
443 Use ptrdiff_t, not int, for sizes.
444 (read1): Use EMACS_INT, not int, for sizes.
445 Check for size overflow.
446
447 * image.c (cache_image): Check for size arithmetic overflow.
448
449 * lread.c: Integer overflow issues.
450 (saved_doc_string_size, saved_doc_string_length)
451 (prev_saved_doc_string_size, prev_saved_doc_string_length):
452 Now ptrdiff_t, not int.
453 (read1): Don't assume doc string length fits in int. Check for
454 out-of-range doc string lengths.
455 (read_list): Don't assume file position fits in int.
456 (read_escape): Check for hex character overflow.
457
4582011-06-22 Leo Liu <sdl.web@gmail.com>
459
460 * minibuf.c (Fcompleting_read_default, Vcompleting_read_function):
461 Move to minibuffer.el.
462
432011-06-22 Paul Eggert <eggert@cs.ucla.edu> 4632011-06-22 Paul Eggert <eggert@cs.ucla.edu>
44 464
45 Fixes for GLYPH_DEBUG found by GCC 4.6.0 static checking. 465 Fixes for GLYPH_DEBUG found by GCC 4.6.0 static checking.
@@ -272,7 +692,7 @@
272 692
2732011-06-22 Jim Meyering <meyering@redhat.com> 6932011-06-22 Jim Meyering <meyering@redhat.com>
274 694
275 don't leak an XBM-image-sized buffer 695 Don't leak an XBM-image-sized buffer
276 * image.c (xbm_load): Free the image buffer after using it. 696 * image.c (xbm_load): Free the image buffer after using it.
277 697
2782011-06-21 Paul Eggert <eggert@cs.ucla.edu> 6982011-06-21 Paul Eggert <eggert@cs.ucla.edu>
@@ -292,7 +712,7 @@
292 712
293 * fns.c (secure_hash): Rename from crypto_hash_function and change 713 * fns.c (secure_hash): Rename from crypto_hash_function and change
294 the first arg to accept symbols. 714 the first arg to accept symbols.
295 (Fsecure_hash): New primtive. 715 (Fsecure_hash): New primitive.
296 (syms_of_fns): New symbols. 716 (syms_of_fns): New symbols.
297 717
2982011-06-20 Deniz Dogan <deniz@dogan.se> 7182011-06-20 Deniz Dogan <deniz@dogan.se>
@@ -1466,7 +1886,7 @@
1466 and %.0c. Fix bug with strchr succeeding on '\0' when looking for 1886 and %.0c. Fix bug with strchr succeeding on '\0' when looking for
1467 flags. Fix bug with (format "%c" 256.0). Avoid integer overflow when 1887 flags. Fix bug with (format "%c" 256.0). Avoid integer overflow when
1468 formatting out-of-range floating point numbers with int 1888 formatting out-of-range floating point numbers with int
1469 formats. (Bug#8668) 1889 formats. (Bug#8668)
1470 1890
1471 * lisp.h (FIXNUM_OVERFLOW_P): Work even if arg is a NaN. 1891 * lisp.h (FIXNUM_OVERFLOW_P): Work even if arg is a NaN.
1472 1892
@@ -2430,9 +2850,9 @@
2430 :verify-hostname-error, :verify-error, and :verify-flags 2850 :verify-hostname-error, :verify-error, and :verify-flags
2431 parameters of `gnutls-boot' and documented those parameters in the 2851 parameters of `gnutls-boot' and documented those parameters in the
2432 docstring. Start callback support. 2852 docstring. Start callback support.
2433 (emacs_gnutls_handshake): Add Woe32 support. Retry handshake 2853 (emacs_gnutls_handshake): Add Woe32 support. Retry handshake
2434 unless a fatal error occured. Call gnutls_alert_send_appropriate 2854 unless a fatal error occurred. Call gnutls_alert_send_appropriate
2435 on error. Return error code. 2855 on error. Return error code.
2436 (emacs_gnutls_write): Call emacs_gnutls_handle_error. 2856 (emacs_gnutls_write): Call emacs_gnutls_handle_error.
2437 (emacs_gnutls_read): Likewise. 2857 (emacs_gnutls_read): Likewise.
2438 (Fgnutls_boot): Return handshake error code. 2858 (Fgnutls_boot): Return handshake error code.