mirror of https://gitlab.com/bashrc2/epicyon
Detect public key
parent
5cbe610e5b
commit
cbe7059a20
4
pgp.py
4
pgp.py
|
@ -47,7 +47,7 @@ def getPGPpubKey(actorJson: {}) -> str:
|
||||||
continue
|
continue
|
||||||
if propertyValue['type']!='PropertyValue':
|
if propertyValue['type']!='PropertyValue':
|
||||||
continue
|
continue
|
||||||
if '-BEGIN PUBLIC KEY-' not in propertyValue['value']:
|
if '--BEGIN PGP PUBLIC KEY' not in propertyValue['value']:
|
||||||
continue
|
continue
|
||||||
return propertyValue['value']
|
return propertyValue['value']
|
||||||
return ''
|
return ''
|
||||||
|
@ -90,7 +90,7 @@ def setPGPpubKey(actorJson: {},PGPpubKey: str) -> None:
|
||||||
if not actorJson.get('attachment'):
|
if not actorJson.get('attachment'):
|
||||||
actorJson['attachment']=[]
|
actorJson['attachment']=[]
|
||||||
|
|
||||||
if '-BEGIN PUBLIC KEY-' not in PGPpubKey:
|
if '--BEGIN PGP PUBLIC KEY' not in PGPpubKey:
|
||||||
return
|
return
|
||||||
|
|
||||||
for propertyValue in actorJson['attachment']:
|
for propertyValue in actorJson['attachment']:
|
||||||
|
|
Loading…
Reference in New Issue