[libvirt] Some questions about virConnectAuthCallbackPtr

Richard W.M. Jones rjones at redhat.com
Sat Oct 13 14:52:06 UTC 2012


Some questions which seem to be left ambigious by the documentation
for virConnectAuthCallbackPtr:

http://libvirt.org/html/libvirt-libvirt.html#virConnectAuthCallbackPtr

(1) For a single open, can this be called multiple times?  I'm
thinking, some authentication methods might give the user N attempts
at typing the password, which might result in N callbacks here.

(2) The documentation says: "Returns: 0 if all interactions were
filled, or -1 upon error".  However it also says "If an interaction
cannot be filled, fill in NULL and 0".  Does that mean it's OK (not an
error, return 0) if a result field is set to NULL?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top




More information about the libvir-list mailing list