Unverified Commit 2782c366 authored by Mouse's avatar Mouse Committed by GitHub

Relax parsing of JER OCTET STRING

Since previous commit broke existing applications,
revert parts of it, allowing strings broken into chunks.
parent 9ac139f0
......@@ -252,6 +252,12 @@ 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
case 0x09: case 0x20:
*/
/* allow LF, FF, CR */
case 0x0a: case 0x0c: case 0x0d:
continue;
case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: /*01234*/
case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: /*56789*/
clv = (clv << 4) + (ch - 0x30);
......
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