Function: erc-sasl--ecdsa-sign

erc-sasl--ecdsa-sign is a byte-compiled function defined in erc-sasl.el.gz.

Signature

(erc-sasl--ecdsa-sign CLIENT STEP)

Documentation

Return signed challenge for CLIENT and current STEP.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-sasl.el.gz
;; FIXME do this with gnutls somehow
(defun erc-sasl--ecdsa-sign (client step)
  "Return signed challenge for CLIENT and current STEP."
  (let ((challenge (sasl-step-data step)))
    (with-temp-buffer
      (set-buffer-multibyte nil)
      (insert challenge)
      (call-process-region (point-min) (point-max)
                           "openssl" 'delete t nil "pkeyutl" "-inkey"
                           (sasl-client-property client 'ecdsa-keyfile)
                           "-sign")
      (buffer-string))))