OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
790 unsigned int outlen) { | 790 unsigned int outlen) { |
791 return ERR_NOT_IMPLEMENTED; | 791 return ERR_NOT_IMPLEMENTED; |
792 } | 792 } |
793 | 793 |
794 SSLClientSocket::NextProtoStatus | 794 SSLClientSocket::NextProtoStatus |
795 SSLClientSocketMac::GetNextProto(std::string* proto) { | 795 SSLClientSocketMac::GetNextProto(std::string* proto) { |
796 proto->clear(); | 796 proto->clear(); |
797 return kNextProtoUnsupported; | 797 return kNextProtoUnsupported; |
798 } | 798 } |
799 | 799 |
800 bool SSLClientSocketMac::WasOriginBoundCertNegotiated() { | |
801 // TODO(rch): support Origin Bound Certificates. | |
wtc
2011/12/06 19:22:11
Remove this TODO. SSLClientSocketMac uses Mac OS
Ryan Hamilton
2011/12/06 20:03:47
Done.
| |
802 return false; | |
803 } | |
804 | |
800 int SSLClientSocketMac::InitializeSSLContext() { | 805 int SSLClientSocketMac::InitializeSSLContext() { |
801 VLOG(1) << "----- InitializeSSLContext"; | 806 VLOG(1) << "----- InitializeSSLContext"; |
802 OSStatus status = noErr; | 807 OSStatus status = noErr; |
803 | 808 |
804 status = SSLNewContext(false, &ssl_context_); | 809 status = SSLNewContext(false, &ssl_context_); |
805 if (status) | 810 if (status) |
806 return NetErrorFromOSStatus(status); | 811 return NetErrorFromOSStatus(status); |
807 | 812 |
808 status = SSLSetProtocolVersionEnabled(ssl_context_, | 813 status = SSLSetProtocolVersionEnabled(ssl_context_, |
809 kSSLProtocol2, | 814 kSSLProtocol2, |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1427 if (rv < 0 && rv != ERR_IO_PENDING) { | 1432 if (rv < 0 && rv != ERR_IO_PENDING) { |
1428 us->write_io_buf_ = NULL; | 1433 us->write_io_buf_ = NULL; |
1429 return OSStatusFromNetError(rv); | 1434 return OSStatusFromNetError(rv); |
1430 } | 1435 } |
1431 | 1436 |
1432 // always lie to our caller | 1437 // always lie to our caller |
1433 return noErr; | 1438 return noErr; |
1434 } | 1439 } |
1435 | 1440 |
1436 } // namespace net | 1441 } // namespace net |
OLD | NEW |