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

Side by Side Diff: net/socket/ssl_client_socket_mac.cc

Issue 9663043: Add a boolean |had_context| argument to the TLS ExportKeyingMaterial (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
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 #include "net/socket/ssl_client_socket_mac.h" 5 #include "net/socket/ssl_client_socket_mac.h"
6 6
7 #include <CoreServices/CoreServices.h> 7 #include <CoreServices/CoreServices.h>
8 #include <netdb.h> 8 #include <netdb.h>
9 #include <sys/socket.h> 9 #include <sys/socket.h>
10 #include <sys/types.h> 10 #include <sys/types.h>
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 // TODO(rch): we should consider passing a host-port pair as the first 771 // TODO(rch): we should consider passing a host-port pair as the first
772 // argument to X509Certificate::GetSSLClientCertificates. 772 // argument to X509Certificate::GetSSLClientCertificates.
773 X509Certificate::GetSSLClientCertificates(host_and_port_.host(), 773 X509Certificate::GetSSLClientCertificates(host_and_port_.host(),
774 valid_issuers, 774 valid_issuers,
775 &cert_request_info->client_certs); 775 &cert_request_info->client_certs);
776 VLOG(1) << "Asking user to choose between " 776 VLOG(1) << "Asking user to choose between "
777 << cert_request_info->client_certs.size() << " client certs..."; 777 << cert_request_info->client_certs.size() << " client certs...";
778 } 778 }
779 779
780 int SSLClientSocketMac::ExportKeyingMaterial(const base::StringPiece& label, 780 int SSLClientSocketMac::ExportKeyingMaterial(const base::StringPiece& label,
781 bool has_context,
781 const base::StringPiece& context, 782 const base::StringPiece& context,
782 unsigned char *out, 783 unsigned char *out,
Ryan Sleevi 2012/03/10 04:23:31 nit: "unsigned char *" -> "unsigned char* "
783 unsigned int outlen) { 784 unsigned int outlen) {
784 return ERR_NOT_IMPLEMENTED; 785 return ERR_NOT_IMPLEMENTED;
785 } 786 }
786 787
787 SSLClientSocket::NextProtoStatus 788 SSLClientSocket::NextProtoStatus
788 SSLClientSocketMac::GetNextProto(std::string* proto, 789 SSLClientSocketMac::GetNextProto(std::string* proto,
789 std::string* server_protos) { 790 std::string* server_protos) {
790 proto->clear(); 791 proto->clear();
791 server_protos->clear(); 792 server_protos->clear();
792 return kNextProtoUnsupported; 793 return kNextProtoUnsupported;
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 if (rv < 0 && rv != ERR_IO_PENDING) { 1429 if (rv < 0 && rv != ERR_IO_PENDING) {
1429 us->write_io_buf_ = NULL; 1430 us->write_io_buf_ = NULL;
1430 return OSStatusFromNetError(rv); 1431 return OSStatusFromNetError(rv);
1431 } 1432 }
1432 1433
1433 // always lie to our caller 1434 // always lie to our caller
1434 return noErr; 1435 return noErr;
1435 } 1436 }
1436 1437
1437 } // namespace net 1438 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698