1/* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://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, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16#ifndef TLS_CONSTANT_H 17#define TLS_CONSTANT_H 18 19namespace OHOS { 20namespace NetStack { 21namespace TlsSocket { 22constexpr int PARAM_NONE = 0; 23constexpr int PARAM_JUST_OPTIONS = 1; 24constexpr int PARAM_JUST_CALLBACK = 1; 25constexpr int PARAM_DOUBLE_OPTIONS = 2; 26constexpr int PARAM_TRIPLE_OPTIONS = 3; 27constexpr int PARAM_OPTIONS_AND_CALLBACK = 2; 28constexpr int PARAM_DOUBLE_OPTIONS_AND_CALLBACK = 3; 29constexpr int PARAM_TRIPLE_OPTIONS_AND_CALLBACK = 4; 30 31enum { 32 ARG_NUM_0, 33 ARG_NUM_1, 34 ARG_NUM_2, 35}; 36 37enum { 38 ARG_INDEX_0 = 0, 39 ARG_INDEX_1, 40 ARG_INDEX_2, 41 ARG_INDEX_3, 42}; 43} //namespace TlsSocket 44} // namespace NetStack 45} // namespace OHOS 46#endif // TLS_CONSTANT_H 47