| 64 | } |
| 65 | |
| 66 | void BrClientConnection::startCert(uint32_t) |
| 67 | { |
| 68 | if(x509.count() != 0) { |
| 69 | return; |
| 70 | } |
| 71 | |
| 72 | certificate = std::make_unique<BrCertificate>(); |
| 73 | x509Decoder = std::make_unique<X509Decoder>(&certificate->subject, &certificate->issuer); |
| 74 | |
| 75 | auto& types = context.session.validators.fingerprintTypes; |
| 76 | resetHash(certSha1Context, types.contains(Fingerprint::Type::CertSha1)); |
| 77 | resetHash(certSha256Context, types.contains(Fingerprint::Type::CertSha256)); |
| 78 | } |
| 79 | |
| 80 | void BrClientConnection::appendCertData(const uint8_t* buf, size_t len) |
| 81 | { |