OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 NET_SSL_TOKEN_BINDING_H_ |
| 6 #define NET_SSL_TOKEN_BINDING_H_ |
| 7 |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
| 11 namespace net { |
| 12 |
| 13 // Given a vector of serialized TokenBinding structs (as defined in |
| 14 // draft-ietf-tokbind-protocol-02), this function combines them to form the |
| 15 // serialized TokenBindingMessage struct in |*out|. This function returns a net |
| 16 // error. |
| 17 // |
| 18 // struct { |
| 19 // TokenBinding tokenbindings<0..2^16-1>; |
| 20 // } TokenBindingMessage; |
| 21 int BuildTokenBindingMessageFromTokenBindings( |
| 22 const std::vector<std::string>& token_bindings, |
| 23 std::string* out); |
| 24 |
| 25 } // namespace net |
| 26 |
| 27 #endif // NET_SSL_TOKEN_BINDING_H_ |
OLD | NEW |