esp_prov: prompt for PoP if not provided and required

This commit is contained in:
Cody Cutrer
2022-06-07 16:26:32 -06:00
committed by Laukik Hase
parent 069b82401c
commit 7989e97b3a

View File

@@ -409,8 +409,7 @@ async def main():
if (args.secver != 0) and not await has_capability(obj_transport, 'no_pop'):
if len(args.sec1_pop) == 0:
print('---- Proof of Possession argument not provided ----')
exit(2)
args.sec1_pop = binput('Proof of Possession required : ')
elif len(args.sec1_pop) != 0:
print('---- Proof of Possession will be ignored ----')
args.sec1_pop = ''