mirror of
https://codeberg.org/cage/tinmop/
synced 2025-02-17 08:10:36 +01:00
- [RPC] fixed encoding of certificates.
This commit is contained in:
parent
48f950af1e
commit
b0140d6fc6
@ -322,13 +322,14 @@
|
|||||||
|
|
||||||
(defstruct (gemini-certificates (:include box)))
|
(defstruct (gemini-certificates (:include box)))
|
||||||
|
|
||||||
|
|
||||||
(defmethod yason:encode ((object gemini-certificates) &optional (stream *standard-output*))
|
(defmethod yason:encode ((object gemini-certificates) &optional (stream *standard-output*))
|
||||||
(let ((json:*symbol-encoder* #'json:encode-symbol-as-lowercase)
|
(let ((json:*symbol-encoder* #'json:encode-symbol-as-lowercase)
|
||||||
(yason:*list-encoder* #'yason:encode-plist)
|
(yason:*list-encoder* #'yason:encode-plist)
|
||||||
(json:*symbol-key-encoder* #'json:encode-symbol-as-lowercase))
|
(json:*symbol-key-encoder* #'json:encode-symbol-as-lowercase))
|
||||||
(yason:with-output (stream)
|
(yason:with-output (stream)
|
||||||
(yason:encode (gemini-certificates-payload object)))))
|
(yason:with-array ()
|
||||||
|
(loop for certificate in (gemini-certificates-payload object) do
|
||||||
|
(yason:encode-array-element certificate))))))
|
||||||
|
|
||||||
(defun gemini-certificates ()
|
(defun gemini-certificates ()
|
||||||
(make-gemini-certificates :payload (db:find-tls-certificates-rows)))
|
(make-gemini-certificates :payload (db:find-tls-certificates-rows)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user