OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef RUNTIME_BIN_SECURITY_CONTEXT_H_ | 5 #ifndef RUNTIME_BIN_SECURITY_CONTEXT_H_ |
6 #define RUNTIME_BIN_SECURITY_CONTEXT_H_ | 6 #define RUNTIME_BIN_SECURITY_CONTEXT_H_ |
7 | 7 |
8 #include <openssl/ssl.h> | 8 #include <openssl/ssl.h> |
9 #include <openssl/x509.h> | 9 #include <openssl/x509.h> |
10 | 10 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 void LoadRootCertCache(const char* cache); | 81 void LoadRootCertCache(const char* cache); |
82 | 82 |
83 SSL_CTX* context_; | 83 SSL_CTX* context_; |
84 uint8_t* alpn_protocol_string_; | 84 uint8_t* alpn_protocol_string_; |
85 | 85 |
86 bool trust_builtin_; | 86 bool trust_builtin_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(SSLCertContext); | 88 DISALLOW_COPY_AND_ASSIGN(SSLCertContext); |
89 }; | 89 }; |
90 | 90 |
91 | |
92 class X509Helper : public AllStatic { | 91 class X509Helper : public AllStatic { |
93 public: | 92 public: |
94 static Dart_Handle GetSubject(Dart_NativeArguments args); | 93 static Dart_Handle GetSubject(Dart_NativeArguments args); |
95 static Dart_Handle GetIssuer(Dart_NativeArguments args); | 94 static Dart_Handle GetIssuer(Dart_NativeArguments args); |
96 static Dart_Handle GetStartValidity(Dart_NativeArguments args); | 95 static Dart_Handle GetStartValidity(Dart_NativeArguments args); |
97 static Dart_Handle GetEndValidity(Dart_NativeArguments args); | 96 static Dart_Handle GetEndValidity(Dart_NativeArguments args); |
98 static Dart_Handle WrappedX509Certificate(X509* certificate); | 97 static Dart_Handle WrappedX509Certificate(X509* certificate); |
99 }; | 98 }; |
100 | 99 |
101 } // namespace bin | 100 } // namespace bin |
102 } // namespace dart | 101 } // namespace dart |
103 | 102 |
104 #endif // RUNTIME_BIN_SECURITY_CONTEXT_H_ | 103 #endif // RUNTIME_BIN_SECURITY_CONTEXT_H_ |
OLD | NEW |