Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e2c136a authored by Yifan Hong's avatar Yifan Hong
Browse files

binder: Move CertificateFormat to its own header

...  to avoid clobbering RpcTransport.h. This makes
the dependency cleaner for future CLs.

Test: binderRpcTest
Bug: 198833574

Change-Id: I0847ffe46f74f8577f83fae952553ee2368cc8f2
parent 18ac9479
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2021 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Formats for serializing TLS certificate.

#pragma once

namespace android {

enum class CertificateFormat {
    PEM,
    // TODO(b/195166979): support other formats, e.g. DER
};

} // namespace android
+2 −5
Original line number Diff line number Diff line
@@ -25,15 +25,12 @@
#include <android-base/unique_fd.h>
#include <utils/Errors.h>

#include <binder/CertificateFormat.h>

namespace android {

class FdTrigger;

enum class CertificateFormat {
    PEM,
    // TODO(b/195166979): support other formats, e.g. DER
};

// Represents a socket connection.
// No thread-safety is guaranteed for these APIs.
class RpcTransport {