aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2007-03-18 10:52:58 +0000
committerRob Austein <sra@hactrn.net>2007-03-18 10:52:58 +0000
commit32dd585a368d420f8014dbd943e4c6783da5dc35 (patch)
tree93d9a0f948d2c0b4ec80a734be6c5986407636a6 /scripts
parent5363d32a8ee003f4dde235ee8662d5d5dfca4fc3 (diff)
checkpoint -- this is very out of date and still needs major work
svn path=/scripts/regeng-api; revision=486
Diffstat (limited to 'scripts')
-rw-r--r--scripts/regeng-api22
1 files changed, 13 insertions, 9 deletions
diff --git a/scripts/regeng-api b/scripts/regeng-api
index 9043c7ea..4c7ec4e6 100644
--- a/scripts/regeng-api
+++ b/scripts/regeng-api
@@ -14,24 +14,24 @@
;;; to sign; this still needs to be checked by competent paranoids.
;; Create a keypair. :length is the number of bits for the key
-;; (default 2048?). :handle is optional, and is here to allow forward
-;; references within a sneakernet queue.
+;; (default 2048?).
(create-keypair :cust-id 42
- :length 2048
- :handle customer-42s-new-keypair)
-=> (public-key handle)
+ :length 2048)
+=> (public-key key-id)
;; Destroy a keypair.
(destroy-keypair :cust-id 42
- :public-key public-key)
+ :key-id key-id)
=> ()
;; List existing keypairs
(list-keypairs :cust-id 42)
-=> (public-key public-key ...)
+=> ((key-id . public-key)
+ (key-id . public-key)
+ ...)
;; Sign something. Will probably need to break this down into
;; separate signing calls for each kind of thing to be signed, but
@@ -41,8 +41,7 @@
(sign-thing :cust-id 42
:what-to-sign blob
:how-to-sign :rsa/sha256
- :key-to-use public-key
- :key-handle handle-for-public-key)
+ :key-id key-id)
=> (signed-thing)
;; Do we need a verify operation here that can take a handle so we can
@@ -87,6 +86,7 @@
:value "10.0.0.44/32")
=> ()
+;;; backwards because resources now live in the irdb not the re
(list-resources :cust-id 42)
=> ((:ipv4-address . "10.0.0.44/32") ...)
@@ -108,6 +108,10 @@
(list-friend-biz-certs :cust-id 42)
=> (cert ...)
+;;; Need to add biz signing cert chain get/set/list
+
+
+
;;; Stuff below this line is not even close to baked yet
;; These two may take a bit more thought. What's a ca-handle?