def UploadSignedConfigBlob(content, aff4_path, client_context=None, limit=None, token=None):
 if (limit is None):
  limit = config_lib.CONFIG['Datastore.maximum_blob_size']
 if (client_context is None):
  client_context = ['Platform:Windows', 'Client Context']
 config_lib.CONFIG.Validate(parameters='PrivateKeys.executable_signing_private_key')
 sig_key = config_lib.CONFIG.Get('PrivateKeys.executable_signing_private_key', context=client_context)
 ver_key = config_lib.CONFIG.Get('Client.executable_signing_public_key', context=client_context)
 urn = collects.GRRSignedBlob.NewFromContent(content, aff4_path, chunk_size=limit, token=token, private_key=sig_key, public_key=ver_key)
 logging.info('Uploaded to %s', urn)

def UploadSignedConfigBlob ( content , aff4_path , client_context = None , limit = None , token = None ) : if ( limit is None ) : limit = config_lib . CONFIG [ 'Datastore.maximum_blob_size' ] if ( client_context is None ) : client_context = [ 'Platform:Windows' , 'Client Context' ] config_lib . CONFIG . Validate ( parameters = 'PrivateKeys.executable_signing_private_key' ) sig_key = config_lib . CONFIG . Get ( 'PrivateKeys.executable_signing_private_key' , context = client_context ) ver_key = config_lib . CONFIG . Get ( 'Client.executable_signing_public_key' , context = client_context ) urn = collects . GRRSignedBlob . NewFromContent ( content , aff4_path , chunk_size = limit , token = token , private_key = sig_key , public_key = ver_key ) logging . info ( 'Uploaded to %s' , urn )
upload a signed blob into the datastore .