librsync stream interface

Denis Corbin <[email protected]> Sun, 31 May 2015 18:39:20 +0200
Newsgroups gmane.network.librsync.general
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I could find how to generate a signature thanks to rs_sig_begin()
rs_job_iter() and rs_job_free(). Here the signature is kept in memory
gathering the rs_buffer_t's next_out and avail_out fields as updated
by rs_job_iter().

Now having this signature in memory, I cannot find how to setup a
rs_signature_t data that is required to be fed to rs_delta_begin(), in
order to perform a delta operation.

I could only find rs_loadsig_file() but this requires a FILE*
datastructure which is not of much help in my case as the signature is
not on filesystem but in memory.

What did I overlooked?

Thanks for any help,
Denis.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIVAwUBVWs5NwgxsL0D2LGCAQKkvw//WHWEKIWJeWxALPN6f1V6cjqPq8qyX0Ls
9G/M1RIKXL1p8CLp2mOuIhlMm+BsXsXi08BPXKeKJNP02b82U7e64To8Dcr4d3gG
u8aRqy4+tO8iazszZn4sBoiLbnlrfkvHkAsiyL/vvD0VbQkm76Kn/jiF0ooHKCOJ
f8VsKaGki467XhjLAiVHoMZHWPVhxPJOjb+M6nrdU08LNnlEVW33vJHVk3gFx2d8
L5Vv528b1SA0zcccuTfd3sf1TJ/PTFqU0BAY3mbiYNgwmvzS6jv3DfDzcKBynwLV
EDgEN+zRQZmhVUbL3tNc+6z6B3RfH4dgVoXgsAq/tCcXFkoLceLDL7OpSqSB9Hvi
jSVpFTBzRDJtg1GBSVk+hGKH7TDK9gPC0kGuEH/QkN3Lu2ui2wtkShFZbqnikT/8
uLXXrWvPJfJU7wsLLyCADSiDjA97URLjFO8p7jAd+Zgsg6WIDkJqHzp+fIoTH3zF
pQRZD2p2k6VU7A3yTog+TRUmFOSLRA3W+UH1hxEIDg30LWa+M8V+pGyJ0/599rrN
pucko57hDauUViqMAnZFdmJqEh9M9PxUxxbA5j1tjfbiQtSX4k8dNsWwdMCSXTC0
jIRgEzgMwn9SX+HfmEF0KfaQYcl7Q3MXOp6fwqj2PFxkADT5lyTuJMrGPtDuwmsm
Oxoi6M7DVWM=
=RWp1
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------