OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file includes code SSLClientSocketNSS::DoVerifyCertComplete() derived | 5 // This file includes code SSLClientSocketNSS::DoVerifyCertComplete() derived |
6 // from AuthCertificateCallback() in | 6 // from AuthCertificateCallback() in |
7 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp. | 7 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp. |
8 | 8 |
9 /* ***** BEGIN LICENSE BLOCK ***** | 9 /* ***** BEGIN LICENSE BLOCK ***** |
10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
(...skipping 3566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3577 } | 3577 } |
3578 for (ct::SCTList::const_iterator iter = | 3578 for (ct::SCTList::const_iterator iter = |
3579 ct_verify_result_.unknown_logs_scts.begin(); | 3579 ct_verify_result_.unknown_logs_scts.begin(); |
3580 iter != ct_verify_result_.unknown_logs_scts.end(); ++iter) { | 3580 iter != ct_verify_result_.unknown_logs_scts.end(); ++iter) { |
3581 ssl_info->signed_certificate_timestamps.push_back( | 3581 ssl_info->signed_certificate_timestamps.push_back( |
3582 SignedCertificateTimestampAndStatus(*iter, | 3582 SignedCertificateTimestampAndStatus(*iter, |
3583 ct::SCT_STATUS_LOG_UNKNOWN)); | 3583 ct::SCT_STATUS_LOG_UNKNOWN)); |
3584 } | 3584 } |
3585 } | 3585 } |
3586 | 3586 |
| 3587 scoped_refptr<X509Certificate> |
| 3588 SSLClientSocketNSS::GetUnverifiedServerCertificateChain() const { |
| 3589 return core_->state().server_cert.get(); |
| 3590 } |
| 3591 |
3587 ServerBoundCertService* SSLClientSocketNSS::GetServerBoundCertService() const { | 3592 ServerBoundCertService* SSLClientSocketNSS::GetServerBoundCertService() const { |
3588 return server_bound_cert_service_; | 3593 return server_bound_cert_service_; |
3589 } | 3594 } |
3590 | 3595 |
3591 } // namespace net | 3596 } // namespace net |
OLD | NEW |