Commit d332a83e authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Removed need for polarssl in vcard.cc, use bctoolbox instead

parent e7eaaf56
......@@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "belcard/belcard.hpp"
#include "belcard/belcard_parser.hpp"
#include "sal/sal.h"
#include <polarssl/md5.h>
#include <bctoolbox/crypto.h>
struct _LinphoneVCard {
shared_ptr<belcard::BelCard> belCard;
......@@ -234,7 +234,7 @@ void linphone_vcard_compute_md5_hash(LinphoneVCard *vCard) {
return;
}
text = linphone_vcard_as_vcard4_string(vCard);
md5((unsigned char *)text, strlen(text), digest);
bctoolbox_md5((unsigned char *)text, strlen(text), digest);
vCard->md5 = (unsigned char *)ms_malloc(sizeof(digest));
memcpy(vCard->md5, digest, sizeof(digest));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment