[libvirt] adding smartcard support to libvirt

Eric Blake eblake at redhat.com
Wed Jan 5 23:59:12 UTC 2011


On 01/03/2011 11:50 AM, Eric Blake wrote:
> <domain...>
>   <devices>
>     <smartcard mode='host-certificates'>
>       <certificate id='1' path='cert1'/>
>       <certificate id='2' path='cert2'/>
>       <certificate id='3' path='cert3'/>
>     </smartcard>
>  </devices>
> </domain>

Slight tweak - filenames can be arbitrary, so they have to be nested
text rather than attributes.  Also, we know there are exactly three, and
can use them in listed order, without having to require an extra id
attribute.  And absolute paths may make more sense (since a libvirt user
can't be sure what a relative path is relative to).  Leading to:

<domain...>
  <devices>
    <smartcard mode='host-certificates'>
      <certificate>path='/path/to/cert1'</certificate>
      <certificate>path='/path/to/cert2'</certificate>
      <certificate>path='/path/to/cert3'</certificate>
    </smartcard>
  </devices>
</domain>

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110105/afd946c1/attachment-0001.sig>


More information about the libvir-list mailing list