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

Side by Side Diff: base/crypto/signature_verifier.h

Issue 118469: compile on openbsd: mostly ifdefs and missing includes,... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 6 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) 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 #ifndef BASE_CRYPTO_SIGNATURE_VERIFIER_H_ 5 #ifndef BASE_CRYPTO_SIGNATURE_VERIFIER_H_
6 #define BASE_CRYPTO_SIGNATURE_VERIFIER_H_ 6 #define BASE_CRYPTO_SIGNATURE_VERIFIER_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_LINUX) 10 #if defined(OS_LINUX) || defined(OS_OPENBSD)
11 #include <cryptoht.h> 11 #include <cryptoht.h>
12 #elif defined(OS_MACOSX) 12 #elif defined(OS_MACOSX)
13 #include <Security/cssm.h> 13 #include <Security/cssm.h>
14 #elif defined(OS_WIN) 14 #elif defined(OS_WIN)
15 #include <windows.h> 15 #include <windows.h>
16 #include <wincrypt.h> 16 #include <wincrypt.h>
17 #endif 17 #endif
18 18
19 #include <vector> 19 #include <vector>
20 20
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // const uint8* signature, 74 // const uint8* signature,
75 // int signature_len, 75 // int signature_len,
76 // const uint8* public_key_info, 76 // const uint8* public_key_info,
77 // int public_key_info_len); 77 // int public_key_info_len);
78 78
79 private: 79 private:
80 void Reset(); 80 void Reset();
81 81
82 std::vector<uint8> signature_; 82 std::vector<uint8> signature_;
83 83
84 #if defined(OS_LINUX) 84 #if defined(OS_LINUX) || defined(OS_OPENBSD)
85 VFYContext* vfy_context_; 85 VFYContext* vfy_context_;
86 #elif defined(OS_MACOSX) 86 #elif defined(OS_MACOSX)
87 std::vector<uint8> public_key_info_; 87 std::vector<uint8> public_key_info_;
88 88
89 CSSM_CSP_HANDLE csp_handle_; 89 CSSM_CSP_HANDLE csp_handle_;
90 90
91 CSSM_CC_HANDLE sig_handle_; 91 CSSM_CC_HANDLE sig_handle_;
92 92
93 CSSM_KEY public_key_; 93 CSSM_KEY public_key_;
94 #elif defined(OS_WIN) 94 #elif defined(OS_WIN)
95 HCRYPTPROV provider_; 95 HCRYPTPROV provider_;
96 96
97 HCRYPTHASH hash_object_; 97 HCRYPTHASH hash_object_;
98 98
99 HCRYPTKEY public_key_; 99 HCRYPTKEY public_key_;
100 #endif 100 #endif
101 }; 101 };
102 102
103 } // namespace base 103 } // namespace base
104 104
105 #endif // BASE_CRYPTO_SIGNATURE_VERIFIER_H_ 105 #endif // BASE_CRYPTO_SIGNATURE_VERIFIER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698