From da7b896ad920f465940e57685c18504a54a3afd1 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 1 Dec 2019 18:39:36 +0000 Subject: [PATCH] make-secnet-sites: Do not use `copy' in pubkey forsites We are going to make some new call sites which don't have a suitable `copy' available. Signed-off-by: Ian Jackson --- make-secnet-sites | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/make-secnet-sites b/make-secnet-sites index 2af6037..2e07cf8 100755 --- a/make-secnet-sites +++ b/make-secnet-sites @@ -420,9 +420,9 @@ class pubkey (basetype): self.d=w[2].base91(); def __str__(self): return 'make-public("%s","%s")'%(self.a,self.d) - def forsites(self,version,copy,fs): + def forsites(self,version,xcopy,fs): if version < 2: return [] - return copy + return ['pub', self.a, self.d] class rsakey (pubkey): "An RSA public key" @@ -435,6 +435,8 @@ class rsakey (pubkey): return 'rsa-public("%s","%s")'%(self.e,self.n) # this specialisation means we can generate files # compatible with old secnet executables + def forsites(self,version,xcopy,fs): + return ['pubkey', str(self.l), self.e, self.n] def somepubkey(w): if w[0]=='pubkey': -- 2.30.2