| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include </Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Security.fram
ework/Headers/cssmapi.h> |
| 6 #include </Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Security.fram
ework/Headers/cssmapple.h> |
| 7 #include </Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Security.fram
ework/Headers/cssmtype.h> |
| 8 #include <stdbool.h> |
| 9 #include <stdlib.h> |
| 10 #include <string.h> |
| 11 #include <vector> |
| 12 |
| 13 #include "base/basictypes.h" |
| 14 #include "base/crypto/cssm_init.h" |
| 5 #include "base/crypto/signature_verifier.h" | 15 #include "base/crypto/signature_verifier.h" |
| 6 | |
| 7 #include <stdlib.h> | |
| 8 | |
| 9 #include "base/crypto/cssm_init.h" | |
| 10 #include "base/logging.h" | 16 #include "base/logging.h" |
| 11 | 17 |
| 12 namespace base { | 18 namespace base { |
| 13 | 19 |
| 14 SignatureVerifier::SignatureVerifier() : sig_handle_(0) { | 20 SignatureVerifier::SignatureVerifier() : sig_handle_(0) { |
| 15 EnsureCSSMInit(); | 21 EnsureCSSMInit(); |
| 16 } | 22 } |
| 17 | 23 |
| 18 SignatureVerifier::~SignatureVerifier() { | 24 SignatureVerifier::~SignatureVerifier() { |
| 19 Reset(); | 25 Reset(); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 sig_handle_ = 0; | 102 sig_handle_ = 0; |
| 97 } | 103 } |
| 98 signature_.clear(); | 104 signature_.clear(); |
| 99 | 105 |
| 100 // Can't call CSSM_FreeKey on public_key_ because we constructed | 106 // Can't call CSSM_FreeKey on public_key_ because we constructed |
| 101 // public_key_ manually. | 107 // public_key_ manually. |
| 102 } | 108 } |
| 103 | 109 |
| 104 } // namespace base | 110 } // namespace base |
| 105 | 111 |
| OLD | NEW |