Changeset 137 for trunk/src/common.c


Ignore:
Timestamp:
01/23/09 17:58:43 (15 years ago)
Author:
tim
Message:

Added error messages to most parse functions in regfi

Relaxed validation requirements on NK types and missing value data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/common.c

    r136 r137  
    3838}
    3939
     40void printMsgs(REGFI_ITERATOR* iter)
     41{
     42  char* msgs = regfi_get_messages(iter->f);
     43  if(msgs != NULL)
     44  {
     45    fprintf(stderr, "%s", msgs);
     46    free(msgs);
     47  }
     48}
     49
    4050
    4151/* Returns a newly malloc()ed string which contains original buffer,
     
    205215 * is the responsibility of the caller to free both a non-NULL return
    206216 * value, and a non-NULL (*error_msg).
     217 */
     218/* XXX: Part of this function's logic should be pushed into the regfi API.
     219 *      The structures should be parsed and stored with VK records and only
     220 *      escaped/encoded later in reglookup and reglookup-recover.
    207221 */
    208222static char* data_to_ascii(unsigned char* datap, uint32 len, uint32 type,
Note: See TracChangeset for help on using the changeset viewer.