1 // Copyright 2021 The Pigweed Authors 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not 4 // use this file except in compliance with the License. You may obtain a copy of 5 // the License at 6 // 7 // https://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12 // License for the specific language governing permissions and limitations under 13 // the License. 14 15 #include "pw_tls_client/session.h" 16 #include "pw_tls_client_boringssl/backend_types.h" 17 18 namespace pw::tls_client { 19 namespace backend { 20 SessionImplementation(SessionOptions)21SessionImplementation::SessionImplementation(SessionOptions) { 22 // TODO: b/235291139 - To implement 23 } 24 25 SessionImplementation::~SessionImplementation() = default; 26 27 } // namespace backend 28 Session(const SessionOptions & options)29Session::Session(const SessionOptions& options) : session_impl_(options) { 30 // TODO: b/235291139 - To implement 31 } 32 33 Session::~Session() = default; 34 Create(const SessionOptions &)35Result<Session*> Session::Create(const SessionOptions&) { 36 // TODO: b/235291139 - To implement 37 return PW_STATUS_UNIMPLEMENTED; 38 } 39 Open()40Status Session::Open() { 41 // TODO: b/235291139 - To implement 42 return PW_STATUS_UNIMPLEMENTED; 43 } 44 Close()45Status Session::Close() { 46 // TODO: b/235291139 - To implement 47 return PW_STATUS_UNIMPLEMENTED; 48 } 49 DoRead(ByteSpan)50StatusWithSize Session::DoRead(ByteSpan) { 51 // TODO: b/235291139 - To implement 52 return StatusWithSize(PW_STATUS_UNIMPLEMENTED, 0); 53 } 54 DoWrite(ConstByteSpan)55Status Session::DoWrite(ConstByteSpan) { 56 // TODO: b/235291139 - To implement 57 return PW_STATUS_UNIMPLEMENTED; 58 } 59 GetLastTLSStatus()60TLSStatus Session::GetLastTLSStatus() { return TLSStatus::kUnknownError; } 61 62 } // namespace pw::tls_client 63