18e745fdaSopenharmony_ci/*
28e745fdaSopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd.
38e745fdaSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
48e745fdaSopenharmony_ci * you may not use this file except in compliance with the License.
58e745fdaSopenharmony_ci * You may obtain a copy of the License at
68e745fdaSopenharmony_ci *
78e745fdaSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
88e745fdaSopenharmony_ci *
98e745fdaSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
108e745fdaSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
118e745fdaSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
128e745fdaSopenharmony_ci * See the License for the specific language governing permissions and
138e745fdaSopenharmony_ci * limitations under the License.
148e745fdaSopenharmony_ci */
158e745fdaSopenharmony_ci
168e745fdaSopenharmony_ci#ifndef NET_L2TP_VPN_CONFIG_H
178e745fdaSopenharmony_ci#define NET_L2TP_VPN_CONFIG_H
188e745fdaSopenharmony_ci
198e745fdaSopenharmony_ci#include <string>
208e745fdaSopenharmony_ci#include "sysvpn_config.h"
218e745fdaSopenharmony_ci
228e745fdaSopenharmony_cinamespace OHOS {
238e745fdaSopenharmony_cinamespace NetManagerStandard {
248e745fdaSopenharmony_cistruct L2tpVpnConfig : SysVpnConfig {
258e745fdaSopenharmony_ci    std::string ipsecPreSharedKey_;
268e745fdaSopenharmony_ci    std::string ipsecIdentifier_;
278e745fdaSopenharmony_ci    std::string strongswanConf_;
288e745fdaSopenharmony_ci    std::string ipsecCaCertConf_;
298e745fdaSopenharmony_ci    std::string ipsecPrivateUserCertConf_;
308e745fdaSopenharmony_ci    std::string ipsecPublicUserCertConf_;
318e745fdaSopenharmony_ci    std::string ipsecPrivateServerCertConf_;
328e745fdaSopenharmony_ci    std::string ipsecPublicServerCertConf_;
338e745fdaSopenharmony_ci    std::string ipsecCaCertFilePath_;
348e745fdaSopenharmony_ci    std::string ipsecPrivateUserCertFilePath_;
358e745fdaSopenharmony_ci    std::string ipsecPublicUserCertFilePath_;
368e745fdaSopenharmony_ci    std::string ipsecPrivateServerCertFilePath_;
378e745fdaSopenharmony_ci    std::string ipsecPublicServerCertFilePath_;
388e745fdaSopenharmony_ci
398e745fdaSopenharmony_ci    std::string ipsecConf_;
408e745fdaSopenharmony_ci    std::string ipsecSecrets_;
418e745fdaSopenharmony_ci    std::string optionsL2tpdClient_;
428e745fdaSopenharmony_ci    std::string xl2tpdConf_;
438e745fdaSopenharmony_ci    std::string l2tpSharedKey_;
448e745fdaSopenharmony_ci
458e745fdaSopenharmony_ci    bool Marshalling(Parcel &parcel) const override;
468e745fdaSopenharmony_ci    static sptr<L2tpVpnConfig> Unmarshalling(Parcel &parcel);
478e745fdaSopenharmony_ci};
488e745fdaSopenharmony_ci} // namespace NetManagerStandard
498e745fdaSopenharmony_ci} // namespace OHOS
508e745fdaSopenharmony_ci#endif // NET_L2TP_VPN_CONFIG_H
51