OLD | NEW |
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 #ifndef NET_CERT_CERT_VERIFY_PROC_H_ | 5 #ifndef NET_CERT_CERT_VERIFY_PROC_H_ |
6 #define NET_CERT_CERT_VERIFY_PROC_H_ | 6 #define NET_CERT_CERT_VERIFY_PROC_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 // Sets the weak signature hash fields of |verify_result| to true if | 138 // Sets the weak signature hash fields of |verify_result| to true if |
139 // applicable for |cert|, otherwise does not modify them. | 139 // applicable for |cert|, otherwise does not modify them. |
140 // | 140 // |
141 // The fields in question are: |has_md2|, |has_md4|, |has_md5|,|has_sha1| and | 141 // The fields in question are: |has_md2|, |has_md4|, |has_md5|,|has_sha1| and |
142 // |has_sha1_leaf|. | 142 // |has_sha1_leaf|. |
143 // | 143 // |
144 // Returns the hash algorithm that was determined for |cert|. | 144 // Returns the hash algorithm that was determined for |cert|. |
145 // | 145 // |
146 // This function is intended to be used as a helper by platform-specific | 146 // This function is intended to be used as a helper by platform-specific |
147 // CertVerifyProc implementations. | 147 // CertVerifyProc implementations. |
148 X509Certificate::SignatureHashAlgorithm FillCertVerifyResultWeakSignature( | 148 NET_EXPORT X509Certificate::SignatureHashAlgorithm |
149 X509Certificate::OSCertHandle cert, | 149 FillCertVerifyResultWeakSignature(X509Certificate::OSCertHandle cert, |
150 bool is_leaf, | 150 bool is_leaf, |
151 CertVerifyResult* verify_result); | 151 CertVerifyResult* verify_result); |
152 | 152 |
153 } // namespace net | 153 } // namespace net |
154 | 154 |
155 #endif // NET_CERT_CERT_VERIFY_PROC_H_ | 155 #endif // NET_CERT_CERT_VERIFY_PROC_H_ |
OLD | NEW |