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 (args.secver != 0) and not await has_capability(obj_transport, 'no_pop'):
if len(args.sec1_pop) == 0: if len(args.sec1_pop) == 0:
print('---- Proof of Possession argument not provided ----') args.sec1_pop = binput('Proof of Possession required : ')
exit(2)
elif len(args.sec1_pop) != 0: elif len(args.sec1_pop) != 0:
print('---- Proof of Possession will be ignored ----') print('---- Proof of Possession will be ignored ----')
args.sec1_pop = '' args.sec1_pop = ''