chiark
/
gitweb
/
~ian
/
secnet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0485ac
)
make-secnet-sites: Provide `serial' property class
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 29 Nov 2019 21:32:37 +0000
(21:32 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 30 Dec 2019 13:15:50 +0000
(13:15 +0000)
This will be used for public key groupids and key set ids.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
make-secnet-sites
patch
|
blob
|
history
diff --git
a/make-secnet-sites
b/make-secnet-sites
index 64459475d904b91fb4d825c0fcafe006ff388a25..0f1e8bab8b7d99fc58788e833841a6d0f33a1286 100755
(executable)
--- a/
make-secnet-sites
+++ b/
make-secnet-sites
@@
-396,6
+396,15
@@
class num (basetype):
def __str__(self):
return '%d'%(self.n)
+class serial (basetype):
+ def __init__(self,w):
+ self.i=w[1].hexid(4,'serial')
+ def __str__(self):
+ return self.i
+ def forsites(self,version,copy,fs):
+ if version < 2: return []
+ return copy
+
class address (basetype):
"A DNS name and UDP port number"
def __init__(self,w):