Use CalculateFingerprint256()

This commit is contained in:
Anthony Tseng 2016-07-14 19:09:11 +08:00
parent db39867ad9
commit 02e89d60f1

View file

@ -50,7 +50,9 @@ v8::Local<v8::Value> Converter<scoped_refptr<net::X509Certificate>>::ToV8(
dict.Set("serialNumber", val->serial_number());
dict.Set("validStart", val->valid_start().ToDoubleT());
dict.Set("validExpiry", val->valid_expiry().ToDoubleT());
dict.Set("fingerprint", net::HashValue(val->fingerprint()).ToString());
dict.Set("fingerprint",
net::HashValue(
val->CalculateFingerprint256(val->os_cert_handle())).ToString());
return dict.GetHandle();
}