Unverified Commit ab8ed188 authored by Mouse's avatar Mouse Committed by GitHub

Relax OCTET_STRING JSON parsing more

Practically revert commit that tightens the parsing, to un-break already-existing code.
This follows the IETF approach of being conservative in what you send, but liberal in what you receive.
parent 2782c366
......@@ -252,9 +252,8 @@ static ssize_t OCTET_STRING__convert_hexadecimal(void *sptr, const void *chunk_b
for(; p < pend; p++) {
int ch = *(const unsigned char *)p;
switch(ch) {
/* do not allow tab, space
/* allow tab, space */
case 0x09: case 0x20:
*/
/* allow LF, FF, CR */
case 0x0a: case 0x0c: case 0x0d:
continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment