OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * NSS utility functions |
| 3 * |
| 4 * This Source Code Form is subject to the terms of the Mozilla Public |
| 5 * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 7 |
| 8 #ifndef NET_THIRD_PARTY_NSS_SSL_CMPCERT_H_ |
| 9 #define NET_THIRD_PARTY_NSS_SSL_CMPCERT_H_ |
| 10 |
| 11 #include <cert.h> |
| 12 |
| 13 #include <string> |
| 14 #include <vector> |
| 15 |
| 16 #include "net/cert/scoped_nss_types.h" |
| 17 |
| 18 namespace net { |
| 19 |
| 20 // Checks if |cert| matches |cert_authorities|. If so, it sets |*intermediates| |
| 21 // to a list of intermediates to send and returns true. Otherwise, it returns |
| 22 // false. |
| 23 bool MatchClientCertificateIssuers( |
| 24 CERTCertificate* cert, |
| 25 const std::vector<std::string>& cert_authorities, |
| 26 std::vector<ScopedCERTCertificate>* intermediates); |
| 27 |
| 28 } // namespace net |
| 29 |
| 30 #endif // NET_THIRD_PARTY_NSS_SSL_CMPCERT_H_ |
OLD | NEW |