URL encoded Targetnames

Assume target names are URL encoded with '%' as the special character.

Any sequence of '%' followed by two bytes in the target name will be replaced
with the byte that the second two bytes represent in hexadecimal.

Example
iqn.ronnie.test%3A1234
will be translated to iqn.ronnie.test:1234
This commit is contained in:
Ronnie Sahlberg
2013-06-16 11:35:14 -07:00
parent 12f93b60c7
commit e061cba1b9
3 changed files with 88 additions and 39 deletions

View File

@@ -622,6 +622,7 @@ h2i(int h)
}
return h - '0';
}
static int
i2h(int i)
{