mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: Add support for cookies for HTTP based disks
Add possibility to specify one or more cookies for http based disks. This patch adds the config parser, storage and validation of the cookies. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -1817,6 +1817,24 @@
|
||||
</element>
|
||||
</define>
|
||||
|
||||
<define name="diskSourceNetworkProtocolHTTPCookies">
|
||||
<element name="cookies">
|
||||
<oneOrMore>
|
||||
<element name="cookie">
|
||||
<attribute name="name">
|
||||
<data type="string">
|
||||
<param name="pattern">[!#$%&'*+\-.0-9A-Z\^_`a-z|~]+</param>
|
||||
</data>
|
||||
</attribute>
|
||||
<data type="string">
|
||||
<param name="pattern">[!#$%&'()*+\-./0-9:>=<?@A-Z\^_`\[\]a-z|~]+</param>
|
||||
</data>
|
||||
</element>
|
||||
</oneOrMore>
|
||||
<empty/>
|
||||
</element>
|
||||
</define>
|
||||
|
||||
<define name="diskSourceNetworkProtocolHTTPS">
|
||||
<element name="source">
|
||||
<attribute name="protocol">
|
||||
@@ -1833,6 +1851,9 @@
|
||||
<optional>
|
||||
<ref name="diskSourceNetworkProtocolSSLVerify"/>
|
||||
</optional>
|
||||
<optional>
|
||||
<ref name="diskSourceNetworkProtocolHTTPCookies"/>
|
||||
</optional>
|
||||
</element>
|
||||
</define>
|
||||
|
||||
@@ -1849,6 +1870,9 @@
|
||||
<optional>
|
||||
<ref name="encryption"/>
|
||||
</optional>
|
||||
<optional>
|
||||
<ref name="diskSourceNetworkProtocolHTTPCookies"/>
|
||||
</optional>
|
||||
</element>
|
||||
</define>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user