Index: webrtc/api/test/fakedtlsidentitystore.h |
diff --git a/webrtc/api/test/fakedtlsidentitystore.h b/webrtc/api/test/fakedtlsidentitystore.h |
index 85acd3f66d596df2158abee65e19acfd7220ba3b..7c8a4fc71faa5741aafc74e7fc3fa0b4f2f86ff8 100644 |
--- a/webrtc/api/test/fakedtlsidentitystore.h |
+++ b/webrtc/api/test/fakedtlsidentitystore.h |
@@ -96,11 +96,15 @@ class FakeDtlsIdentityStore : public webrtc::DtlsIdentityStoreInterface, |
void use_alternate_key() { key_index_ = 1; } |
void RequestIdentity( |
- rtc::KeyType key_type, |
+ rtc::KeyParams key_params, |
+ rtc::Optional<uint64_t> expires, |
const rtc::scoped_refptr<webrtc::DtlsIdentityRequestObserver>& |
observer) override { |
// TODO(hbos): Should be able to generate KT_ECDSA too. |
- RTC_DCHECK(key_type == rtc::KT_RSA || should_fail_); |
+ RTC_DCHECK((key_params.type() == rtc::KT_RSA && |
+ key_params.rsa_params().mod_size == 1024 && |
+ key_params.rsa_params().pub_exp == 0x10001) || |
+ should_fail_); |
MessageData* msg = new MessageData( |
rtc::scoped_refptr<webrtc::DtlsIdentityRequestObserver>(observer)); |
rtc::Thread::Current()->Post( |