Comment 3 for bug 1416344

Revision history for this message
Kari Hautio (khautio) wrote :

Backward compatibility can easily be achieved with librsync 1.0.0. If the sig_magic is set to RS_MD4_SIG_MAGIC.

The RS_DEFAULT_STRONG_LEN is also gone and thus the value is set in code.

Something like should be compatible with either version.

#ifdef RS_MD4_SIG_MAGIC // librasync >= 1.0.0
sm->sig_job = rs_sig_begin((size_t)blocklen,
                           (size_t)8, RS_MD4_SIG_MAGIC);
#else
sm->sig_job = rs_sig_begin((size_t)blocklen,
                           (size_t)RS_DEFAULT_STRONG_LEN);
#endif