Author: poeml Date: Fri May 28 19:02:28 2010 New Revision: 8066 URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8066&view=rev Log: mod_mirrorbrain: - include SHA1 top hash into torrents (fixing issue #48) Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mod_mirrorbrain/mod_mirrorbrain.c?rev=8066&r1=8065&r2=8066&view=diff ============================================================================== --- trunk/mod_mirrorbrain/mod_mirrorbrain.c (original) +++ trunk/mod_mirrorbrain/mod_mirrorbrain.c Fri May 28 19:02:28 2010 _at_@ -2672,6 +2672,11 @@ for (i = 0; i < hashbag->sha1pieceshex->nelts; i++) { ap_rwrite(hex_decode(r, p[i], SHA1_DIGESTSIZE), SHA1_DIGESTSIZE, r); } + ap_rprintf(r, "4:sha1" + "%d:", SHA1_DIGESTSIZE); + ap_rwrite( hex_decode(r, hashbag->sha1hex, SHA1_DIGESTSIZE), + SHA1_DIGESTSIZE, r); + ap_rputs( "e", r); /* Web seeds _______________________________________________ mirrorbrain-commits mailing list Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/ Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on Fri May 28 2010 - 17:02:31 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT