diff options
| author | Lars Magne Ingebrigtsen | 2011-07-15 19:21:57 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-07-15 19:21:57 +0200 |
| commit | 7b41decb8ee56d61ace1637138a38b89bcf09eb4 (patch) | |
| tree | 8c85fc9da44fe4e6c4334aab14091fef0f77f128 | |
| parent | c65bca6520d8f3097b1c597381150fd2ffd0f886 (diff) | |
| download | emacs-7b41decb8ee56d61ace1637138a38b89bcf09eb4.tar.gz emacs-7b41decb8ee56d61ace1637138a38b89bcf09eb4.zip | |
Add a variable to customize the gnutls priority
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/cl-loaddefs.el | 7 | ||||
| -rw-r--r-- | lisp/net/gnutls.el | 9 |
3 files changed, 15 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f99f2692bad..114a318fe96 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -7,6 +7,9 @@ | |||
| 7 | 7 | ||
| 8 | 2011-07-15 Lars Magne Ingebrigtsen <larsi@gnus.org> | 8 | 2011-07-15 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 9 | 9 | ||
| 10 | * net/gnutls.el (gnutls-algorithm-priority): New variable. | ||
| 11 | (gnutls-negotiate): Use it. | ||
| 12 | |||
| 10 | * emacs-lisp/cl-macs.el (declare): Link to the "Declarations" node. | 13 | * emacs-lisp/cl-macs.el (declare): Link to the "Declarations" node. |
| 11 | 14 | ||
| 12 | * info.el (Info-beginning-of-buffer): New command. | 15 | * info.el (Info-beginning-of-buffer): New command. |
diff --git a/lisp/emacs-lisp/cl-loaddefs.el b/lisp/emacs-lisp/cl-loaddefs.el index 1c766afc8db..f0c72a0b269 100644 --- a/lisp/emacs-lisp/cl-loaddefs.el +++ b/lisp/emacs-lisp/cl-loaddefs.el | |||
| @@ -282,7 +282,7 @@ Not documented | |||
| 282 | ;;;;;; flet progv psetq do-all-symbols do-symbols dotimes dolist | 282 | ;;;;;; flet progv psetq do-all-symbols do-symbols dotimes dolist |
| 283 | ;;;;;; do* do loop return-from return block etypecase typecase ecase | 283 | ;;;;;; do* do loop return-from return block etypecase typecase ecase |
| 284 | ;;;;;; case load-time-value eval-when destructuring-bind function* | 284 | ;;;;;; case load-time-value eval-when destructuring-bind function* |
| 285 | ;;;;;; defmacro* defun* gentemp gensym) "cl-macs" "cl-macs.el" "dd99db1e96dff411cc5d484a639a1330") | 285 | ;;;;;; defmacro* defun* gentemp gensym) "cl-macs" "cl-macs.el" "2261724608e3223036b863d214f7dc0c") |
| 286 | ;;; Generated autoloads from cl-macs.el | 286 | ;;; Generated autoloads from cl-macs.el |
| 287 | 287 | ||
| 288 | (autoload 'gensym "cl-macs" "\ | 288 | (autoload 'gensym "cl-macs" "\ |
| @@ -541,12 +541,13 @@ values. For compatibility, (values A B C) is a synonym for (list A B C). | |||
| 541 | \(fn TYPE FORM)" nil (quote macro)) | 541 | \(fn TYPE FORM)" nil (quote macro)) |
| 542 | 542 | ||
| 543 | (autoload 'declare "cl-macs" "\ | 543 | (autoload 'declare "cl-macs" "\ |
| 544 | Declare something about SPECS while compiling. | 544 | Declare SPECS about the current function while compiling. |
| 545 | For instance | 545 | For instance |
| 546 | 546 | ||
| 547 | (declare (warn 0)) | 547 | (declare (warn 0)) |
| 548 | 548 | ||
| 549 | will turn off byte-compile warnings. | 549 | will turn off byte-compile warnings in the function. |
| 550 | See Info node `(cl)Declarations' for details. | ||
| 550 | 551 | ||
| 551 | \(fn &rest SPECS)" nil (quote macro)) | 552 | \(fn &rest SPECS)" nil (quote macro)) |
| 552 | 553 | ||
diff --git a/lisp/net/gnutls.el b/lisp/net/gnutls.el index 67d7b2d20d3..f0bc8dec09d 100644 --- a/lisp/net/gnutls.el +++ b/lisp/net/gnutls.el | |||
| @@ -47,6 +47,13 @@ | |||
| 47 | :type 'integer | 47 | :type 'integer |
| 48 | :group 'gnutls) | 48 | :group 'gnutls) |
| 49 | 49 | ||
| 50 | (defcustom gnutls-algorithm-priority nil | ||
| 51 | "If non-nil, this should be a TLS priority string. | ||
| 52 | For instance, if you want to skip the \"dhe-rsa\" algorithm, | ||
| 53 | set this variable to \"normal:-dhe-rsa\"." | ||
| 54 | :type '(choice (const nil) | ||
| 55 | string)) | ||
| 56 | |||
| 50 | (defun open-gnutls-stream (name buffer host service) | 57 | (defun open-gnutls-stream (name buffer host service) |
| 51 | "Open a SSL/TLS connection for a service to a host. | 58 | "Open a SSL/TLS connection for a service to a host. |
| 52 | Returns a subprocess-object to represent the connection. | 59 | Returns a subprocess-object to represent the connection. |
| @@ -145,7 +152,7 @@ defaults to GNUTLS_VERIFY_ALLOW_X509_V1_CA_CRT." | |||
| 145 | ((eq type 'gnutls-anon) | 152 | ((eq type 'gnutls-anon) |
| 146 | "NORMAL:+ANON-DH:!ARCFOUR-128") | 153 | "NORMAL:+ANON-DH:!ARCFOUR-128") |
| 147 | ((eq type 'gnutls-x509pki) | 154 | ((eq type 'gnutls-x509pki) |
| 148 | "NORMAL")))) | 155 | (or gnutls-algorithm-priority "NORMAL"))))) |
| 149 | (params `(:priority ,priority-string | 156 | (params `(:priority ,priority-string |
| 150 | :hostname ,hostname | 157 | :hostname ,hostname |
| 151 | :loglevel ,gnutls-log-level | 158 | :loglevel ,gnutls-log-level |