This introduces file version 2.
We document the ultimately intended meaning of version 2 even though
we don't implement all that yet. The remaining pieces are on their
way.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
NUMBER that are understood are:
1 The original format, pre signing key
negotiation.
NUMBER that are understood are:
1 The original format, pre signing key
negotiation.
+ 2 Signing key algorithm agility and negotiation.
If NUMBER is higher than make-secnet-sites supports,
it writes out what it can.
If NUMBER is higher than make-secnet-sites supports,
it writes out what it can.
from sys import version_info
if version_info.major == 2: # for python2
from sys import version_info
if version_info.major == 2: # for python2
self.d=w[2].base91();
def __str__(self):
return 'make-public("%s","%s")'%(self.a,self.d)
self.d=w[2].base91();
def __str__(self):
return 'make-public("%s","%s")'%(self.a,self.d)
+ def forsites(self,version,copy,fs):
+ if version < 2: return []
+ return copy
class rsakey (pubkey):
"An RSA public key"
class rsakey (pubkey):
"An RSA public key"