File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1616
1717from  binascii  import  unhexlify 
1818
19- __version__  =  '0.3.1 ' 
19+ __version__  =  '0.3.2 ' 
2020
2121logger  =  logging .getLogger (__name__ )
2222
Original file line number Diff line number Diff line change @@ -137,16 +137,17 @@ def der_cert(der_data):
137137    return  cert 
138138
139139
140- def  load_x509_cert (url , spec2key ):
140+ def  load_x509_cert (url , spec2key ,  ** get_args ):
141141    """ 
142142    Get and transform a X509 cert into a key. 
143143
144144    :param url: Where the X509 cert can be found 
145145    :param spec2key: A dictionary over keys already seen 
146+     :param get_args: Extra key word arguments to the HTTP GET request 
146147    :return: List of 2-tuples (keytype, key) 
147148    """ 
148149    try :
149-         r  =  request ("GET" , url , allow_redirects = True )
150+         r  =  request ("GET" , url , allow_redirects = True ,  ** get_args )
150151        if  r .status_code  ==  200 :
151152            cert  =  str (r .text )
152153            try :
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments