OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 #include "talk/app/webrtc/webrtcsessiondescriptionfactory.h" | 30 #include "talk/app/webrtc/webrtcsessiondescriptionfactory.h" |
31 #include "webrtc/base/logging.h" | 31 #include "webrtc/base/logging.h" |
32 | 32 |
33 using webrtc::DtlsIdentityRequestObserver; | 33 using webrtc::DtlsIdentityRequestObserver; |
34 | 34 |
35 namespace webrtc { | 35 namespace webrtc { |
36 | 36 |
37 // Passed to SSLIdentity::Generate, "WebRTC". Used for the certificates' | 37 // Passed to SSLIdentity::Generate, "WebRTC". Used for the certificates' |
38 // subject and issuer name. | 38 // subject and issuer name. |
39 static const char kIdentityName[] = "WebRTC"; | 39 const char kIdentityName[] = "WebRTC"; |
40 | 40 |
41 namespace { | 41 namespace { |
42 | 42 |
43 enum { | 43 enum { |
44 MSG_DESTROY, | 44 MSG_DESTROY, |
45 MSG_GENERATE_IDENTITY, | 45 MSG_GENERATE_IDENTITY, |
46 MSG_GENERATE_IDENTITY_RESULT | 46 MSG_GENERATE_IDENTITY_RESULT |
47 }; | 47 }; |
48 | 48 |
49 } // namespace | 49 } // namespace |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 key_type == rtc::KT_RSA && // Only necessary for RSA. | 239 key_type == rtc::KT_RSA && // Only necessary for RSA. |
240 !request_info_[key_type].free_identity_.get() && | 240 !request_info_[key_type].free_identity_.get() && |
241 request_info_[key_type].request_observers_.size() <= | 241 request_info_[key_type].request_observers_.size() <= |
242 request_info_[key_type].gen_in_progress_counts_) { | 242 request_info_[key_type].gen_in_progress_counts_) { |
243 GenerateIdentity(key_type, nullptr); | 243 GenerateIdentity(key_type, nullptr); |
244 } | 244 } |
245 } | 245 } |
246 } | 246 } |
247 | 247 |
248 } // namespace webrtc | 248 } // namespace webrtc |
OLD | NEW |