• Home
  • Raw
  • Download

Lines Matching refs:tbs_crl

22 std::string* AddRevokedPublicKeyHash(TbsCrl* tbs_crl, X509* cert) {  in AddRevokedPublicKeyHash()  argument
23 std::string* pubkey_hash = tbs_crl->add_revoked_public_key_hashes(); in AddRevokedPublicKeyHash()
29 void AddSerialNumberRange(TbsCrl* tbs_crl, in AddSerialNumberRange() argument
33 SerialNumberRange* serial_range = tbs_crl->add_revoked_serial_number_ranges(); in AddSerialNumberRange()
45 TbsCrl tbs_crl; in MakeTbsCrl() local
46 tbs_crl.set_version(0); in MakeTbsCrl()
47 tbs_crl.set_not_before_seconds(not_before); in MakeTbsCrl()
48 tbs_crl.set_not_after_seconds(not_after); in MakeTbsCrl()
51 std::string* pubkey_hash = AddRevokedPublicKeyHash(&tbs_crl, device_cert); in MakeTbsCrl()
61 AddSerialNumberRange(&tbs_crl, inter_cert, serial + 100, serial + 200); in MakeTbsCrl()
63 return tbs_crl; in MakeTbsCrl()
69 const TbsCrl& tbs_crl, in PackCrlIntoFile() argument
75 tbs_crl.SerializeToString(tbs_crl_serial); in PackCrlIntoFile()
140 TbsCrl tbs_crl = MakeTbsCrl(not_before.count(), not_after.count(), in CastMain() local
142 PackCrlIntoFile(data_path + "good_crl.pb", tbs_crl, crl_inter_der[0], in CastMain()
152 TbsCrl tbs_crl = MakeTbsCrl(not_before.count(), not_after.count(), in CastMain() local
154 PackCrlIntoFile(data_path + "invalid_time_crl.pb", tbs_crl, in CastMain()
160 TbsCrl tbs_crl = MakeTbsCrl(not_before.count(), not_after.count(), in CastMain() local
162 AddRevokedPublicKeyHash(&tbs_crl, inter_cert.get()); in CastMain()
163 PackCrlIntoFile(data_path + "issuer_revoked_crl.pb", tbs_crl, in CastMain()
169 TbsCrl tbs_crl = MakeTbsCrl(not_before.count(), not_after.count(), in CastMain() local
171 AddRevokedPublicKeyHash(&tbs_crl, device_cert.get()); in CastMain()
172 PackCrlIntoFile(data_path + "device_revoked_crl.pb", tbs_crl, in CastMain()
178 TbsCrl tbs_crl = MakeTbsCrl(not_before.count(), not_after.count(), in CastMain() local
186 AddSerialNumberRange(&tbs_crl, root_cert.get(), serial - 10, serial + 20); in CastMain()
187 PackCrlIntoFile(data_path + "issuer_serial_revoked_crl.pb", tbs_crl, in CastMain()
193 TbsCrl tbs_crl = MakeTbsCrl(not_before.count(), not_after.count(), in CastMain() local
201 AddSerialNumberRange(&tbs_crl, inter_cert.get(), serial - 10, serial + 20); in CastMain()
202 PackCrlIntoFile(data_path + "device_serial_revoked_crl.pb", tbs_crl, in CastMain()
208 TbsCrl tbs_crl = MakeTbsCrl(not_before.count(), not_after.count(), in CastMain() local
210 PackCrlIntoFile(data_path + "bad_signer_cert_crl.pb", tbs_crl, inter_der, in CastMain()
216 TbsCrl tbs_crl = MakeTbsCrl(not_before.count(), not_after.count(), in CastMain() local
218 PackCrlIntoFile(data_path + "bad_signature_crl.pb", tbs_crl, in CastMain()