Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: talk/app/webrtc/dtlsidentitystore.cc

Issue 1312293003: Add option to enable ECDSA key for Java API. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Add TODO item Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « talk/app/webrtc/dtlsidentitystore.h ('k') | talk/app/webrtc/java/jni/classreferenceholder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « talk/app/webrtc/dtlsidentitystore.h ('k') | talk/app/webrtc/java/jni/classreferenceholder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698