| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 GetDefaultCertNickname(), derived from | 5 // This file includes code GetDefaultCertNickname(), derived from |
| 6 // nsNSSCertificate::defaultServerNickName() | 6 // nsNSSCertificate::defaultServerNickName() |
| 7 // in mozilla/security/manager/ssl/src/nsNSSCertificate.cpp | 7 // in mozilla/security/manager/ssl/src/nsNSSCertificate.cpp |
| 8 // and SSLClientSocketNSS::DoVerifyCertComplete() derived from | 8 // and SSLClientSocketNSS::DoVerifyCertComplete() derived from |
| 9 // AuthCertificateCallback() in | 9 // AuthCertificateCallback() in |
| 10 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp. | 10 // mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 * of those above. If you wish to allow use of your version of this file only | 41 * of those above. If you wish to allow use of your version of this file only |
| 42 * under the terms of either the GPL or the LGPL, and not to allow others to | 42 * under the terms of either the GPL or the LGPL, and not to allow others to |
| 43 * use your version of this file under the terms of the MPL, indicate your | 43 * use your version of this file under the terms of the MPL, indicate your |
| 44 * decision by deleting the provisions above and replace them with the notice | 44 * decision by deleting the provisions above and replace them with the notice |
| 45 * and other provisions required by the GPL or the LGPL. If you do not delete | 45 * and other provisions required by the GPL or the LGPL. If you do not delete |
| 46 * the provisions above, a recipient may use your version of this file under | 46 * the provisions above, a recipient may use your version of this file under |
| 47 * the terms of any one of the MPL, the GPL or the LGPL. | 47 * the terms of any one of the MPL, the GPL or the LGPL. |
| 48 * | 48 * |
| 49 * ***** END LICENSE BLOCK ***** */ | 49 * ***** END LICENSE BLOCK ***** */ |
| 50 | 50 |
| 51 #include "net/base/ssl_client_socket_nss.h" | 51 #include "net/socket/ssl_client_socket_nss.h" |
| 52 | 52 |
| 53 #include <certdb.h> | 53 #include <certdb.h> |
| 54 #include <nspr.h> | 54 #include <nspr.h> |
| 55 #include <nss.h> | 55 #include <nss.h> |
| 56 #include <secerr.h> | 56 #include <secerr.h> |
| 57 // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=455424 | 57 // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=455424 |
| 58 // until NSS 3.12.2 comes out and we update to it. | 58 // until NSS 3.12.2 comes out and we update to it. |
| 59 #define Lock FOO_NSS_Lock | 59 #define Lock FOO_NSS_Lock |
| 60 #include <ssl.h> | 60 #include <ssl.h> |
| 61 #include <sslerr.h> | 61 #include <sslerr.h> |
| (...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 811 if (prerr == PR_WOULD_BLOCK_ERROR) { | 811 if (prerr == PR_WOULD_BLOCK_ERROR) { |
| 812 GotoState(STATE_PAYLOAD_WRITE); | 812 GotoState(STATE_PAYLOAD_WRITE); |
| 813 return ERR_IO_PENDING; | 813 return ERR_IO_PENDING; |
| 814 } | 814 } |
| 815 user_buf_ = NULL; | 815 user_buf_ = NULL; |
| 816 LeaveFunction(""); | 816 LeaveFunction(""); |
| 817 return NetErrorFromNSPRError(prerr); | 817 return NetErrorFromNSPRError(prerr); |
| 818 } | 818 } |
| 819 | 819 |
| 820 } // namespace net | 820 } // namespace net |
| OLD | NEW |