Mercurial > hg > xemacs-beta
view info/dir @ 5892:053ef01b71a8
Import the #'clear-string API from GNU, use it in tls.c
src/ChangeLog addition:
2015-04-18 Aidan Kehoe <kehoea@parhasard.net>
* sequence.c (Fclear_string): New, API from GNU. Zero a string's
contents, making sure the text is not kept around even when the
string's data is reallocated because of a changed character
length.
* sequence.c (syms_of_sequence): Make it available to Lisp.
* lisp.h: Make it available to C code.
* tls.c (nss_pk11_password): Use it.
* tls.c (gnutls_pk11_password): Use it.
* tls.c (openssl_password): Use it.
tests/ChangeLog addition:
2015-04-18 Aidan Kehoe <kehoea@parhasard.net>
* automated/lisp-tests.el:
Test #'clear-string, just added. Unfortunately there's no way to
be certain from Lisp that the old password data has been erased
after realloc; it may be worth adding a test to tests.c, but
*we'll be reading memory we shouldn't be*, so that gives me pause.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sat, 18 Apr 2015 23:00:14 +0100 |
parents | c2580215c222 |
children |
line wrap: on
line source
-*- Text -*- This is the file .../info/dir, which contains the topmost node of the Info hierarchy. The first time you invoke Info you start off looking at that node, which is (dir)Top. Rather than adding new nodes to this directory (and this file) it is a better idea to put them in a site-local directory, and then configure info to search in that directory as well. That way, you won't have to re-edit this file when a new release of the editor comes out. For example, you could add this code to .../lisp/site-start.el, which is loaded before ~/.emacs each time the editor starts up: ;; find local info nodes (setq Info-directory-list (append Info-directory-list '("/private/info/"))) Then, when you enter info, a dir file like this one will be automatically created and saved (provided you have write access to the directory). The contents of that file "/private/info/dir" will be appended to the contents of this file. File: dir Node: Top This is the top of the INFO tree This is Info, the online documentation browsing system. This page (the Directory node) gives a menu of major topics. button2 on a highlighted word follows that cross-reference. button3 anywhere brings up a menu of commands. ? lists additional keyboard commands. h invokes the Info tutorial. * Menu: XEmacs 21.5 =========== * XEmacs: (xemacs). XEmacs Editor. * Lispref: (lispref). XEmacs Lisp Reference Manual. * Intro: (new-users-guide). Introduction to the XEmacs Editor. * FAQ: (xemacs-faq). XEmacs FAQ. * Info: (info). Documentation browsing system. * Internals: (internals). XEmacs Internals Manual. Other Documentation: * Common Lisp: (cl). XEmacs Common Lisp emulation package. * Customizations: (custom). Customization Library. * Emodules: (emodules). XEmacs dynamically loadable module support. * External Widget: (external-widget). External Client Widget. * Standards: (standards). GNU coding standards. * Term mode: (term). XEmacs Terminal Emulator Mode. * Termcap: (termcap). Termcap library of the GNU system. * Texinfo: (texinfo). The GNU documentation format. * Widgets: (widget). The Emacs Widget Library.