From nobody Sun Feb 8 21:06:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1571925495; cv=none; d=zoho.com; s=zohoarc; b=VnNsn++S3y/qsJc9QSkUvjPIFfSs2EW9h1lCaBYYCImcJGeNndz4lVupFpxHcqpWunoTW55++4pq7AO7/jaIJF7jIsx4sWBwmQ15wm8uX/WkFYPdMrBoq3Pj883rxiOnYql43cOh9dizy8heNkLFqsNB/2zAEzQYLMTNCQrYutA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571925495; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=kWuemfUjK6XCvLlrd0kpCQWLjvbAjm60WrhLkrfkO+0=; b=WpSmMHyLf/aQCGMcPZDFkAmgbAGrqfKHAKPakzSydU4rNDallLSEw3HClknuwOlEcX8It4deFLBc4bCcf3x6QdcGJmhUNgudy1VQDyhxwSj4RcxN6+DQddY+cOtQvyQr0qwqi1fAnpniq14VF/zBJl7J3RhfoU03wJ+AtV4/qPY= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (207.211.31.81 [207.211.31.81]) by mx.zohomail.com with SMTPS id 1571925495967717.4856870598328; Thu, 24 Oct 2019 06:58:15 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-196-JxzgA_0FNXq95i4iX4JEAA-1; Thu, 24 Oct 2019 09:57:20 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8E577801E66; Thu, 24 Oct 2019 13:57:15 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 60B5A60A97; Thu, 24 Oct 2019 13:57:15 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 25936180BA9A; Thu, 24 Oct 2019 13:57:15 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x9ODv6aH026420 for ; Thu, 24 Oct 2019 09:57:06 -0400 Received: by smtp.corp.redhat.com (Postfix) id E707C10027A9; Thu, 24 Oct 2019 13:57:06 +0000 (UTC) Received: from angien.redhat.com (unknown [10.43.2.229]) by smtp.corp.redhat.com (Postfix) with ESMTP id 706CD100164D for ; Thu, 24 Oct 2019 13:57:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571925494; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=kWuemfUjK6XCvLlrd0kpCQWLjvbAjm60WrhLkrfkO+0=; b=fJpM79wLr03dRqOYqgxNxKf7n5SLyv+uN8rtt//ZjdETlFs+4X/+P19/QOOHGBQ3zOIol7 yBFjlblKhZGeH0TmM5z3UE602myZSR4kFvGvEEQ4SBvKSMKpmTOazJX0G4s/r0u37Tlkj3 XVCm549yUTroie+i6lTsHcUN4Yhvi2o= From: Peter Krempa To: libvir-list@redhat.com Date: Thu, 24 Oct 2019 15:56:32 +0200 Message-Id: <9561863b11b83575d9f584c4c17e57f73df6adf5.1571925291.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 14/19] util: buffer: Encode URIs with upper case hex characters X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-MC-Unique: JxzgA_0FNXq95i4iX4JEAA-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" rfc3986 uses uppercase characters so switch to using them as well. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- src/util/virbuffer.c | 2 +- tests/viruritest.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/virbuffer.c b/src/util/virbuffer.c index bde118a248..2256bd5de5 100644 --- a/src/util/virbuffer.c +++ b/src/util/virbuffer.c @@ -663,7 +663,7 @@ virBufferURIEncodeString(virBufferPtr buf, const char *= str) int grow_size =3D 0; const char *p; unsigned char uc; - const char *hex =3D "0123456789abcdef"; + const char *hex =3D "0123456789ABCDEF"; if ((buf =3D=3D NULL) || (str =3D=3D NULL)) return; diff --git a/tests/viruritest.c b/tests/viruritest.c index a11587e52b..07cf7261d1 100644 --- a/tests/viruritest.c +++ b/tests/viruritest.c @@ -184,7 +184,7 @@ mymain(void) { NULL, NULL, false }, }; TEST_FULL("spice://[3ffe::104]:5900/?tlsSubject=3DC=3DXX,L=3DTesttown,= O=3DTest%20Company,CN=3Dtester.test", - "spice://[3ffe::104]:5900/?tlsSubject=3DC%3dXX%2cL%3dTesttow= n%2cO%3dTest%20Company%2cCN%3dtester.test", + "spice://[3ffe::104]:5900/?tlsSubject=3DC%3DXX%2CL%3DTesttow= n%2CO%3DTest%20Company%2CCN%3Dtester.test", "spice", "3ffe::104", 5900, "/", "tlsSubject=3DC=3DXX,L=3DTe= sttown,O=3DTest%20Company,CN=3Dtester.test", NULL, NULL, spiceparams); virURIParam params1[] =3D { --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list