[Rpm-maint] [rpm-software-management/rpm] Rust bindings for rpmlib (#429)

Jeff Johnson notifications at github.com
Thu Apr 12 16:04:58 UTC 2018


* STRING is ASCII, I18N tends to be UTF-8.

* (my guess) count is the same as count in header data (I will verify/correct if my guess is wrong)

* count is the number of octets for binary data

* the CHAR data type should be treated as a uint8/int8. There are very few (perhaps only one) tag with that data type: see the C comments in rpmtag.h for the usual type for each tag.

* STRING_ARRAY is mostly like argv, an array of pointers to strings, with some differences in allocation. With MINMEM, the strings are not allocated, and in some other cases, the strings are chunked so that freeing the array also frees the strings.

(Aside)
Lots of RPM tags are STRING_ARRAY, you will need to implement.

The cryptographic primitives of digest/signing are pretty seriously twisted throughout rpm code, so I doubt you can do anything serious by replacing with, say, a tpm. Signing is done by invoking gpg however, so you can write a gpg-like wrapper to other devices. The binary format and verification depend heavily on RFC 2440/4880 conventions.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/429#issuecomment-380858227
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180412/db588376/attachment.html>


More information about the Rpm-maint mailing list