Chromium Code Reviews| Index: net/cert/sec_trust_util.h |
| diff --git a/net/cert/sec_trust_util.h b/net/cert/sec_trust_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b8ef3ff21a8875cb4aaace500984626833d56438 |
| --- /dev/null |
| +++ b/net/cert/sec_trust_util.h |
| @@ -0,0 +1,20 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef NET_CERT_SEC_TRUST_UTIL_H_ |
| +#define NET_CERT_SEC_TRUST_UTIL_H_ |
|
Ryan Sleevi
2016/08/08 17:47:37
Why are you introducing this file?
I'm particular
Eugene But (OOO till 7-30)
2016/08/08 20:22:23
I don't think that sec_trust_util.h will grow, bec
Ryan Sleevi
2016/08/08 20:44:18
It deals with SecTrust, that's a pretty big API :)
|
| + |
| +#include "net/cert/cert_status_flags.h" |
| + |
| +#include <Security/Security.h> |
| + |
| +namespace net { |
| + |
| +// Returns error CertStatus from the given |trust| object. Returns |
| +// CERT_STATUS_INVALID if the trust is null. |
| +CertStatus GetCertFailureStatusFromTrust(SecTrustRef trust); |
| + |
| +} // namespace net |
| + |
| +#endif // NET_CERT_SEC_TRUST_UTIL_H_ |