X-Git-Url: https://git.distorted.org.uk/~mdw/zone/blobdiff_plain/7f00d93d646e52579facf811d5211f6da7c68fda..d529c370a3cadfa19705ccaaeaa8d0a6b9410cd0:/zone.lisp diff --git a/zone.lisp b/zone.lisp index bd3cd3f..a1e74b7 100644 --- a/zone.lisp +++ b/zone.lisp @@ -237,10 +237,6 @@ min-ttl serial) -(export 'zone-text-name) -(defun zone-text-name (zone) - (princ-to-string (zone-name zone))) - (export 'mx) (defstruct (mx (:predicate mxp)) "Mail-exchange record information." @@ -255,6 +251,10 @@ name records) +(export 'zone-text-name) +(defun zone-text-name (zone) + (princ-to-string (zone-name zone))) + ;;;-------------------------------------------------------------------------- ;;; Zone defaults. It is intended that scripts override these. @@ -497,7 +497,7 @@ :ttl ttl :records (cdr r)) sub))) (t - (error "Unexpected record form ~A" (car r)))))))) + (error "Unexpected record form ~A" r))))))) (process (rec dom ttl) ;; Recursirvely process the record list REC, with a list DOM of @@ -687,9 +687,9 @@ (defmacro defrevzone (head &body zf) "Define a reverse zone, with the correct name." (destructuring-bind (nets &rest args - &key &allow-other-keys - (family '*address-family*) - prefix-bits) + &key (family '*address-family*) + prefix-bits + &allow-other-keys) (listify head) (with-gensyms (ipn) `(dolist (,ipn (net-parse-to-ipnets ',nets ,family)) @@ -923,7 +923,7 @@ (rec :type :txt :data (nreverse things))))) -(defenum sshfp-algorithm () (:rsa 1) (:dsa 2) (:ecdsa 3)) +(defenum sshfp-algorithm () (:rsa 1) (:dsa 2) (:ecdsa 3) (:ed25519 4)) (defenum sshfp-type () (:sha-1 1) (:sha-256 2)) (export '*sshfp-pathname-defaults*)