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
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 begin(( size_t) blocklen,
( size_t) 8, RS_MD4_SIG_MAGIC); begin(( size_t) blocklen,
( size_t) RS_DEFAULT_ STRONG_ LEN);
sm->sig_job = rs_sig_
#else
sm->sig_job = rs_sig_
#endif