@@ -1485,11 +1485,12 @@ def crypto_algorithms(parser, args):
1485
1485
try :
1486
1486
config = create_cryptography_config_from_args (args )
1487
1487
grpc_config = create_grpc_config_from_args (args )
1488
+ if args .pac :
1489
+ grpc_config .pac = get_pac_file (args .pac )
1490
+ if args .header :
1491
+ grpc_config .req_headers = process_req_headers (args .header )
1488
1492
client = ScanossGrpc (** asdict (grpc_config ))
1489
1493
1490
- # TODO: Add PAC file support
1491
- # pac_file = get_pac_file(config.pac)
1492
-
1493
1494
cryptography = Cryptography (config = config , client = client )
1494
1495
cryptography .get_algorithms ()
1495
1496
cryptography .present (output_file = args .output )
@@ -1526,11 +1527,12 @@ def crypto_hints(parser, args):
1526
1527
try :
1527
1528
config = create_cryptography_config_from_args (args )
1528
1529
grpc_config = create_grpc_config_from_args (args )
1530
+ if args .pac :
1531
+ grpc_config .pac = get_pac_file (args .pac )
1532
+ if args .header :
1533
+ grpc_config .req_headers = process_req_headers (args .header )
1529
1534
client = ScanossGrpc (** asdict (grpc_config ))
1530
1535
1531
- # TODO: Add PAC file support
1532
- # pac_file = get_pac_file(config.pac)
1533
-
1534
1536
cryptography = Cryptography (config = config , client = client )
1535
1537
cryptography .get_encryption_hints ()
1536
1538
cryptography .present (output_file = args .output )
@@ -1567,11 +1569,12 @@ def crypto_versions_in_range(parser, args):
1567
1569
try :
1568
1570
config = create_cryptography_config_from_args (args )
1569
1571
grpc_config = create_grpc_config_from_args (args )
1572
+ if args .pac :
1573
+ grpc_config .pac = get_pac_file (args .pac )
1574
+ if args .header :
1575
+ grpc_config .req_headers = process_req_headers (args .header )
1570
1576
client = ScanossGrpc (** asdict (grpc_config ))
1571
1577
1572
- # TODO: Add PAC file support
1573
- # pac_file = get_pac_file(config.pac)
1574
-
1575
1578
cryptography = Cryptography (config = config , client = client )
1576
1579
cryptography .get_versions_in_range ()
1577
1580
cryptography .present (output_file = args .output )
0 commit comments