diff options
| author | Keith Amidon | 2019-04-30 07:52:14 -0700 |
|---|---|---|
| committer | Damien Cassou | 2019-06-24 09:15:40 +0200 |
| commit | 57e763a0a057621daac2761084556df38f7f2373 (patch) | |
| tree | 78b40640685c7144cf96fa3505c5fdd45fdfd025 /src/bytecode.c | |
| parent | 94c9eb81b8b265380345c36c0a481d9022435d89 (diff) | |
| download | emacs-57e763a0a057621daac2761084556df38f7f2373.tar.gz emacs-57e763a0a057621daac2761084556df38f7f2373.zip | |
Split out the attribute retrieval form auth-source-pass-get
Eliminate the need to repeatedly retrieve and parse the data for the
entry. This is generally a good thing since it eliminates repetitions
of the same crypto and parsing operations. It is especially valuable
when protecting an entry with a yubikey with touch required for crypto
operations as it eliminates the need to touch the yubikey sensor for
each attribute retrieved.
* lisp/auth-source-pass.el (auth-source-pass-get): Extract some code to
`auth-source-pass--get-attr'.
(auth-source-pass--get-attr): New function to get a field value from a
parsed entry.
(auth-source-pass--build-result): Make use of
`auth-source-pass--get-attr` to avoid repeated parsing.
Diffstat (limited to 'src/bytecode.c')
0 files changed, 0 insertions, 0 deletions