forked from espressif/esp-idf
esp_prov: prompt for PoP if not provided and required
This commit is contained in:
@@ -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 = ''
|
||||||
|
Reference in New Issue
Block a user