[Rpm-maint] [rpm-software-management/rpm] Add OpenSSL crypto backend (#129)

Igor Gnatenko notifications at github.com
Wed Jan 18 16:03:31 UTC 2017


ignatenkobrain commented on this pull request.



> +    else {
+        /* ASCII requested */
+        if (lenp) *lenp = (2*digestlen) + 1;
+        if (datap) {
+            const uint8_t * s = (const uint8_t *) digest;
+            *datap = pgpHexStr(s, digestlen);
+        }
+    }
+
+    ret = 1;
+
+done:
+    if (digest) {
+        /* Zero the digest, just in case it's sensitive */
+        memset(digest, 0, digestlen);
+	    free(digest);

I think something went wrong with style ;)

-- 
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/pull/129#pullrequestreview-17257123
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170118/e96e5f6f/attachment.html>


More information about the Rpm-maint mailing list