Function: epg-decode-dn

epg-decode-dn is a byte-compiled function defined in epg.el.gz.

Signature

(epg-decode-dn ALIST)

Documentation

Convert ALIST returned by epg-dn-from-string to a human readable form.

Type names are resolved using epg-dn-type-alist.

Source Code

;; Defined in /usr/src/emacs/lisp/epg.el.gz
(defun epg-decode-dn (alist)
  "Convert ALIST returned by `epg-dn-from-string' to a human readable form.
Type names are resolved using `epg-dn-type-alist'."
  (mapconcat
   (lambda (rdn)
     (if (stringp (car rdn))
	 (let ((entry (assoc (car rdn) epg-dn-type-alist)))
	   (if entry
	       (format "%s=%s" (cdr entry) (cdr rdn))
	     (format "%s=%s" (car rdn) (cdr rdn))))
       (concat "(" (epg-decode-dn rdn) ")")))
   alist
   ", "))