mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
util: buffer: Encode URIs with upper case hex characters
rfc3986 uses uppercase characters so switch to using them as well. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
5fdad0db2c
commit
c721cc1670
@ -663,7 +663,7 @@ virBufferURIEncodeString(virBufferPtr buf, const char *str)
|
|||||||
int grow_size = 0;
|
int grow_size = 0;
|
||||||
const char *p;
|
const char *p;
|
||||||
unsigned char uc;
|
unsigned char uc;
|
||||||
const char *hex = "0123456789abcdef";
|
const char *hex = "0123456789ABCDEF";
|
||||||
|
|
||||||
if ((buf == NULL) || (str == NULL))
|
if ((buf == NULL) || (str == NULL))
|
||||||
return;
|
return;
|
||||||
|
@ -184,7 +184,7 @@ mymain(void)
|
|||||||
{ NULL, NULL, false },
|
{ NULL, NULL, false },
|
||||||
};
|
};
|
||||||
TEST_FULL("spice://[3ffe::104]:5900/?tlsSubject=C=XX,L=Testtown,O=Test%20Company,CN=tester.test",
|
TEST_FULL("spice://[3ffe::104]:5900/?tlsSubject=C=XX,L=Testtown,O=Test%20Company,CN=tester.test",
|
||||||
"spice://[3ffe::104]:5900/?tlsSubject=C%3dXX%2cL%3dTesttown%2cO%3dTest%20Company%2cCN%3dtester.test",
|
"spice://[3ffe::104]:5900/?tlsSubject=C%3DXX%2CL%3DTesttown%2CO%3DTest%20Company%2CCN%3Dtester.test",
|
||||||
"spice", "3ffe::104", 5900, "/", "tlsSubject=C=XX,L=Testtown,O=Test%20Company,CN=tester.test", NULL, NULL, spiceparams);
|
"spice", "3ffe::104", 5900, "/", "tlsSubject=C=XX,L=Testtown,O=Test%20Company,CN=tester.test", NULL, NULL, spiceparams);
|
||||||
|
|
||||||
virURIParam params1[] = {
|
virURIParam params1[] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user