emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/base32 800de931a0 023/103: Autoload totp-import-file and u


From: ELPA Syncer
Subject: [nongnu] elpa/base32 800de931a0 023/103: Autoload totp-import-file and update its docstring
Date: Sat, 10 Feb 2024 13:00:01 -0500 (EST)

branch: elpa/base32
commit 800de931a07f1b4fc37bb7c829a9168152a0a179
Author: Vivek Das Mohapatra <vivek@collabora.co.uk>
Commit: Vivek Das Mohapatra <vivek@collabora.co.uk>

    Autoload totp-import-file and update its docstring
---
 totp-interop.el | 3 +++
 totp.el         | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/totp-interop.el b/totp-interop.el
index 08ea4d4810..6ea0014e59 100644
--- a/totp-interop.el
+++ b/totp-interop.el
@@ -233,6 +233,9 @@ the returned list is the same structure returned by 
`totp-unwrap-otp-blob'."
 
 
 (defun totp-import-file (file)
+  "Import an RFC6238 TOTP secret or secrets from FILE.
+FILE is processed by `totp-load-file' and each secret extracted
+is passed to `totp-save-secret'."
   (interactive "fImport OTP Secret(s) from: ")
   (mapc #'totp-save-secret (totp-load-file file)))
 
diff --git a/totp.el b/totp.el
index 9402c97d84..cc14d3a763 100644
--- a/totp.el
+++ b/totp.el
@@ -536,4 +536,10 @@ and EXPIRY is the seconds after the epoch when the TOTP 
expires."
      (list (cdr (assoc key secrets)) key)))
   (totp-display-token secret label))
 
+(autoload 'totp-import-file "totp-interop"
+  "Import an RFC6238 TOTP secret or secrets from FILE.
+FILE is processed by `totp-load-file' and each secret extracted
+is passed to `totp-save-secret'."
+  t)
+
 (provide 'totp)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]