blob: 2570c37b56b79b3b3fb0c15ef9f3d2311443b51c [file] [log] [blame]
David Reiss9e7ba8c2010-10-05 16:39:27 +00001#include "t_type.h"
2
3#include "md5.h"
4
5void t_type::generate_fingerprint() {
6 std::string material = get_fingerprint_material();
7 md5_state_t ctx;
8 md5_init(&ctx);
9 md5_append(&ctx, (md5_byte_t*)(material.data()), (int)material.size());
10 md5_finish(&ctx, (md5_byte_t*)fingerprint_);
11}