futility/vb1_helper.c
/* Replaces the config section of the specified kernel blob.
 * Return nonzero on error. */
Replaces the config section of the specified kernel blob.
Return nonzero on error.
Replaces the config section of the specified kernel blob . Return nonzero on error .
int UpdateKernelBlobConfig(uint8_t *kblob_data, uint32_t kblob_size,
			   uint8_t *config_data, uint32_t config_size)
{
	if (kblob_data != g_kernel_blob_data ||
	    kblob_size != g_kernel_blob_size) {
		fprintf(stderr, "Trying to update some other blob\n");
		return -1;
	}
	memset(g_config_data, 0, g_config_size);
	memcpy(g_config_data, config_data, config_size);
	return 0;
}
int UpdateKernelBlobConfig ( uint8_t * kblob_data , uint32_t kblob_size , uint8_t * config_data , uint32_t config_size ) { if ( kblob_data != g_kernel_blob_data || kblob_size != g_kernel_blob_size ) { fprintf ( stderr , " \n " ) ; return -1 ; } memset ( g_config_data , 0 , g_config_size ) ; memcpy ( g_config_data , config_data , config_size ) ; return 0 ; }
Replaces the config section of the specified kernel blob.
Replaces the config section of the specified kernel blob .
/* We should have already examined this blob. If not, we could do it
	 * again, but it's more likely due to an error. */