(signal 'wrong-type-argument (list 'epg-context-p context)))
(aref (cdr context) 9))
-(defun epg-context-sig-notations (context)
+(defun epg-context-signature-notations (context)
"Return the list of notations for singning."
(unless (eq (car-safe context) 'epg-context)
(signal 'wrong-type-argument (list 'epg-context-p context)))
(signal 'wrong-type-argument (list 'epg-context-p context)))
(aset (cdr context) 9 signers))
-(defun epg-context-set-sig-notations (context notations)
+(defun epg-context-set-signature-notations (context notations)
"Set the list of notations for singning."
(unless (eq (car-safe context) 'epg-context)
(signal 'wrong-type-argument (list 'epg-context-p context)))
(signal 'wrong-type-argument (list 'epg-key-signature-p key-signature)))
(aref (cdr key-signature) 7))
-(defun epg-make-sig-notation (name value &optional human-readable critical)
+(defun epg-make-signature-notation (name value &optional human-readable
+ critical)
"Return a notation object."
- (cons 'epg-sig-notation (vector name value human-readable critical)))
-
-(defun epg-sig-notation-name (sig-notation)
- "Return the name of SIG-NOTATION."
- (unless (eq (car-safe sig-notation) 'epg-sig-notation)
- (signal 'wrong-type-argument (list 'epg-sig-notation-p sig-notation)))
- (aref (cdr sig-notation) 0))
-
-(defun epg-sig-notation-value (sig-notation)
- "Return the value of SIG-NOTATION."
- (unless (eq (car-safe sig-notation) 'epg-sig-notation)
- (signal 'wrong-type-argument (list 'epg-sig-notation-p sig-notation)))
- (aref (cdr sig-notation) 1))
-
-(defun epg-sig-notation-human-readable (sig-notation)
- "Return the human-readable of SIG-NOTATION."
- (unless (eq (car-safe sig-notation) 'epg-sig-notation)
- (signal 'wrong-type-argument (list 'epg-sig-notation-p sig-notation)))
- (aref (cdr sig-notation) 2))
-
-(defun epg-sig-notation-critical (sig-notation)
- "Return the critical of SIG-NOTATION."
- (unless (eq (car-safe sig-notation) 'epg-sig-notation)
- (signal 'wrong-type-argument (list 'epg-sig-notation-p sig-notation)))
- (aref (cdr sig-notation) 3))
+ (cons 'epg-signature-notation (vector name value human-readable critical)))
+
+(defun epg-signature-notation-name (signature-notation)
+ "Return the name of SIGNATURE-NOTATION."
+ (unless (eq (car-safe signature-notation) 'epg-signature-notation)
+ (signal 'wrong-type-argument (list 'epg-signature-notation-p
+ signature-notation)))
+ (aref (cdr signature-notation) 0))
+
+(defun epg-signature-notation-value (signature-notation)
+ "Return the value of SIGNATURE-NOTATION."
+ (unless (eq (car-safe signature-notation) 'epg-signature-notation)
+ (signal 'wrong-type-argument (list 'epg-signature-notation-p
+ signature-notation)))
+ (aref (cdr signature-notation) 1))
+
+(defun epg-signature-notation-human-readable (signature-notation)
+ "Return the human-readable of SIGNATURE-NOTATION."
+ (unless (eq (car-safe signature-notation) 'epg-signature-notation)
+ (signal 'wrong-type-argument (list 'epg-signature-notation-p
+ signature-notation)))
+ (aref (cdr signature-notation) 2))
+
+(defun epg-signature-notation-critical (signature-notation)
+ "Return the critical of SIGNATURE-NOTATION."
+ (unless (eq (car-safe signature-notation) 'epg-signature-notation)
+ (signal 'wrong-type-argument (list 'epg-signature-notation-p
+ signature-notation)))
+ (aref (cdr signature-notation) 3))
(defun epg-context-result-for (context name)
"Return the result of CONTEXT associated with NAME."
(defun epg--clear-string (string)
(fillarray string 0)))
-(defun epg--args-from-sig-notations (notations)
+(defun epg--args-from-signature-notations (notations)
(apply #'nconc
(mapcar
(lambda (notation)
- (if (and (epg-sig-notation-name notation)
- (not (epg-sig-notation-human-readable notation)))
+ (if (and (epg-signature-notation-name notation)
+ (not (epg-signature-notation-human-readable notation)))
(error "Unreadable"))
- (if (epg-sig-notation-name notation)
+ (if (epg-signature-notation-name notation)
(list "--sig-notation"
- (if (epg-sig-notation-critical notation)
- (concat "!" (epg-sig-notation-name notation)
- "=" (epg-sig-notation-value notation))
- (concat (epg-sig-notation-name notation)
- "=" (epg-sig-notation-value notation))))
- (list "--sig-policy-url" (epg-sig-notation-value notation))))
+ (if (epg-signature-notation-critical notation)
+ (concat "!" (epg-signature-notation-name notation)
+ "=" (epg-signature-notation-value notation))
+ (concat (epg-signature-notation-name notation)
+ "=" (epg-signature-notation-value notation))))
+ (list "--sig-policy-url"
+ (epg-signature-notation-value notation))))
notations))
;;;###autoload
(epg-sub-key-id
(car (epg-key-sub-key-list signer)))))
(epg-context-signers context)))
- (epg--args-from-sig-notations (epg-context-sig-notations))
+ (epg--args-from-signature-notations
+ (epg-context-signature-notations context))
(if (epg-data-file plain)
(list "--" (epg-data-file plain)))))
;; `gpgsm' does not read passphrase from stdin, so waiting is not needed.
signer)))))
(epg-context-signers context))))
(if sign
- (epg--args-from-sig-notations
- (epg-context-sig-notations)))
+ (epg--args-from-signature-notations
+ (epg-context-signature-notations context)))
(apply #'nconc
(mapcar
(lambda (recipient)