Ticket #116: libsynml_support_respuri.diff
| File libsynml_support_respuri.diff, 2.5 kB (added by Ganadist, 1 year ago) |
|---|
-
./parser/sml_xml_parse.c
old new 1668 1668 *cred = _smlCredParse(parser, error); 1669 1669 if (!(*cred)) 1670 1670 goto error_free_header; 1671 } else if (!strcmp((char *)xmlTextReaderConstName(parser->reader), SML_ELEMENT_RESPURI)) { 1672 if (!_smlXmlParserGetString(parser, &((*header)->respuri), SML_ELEMENT_RESPURI, error)) { 1673 goto error_free_header; 1674 } 1671 1675 } 1672 1676 1673 1677 else { 1674 1678 smlErrorSet(error, SML_ERROR_GENERIC, "wrong initial node. expected SyncHdr"); 1675 1679 goto error_free_header; -
./sml_defines.h
old new 63 63 #define SML_ELEMENT_FORMAT "Format" 64 64 #define SML_ELEMENT_CRED "Cred" 65 65 #define SML_ELEMENT_CHAL "Chal" 66 #define SML_ELEMENT_RESPURI "RespURI" 66 67 #define SML_ELEMENT_RESULTS "Results" 67 68 #define SML_ELEMENT_MAXOBJSIZE "MaxObjSize" 68 69 #define SML_ELEMENT_EMI "EMI" -
./sml_elements.c
old new 293 293 294 294 if (header->target) 295 295 smlLocationUnref(header->target); 296 if (header->respuri) 297 g_free(header->respuri); 296 298 297 299 g_free(header); 298 300 -
./sml_elements_internals.h
old new 69 69 unsigned int maxmsgsize; 70 70 unsigned int maxobjsize; 71 71 char *emi; 72 char *respuri; 72 73 }; 73 74 74 75 struct SmlCred {
