| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  *  Copyright 2004 The WebRTC Project Authors. All rights reserved. |    2  *  Copyright 2004 The WebRTC Project Authors. All rights reserved. | 
|    3  * |    3  * | 
|    4  *  Use of this source code is governed by a BSD-style license |    4  *  Use of this source code is governed by a BSD-style license | 
|    5  *  that can be found in the LICENSE file in the root of the source |    5  *  that can be found in the LICENSE file in the root of the source | 
|    6  *  tree. An additional intellectual property rights grant can be found |    6  *  tree. An additional intellectual property rights grant can be found | 
|    7  *  in the file PATENTS.  All contributing project authors may |    7  *  in the file PATENTS.  All contributing project authors may | 
|    8  *  be found in the AUTHORS file in the root of the source tree. |    8  *  be found in the AUTHORS file in the root of the source tree. | 
|    9  */ |    9  */ | 
|   10  |   10  | 
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  193     result << b64_encoded.substr(chunk_offset, kChunkSize); |  193     result << b64_encoded.substr(chunk_offset, kChunkSize); | 
|  194     result << "\n"; |  194     result << "\n"; | 
|  195   } |  195   } | 
|  196  |  196  | 
|  197   result << "-----END " << pem_type << "-----\n"; |  197   result << "-----END " << pem_type << "-----\n"; | 
|  198  |  198  | 
|  199   return result.str(); |  199   return result.str(); | 
|  200 } |  200 } | 
|  201  |  201  | 
|  202 SSLCertChain::SSLCertChain(const std::vector<SSLCertificate*>& certs) { |  202 SSLCertChain::SSLCertChain(const std::vector<SSLCertificate*>& certs) { | 
|  203   ASSERT(!certs.empty()); |  203   RTC_DCHECK(!certs.empty()); | 
|  204   certs_.resize(certs.size()); |  204   certs_.resize(certs.size()); | 
|  205   std::transform(certs.begin(), certs.end(), certs_.begin(), DupCert); |  205   std::transform(certs.begin(), certs.end(), certs_.begin(), DupCert); | 
|  206 } |  206 } | 
|  207  |  207  | 
|  208 SSLCertChain::SSLCertChain(const SSLCertificate* cert) { |  208 SSLCertChain::SSLCertChain(const SSLCertificate* cert) { | 
|  209   certs_.push_back(cert->GetReference()); |  209   certs_.push_back(cert->GetReference()); | 
|  210 } |  210 } | 
|  211  |  211  | 
|  212 SSLCertChain::~SSLCertChain() { |  212 SSLCertChain::~SSLCertChain() { | 
|  213   std::for_each(certs_.begin(), certs_.end(), DeleteCert); |  213   std::for_each(certs_.begin(), certs_.end(), DeleteCert); | 
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  330  |  330  | 
|  331   if (bytes_left != 1) { |  331   if (bytes_left != 1) { | 
|  332     // Now just Z should remain.  Its existence was asserted above. |  332     // Now just Z should remain.  Its existence was asserted above. | 
|  333     return -1; |  333     return -1; | 
|  334   } |  334   } | 
|  335  |  335  | 
|  336   return TmToSeconds(tm); |  336   return TmToSeconds(tm); | 
|  337 } |  337 } | 
|  338  |  338  | 
|  339 }  // namespace rtc |  339 }  // namespace rtc | 
| OLD | NEW |