QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 1 | // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file._ |
| 4 | |
| 5 | #ifndef QUICHE_QUIC_PLATFORM_API_QUIC_CERT_UTILS_H_ |
| 6 | #define QUICHE_QUIC_PLATFORM_API_QUIC_CERT_UTILS_H_ |
| 7 | |
| 8 | #include "net/third_party/quiche/src/quic/platform/api/quic_string_piece.h" |
| 9 | #include "net/quic/platform/impl/quic_cert_utils_impl.h" |
| 10 | |
| 11 | namespace quic { |
| 12 | |
| 13 | class QuicCertUtils { |
| 14 | public: |
| 15 | static bool ExtractSubjectNameFromDERCert(QuicStringPiece cert, |
| 16 | QuicStringPiece* subject_out) { |
| 17 | return QuicCertUtilsImpl::ExtractSubjectNameFromDERCert(cert, subject_out); |
| 18 | } |
| 19 | }; |
| 20 | |
| 21 | } // namespace quic |
| 22 | |
| 23 | #endif // QUICHE_QUIC_PLATFORM_API_QUIC_CERT_UTILS_H_ |