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

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

[nongnu] elpa/base32 49f2e5e7ad 093/103: Add an autoload for the OTP exp


From: ELPA Syncer
Subject: [nongnu] elpa/base32 49f2e5e7ad 093/103: Add an autoload for the OTP export function
Date: Sat, 10 Feb 2024 13:00:13 -0500 (EST)

branch: elpa/base32
commit 49f2e5e7ad8a5afae7a3e38d87d08f4d4c4cd797
Author: Vivek Das Mohapatra <vivek@collabora.com>
Commit: Vivek Das Mohapatra <vivek@collabora.com>

    Add an autoload for the OTP export function
---
 totp-auth.el | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/totp-auth.el b/totp-auth.el
index c937eca5e9..c7dc1fef9a 100644
--- a/totp-auth.el
+++ b/totp-auth.el
@@ -788,5 +788,20 @@ FILE is processed by ‘totp-load-file’ and each secret 
extracted
 is passed to ‘totp-save-secret’."
   t)
 
+(autoload 'totp-auth-export-file "totp-auth-interop"
+  "Export TOTP SECRETS to FILE.
+FILE is a destination file.
+If it matches ‘epa-file-name-regexp’ then a text file is saved.
+If ‘totp-auth-image-type-from-filename’ returns an image type for file then
+a QR code is generated instead.
+TYPE may be :otpauth-migration or :otpauth - which URL scheme to use.
+\nSECRETS is a list of ‘totp-auth-unwrap-otp-blob’ secrets, or a string, or 
nil.
+If it is nil all secrets are exported.
+If it is a string beginning with ~ or / it is used as a regular expression
+to match the labels of the secrets to export from ‘totp-auth-secrets’.
+If it begins with = the rest of the string is used as an exact match.
+Any other string is used as a substring to look for in the labels."
+  t)
+
 (provide 'totp-auth)
 ;;; totp-auth.el ends here



reply via email to

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